GET library
GETResponseFct Class Reference

#include <GETResponseFct.hh>

Inheritance diagram for GETResponseFct:
GETResponse GETFunction GETProcess GETResponseFctAget

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 GETSampleGetResponsePtr () const
 
GETSampleGetResponsePtr ()
 
const GETSampleGetResponse () const
 
GETSampleGetResponse ()
 
virtual GETSampleProcessSample (GETChannel &channel, u_short info)
 
virtual GETSampleProcessSample (GETSample &sample, GETSample &result, GETChannel &channel)
 
virtual GETSampleProcessSample (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
 
GETSampleGetResultSamplePtr ()
 
const GETSampleGetResultSamplePtr () const
 
GETSampleGetResultSample ()
 
const GETSampleGetResultSample () 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.
 

Detailed Description

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).

Constructor & Destructor Documentation

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.

Parameters
obja 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.

Parameters
nsampling size of the channels
dtsampling 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.

Parameters
obja core object of the GET system
fROOT 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.

Parameters
nsampling size of the channels
dtsampling period (us)
fROOT 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.

Parameters
obja core object of the GET system
namefunction name (for TF1)
fptrfunction pointer
nparnumber of parameters
vpararray 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.

Parameters
nsampling size of the channels
dtsampling period (us)
namefunction name (for TF1)
fptrfunction pointer
nparnumber of parameters
vpararray of parameter values

References GETFunction::fct_def, and UpdateFunction().

GETResponseFct::GETResponseFct ( const GETResponseFct proc)

Copy constructor.

Parameters
procobject to copy

References UpdateFunction().

GETResponseFct::~GETResponseFct ( )
virtual

Destructor.

Member Function Documentation

GETResponseFct::ClassDef ( GETResponseFct  ,
 
)

for use within ROOT.

GETResponseFct::GObjectV ( GETResponseFct  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
void GETResponseFct::Init ( u_int  n,
double  dt 
)
virtual

Initialization of response function sample. If the analytical function is defined, the response function sample is computed.

Parameters
nsampling size of the function
dtsampling 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.

Parameters
ffunction pointer (adopted)
calcwhether the response function sample is computed (if parameters are set...)

References GETFunction::fct_def, and UpdateFunction().

Referenced by GETResponseFct(), and GETResponseFctAget::GETResponseFctAget().


The documentation for this class was generated from the following files: