GET library
|
#include <GETResponseFct.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETResponseFct (GETObject &obj) | |
GETResponseFct (u_int n=0, double dt=0.01) | |
GETResponseFct (GETObject &obj, TF1 *f) | |
GETResponseFct (u_int n, double dt, TF1 *f) | |
GETResponseFct (GETObject &obj, const string name, double(*fptr)(const double[], const double[]), u_int npar, double *vpar=NULL) | |
GETResponseFct (u_int n, double dt, const string name, double(*fptr)(const double[], const double[]), u_int npar, double *vpar=NULL) | |
GETResponseFct (const GETResponseFct &proc) | |
virtual | ~GETResponseFct () |
Initialization functions | |
void | SetFunction (TF1 *f, bool calc=true) |
void | UpdateFunction () |
virtual void | Init (u_int n, double dt) |
ROOT related functions | |
ClassDef (GETResponseFct, 0) | |
Public Member Functions inherited from GETResponse | |
GETResponse (GETObject &obj) | |
GETResponse (u_int n=0, double dt=0.01) | |
GETResponse (const GETResponse &proc) | |
virtual | ~GETResponse () |
virtual void | Reset () |
const GETSample * | GetResponsePtr () const |
GETSample * | GetResponsePtr () |
const GETSample & | GetResponse () const |
GETSample & | GetResponse () |
virtual GETSample * | ProcessSample (GETChannel &channel, u_short info) |
virtual GETSample * | ProcessSample (GETSample &sample, GETSample &result, GETChannel &channel) |
virtual GETSample * | ProcessSample (GETSample &sample, GETSample &result, GETChannel &channel, bool inv) |
ClassDef (GETResponse, 0) | |
Public Member Functions inherited from GETProcess | |
GETProcess (GETObject &obj) | |
GETProcess (u_int n=0, double dt=0.01) | |
GETProcess (const GETProcess &proc) | |
virtual | ~GETProcess () |
virtual void | SetOptions (u_int opts) |
virtual void | SetOption (u_int flags, bool b=true) |
virtual u_int | GetOptions () |
virtual bool | GetOption (u_int flags) |
u_int | GetDimension () const |
double | GetSamplingTime () const |
GETSample * | GetResultSamplePtr () |
const GETSample * | GetResultSamplePtr () const |
GETSample & | GetResultSample () |
const GETSample & | GetResultSample () const |
ClassDef (GETProcess, 0) | |
Public Member Functions inherited from GETFunction | |
GETFunction (TF1 *f=NULL) | |
GETFunction (const string name, double(*fptr)(const double[], const double[]), u_int npar) | |
GETFunction (const GETFunction &f) | |
virtual | ~GETFunction () |
TF1 * | GetFunction () |
u_int | GetParamNumber () const |
double | GetParamValue (u_int i) const |
void | SetParamValue (u_int i, double val) |
ClassDef (GETFunction, 0) | |
Private Member Functions | |
GObjectV (GETResponseFct) | |
Additional Inherited Members | |
Protected Attributes inherited from GETResponse | |
GETSample | response_fct |
Response function for an AGET channel. | |
Protected Attributes inherited from GETProcess | |
u_int | options |
Option flags. | |
GETSample | result_sample |
Internal processing result sample (processing result) | |
Protected Attributes inherited from GETFunction | |
TF1 * | fct_def |
Associated ROOT function pointer. | |
This class defines an analytical response function for the GET input signal.
The class is abstract and has to be derivated for specific functions definition (in order to be written / read) in GET definition files).
GETResponseFct::GETResponseFct | ( | GETObject & | obj | ) |
Constructor. The associated function is not defined, and a call to SetFunction is required. The dimension of the first channel of the object is used for the process definition.
obj | a core object of the GET system |
GETResponseFct::GETResponseFct | ( | u_int | n = 0 , |
double | dt = 0.01 |
||
) |
Constructor. The associated function is not defined, and a call to SetFunction is required.
n | sampling size of the channels |
dt | sampling period (us) |
GETResponseFct::GETResponseFct | ( | GETObject & | obj, |
TF1 * | f | ||
) |
Constructor from a ROOT TF1 function. The TF1 function is adopted by the current instance. The response function sample is computed, so parameters should be set before calling the constructor, or the UpdateFunction should be called. The dimension of the first channel of the object is used for the process definition.
obj | a core object of the GET system |
f | ROOT function pointer |
References SetFunction().
GETResponseFct::GETResponseFct | ( | u_int | n, |
double | dt, | ||
TF1 * | f | ||
) |
Constructor from a ROOT TF1 function. The TF1 function is adopted by the current instance. The response function sample is computed, so parameters should be set before calling the constructor, or the UpdateFunction should be called.
n | sampling size of the channels |
dt | sampling period (us) |
f | ROOT function pointer |
References SetFunction().
GETResponseFct::GETResponseFct | ( | GETObject & | obj, |
const string | name, | ||
double(*)(const double[], const double[]) | fptr, | ||
u_int | npar, | ||
double * | vpar = NULL |
||
) |
Constructor from a function pointer. If the array of parameter values is set (non NULL pointer), the response function sample is computed, else the UpdateFunction should be called. The dimension of the first channel of the object is used for the process definition.
obj | a core object of the GET system |
name | function name (for TF1) |
fptr | function pointer |
npar | number of parameters |
vpar | array of parameter values |
References GETFunction::fct_def, and UpdateFunction().
GETResponseFct::GETResponseFct | ( | u_int | n, |
double | dt, | ||
const string | name, | ||
double(*)(const double[], const double[]) | fptr, | ||
u_int | npar, | ||
double * | vpar = NULL |
||
) |
Constructor from a function pointer. If the array of parameter values is set (non NULL pointer), the response function sample is computed, else the UpdateFunction should be called.
n | sampling size of the channels |
dt | sampling period (us) |
name | function name (for TF1) |
fptr | function pointer |
npar | number of parameters |
vpar | array of parameter values |
References GETFunction::fct_def, and UpdateFunction().
GETResponseFct::GETResponseFct | ( | const GETResponseFct & | proc | ) |
|
virtual |
Destructor.
GETResponseFct::ClassDef | ( | GETResponseFct | , |
0 | |||
) |
for use within ROOT.
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Initialization of response function sample. If the analytical function is defined, the response function sample is computed.
n | sampling size of the function |
dt | sampling time step |
Reimplemented from GETResponse.
References GETResponse::Init(), and UpdateFunction().
void GETResponseFct::SetFunction | ( | TF1 * | f, |
bool | calc = true |
||
) |
Define the associated TF1 function. If the sample dimension is set, the response function sample is computed if calc is true.
f | function pointer (adopted) |
calc | whether the response function sample is computed (if parameters are set...) |
References GETFunction::fct_def, and UpdateFunction().
Referenced by GETResponseFct(), and GETResponseFctAget::GETResponseFctAget().
|
inline |
Compute the function sample from the TF1 function pointer.
References GETFunction::fct_def, GETProcess::GetDimension(), and GETResponse::response_fct.
Referenced by GETResponseFct(), Init(), GETResponseFctAget::SetAmplitude(), SetFunction(), GETResponseFctAget::SetPeakingTime(), GETResponseFctAget::SetSignalOffset(), and GETResponseFctAget::SetTimeOffset().