27#ifndef _EXTERNALPULSEDATA_H
28#define _EXTERNALPULSEDATA_H
63 double GetData (
double const time) ;
92 static double GetPhase (
Module* mod,
double time );
Implementation of JEMRIS Pulse.
External gradient prototype.
Definition ExternalGradPulse.h:38
Read and retrieve data of external pulse shapes.
Definition ExternalPulseData.h:36
void SetTPOIs()
Definition ExternalPulseData.cpp:65
int GetLowerIndex(double time)
find data index for interpolation get lower index for given timepoint using hunt search algorithm.
Definition ExternalPulseData.cpp:145
vector< double > m_magnitudes
My corresponding amplitudes
Definition ExternalPulseData.h:97
void SetInterp(bool b)
linear interpolation
Definition ExternalPulseData.h:71
bool ReadPulseShape(string fname, bool verbose)
Read the pulse shape data.
Definition ExternalPulseData.cpp:97
bool m_interp
if true, linear interpolation is applied
Definition ExternalPulseData.h:100
double GetData(double const time)
get the data
Definition ExternalPulseData.cpp:44
vector< double > m_phases
Vector of phases
Definition ExternalPulseData.h:98
vector< double > m_times
My sample time points
Definition ExternalPulseData.h:96
ExternalPulseData()
constructor
Definition ExternalPulseData.cpp:32
Pulse * m_pulse
My pulse.
Definition ExternalPulseData.h:94
double m_phase
current phase
Definition ExternalPulseData.h:99
void SetPulse(Pulse *p)
set the pulse owning this
Definition ExternalPulseData.h:55
string m_fname
HDF5 file with time points and amps [and phases].
Definition ExternalPulseData.h:95
~ExternalPulseData()
Default destructor.
Definition ExternalPulseData.h:45
RF pulse with external pulse shape.
Definition ExternalRFPulse.h:36
Module super class! ABC for all Objects in the sequence framework.
Definition Module.h:41
Pulse Super Class. ABC for all RF and gradient pulses.
Definition Pulse.h:41