GET library
GETResponseFctAget Class Reference

#include <GETResponseFctAget.hh>

Inheritance diagram for GETResponseFctAget:
GETResponseFct GETResponse GETFunction GETProcess

Public Member Functions

Constructors, affectation, destructor
 GETResponseFctAget (GETObject &obj, double amp=1., double tau=0.200, double t0=0., double bg=0.)
 
 GETResponseFctAget (u_int n=0, double dt=0.01, double amp=1., double tau=0.200, double t0=0., double bg=0.)
 
 GETResponseFctAget (const GETResponseFctAget &proc)
 
virtual ~GETResponseFctAget ()
 
ROOT related functions
 ClassDef (GETResponseFctAget, 0)
 
- Public Member Functions inherited from GETResponseFct
 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 ()
 
void SetFunction (TF1 *f, bool calc=true)
 
void UpdateFunction ()
 
virtual void Init (u_int n, double dt)
 
 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

 GObject (GETResponseFctAget)
 

Response function

double GetAmplitude () const
 
double GetPeakingTime () const
 
double GetTimeOffset () const
 
double GetSignalOffset () const
 
void SetAmplitude (double val, bool update=true)
 
void SetPeakingTime (double val, bool update=true)
 
void SetTimeOffset (double val, bool update=true)
 
void SetSignalOffset (double val, bool update=true)
 
static double Function (double x[], double p[])
 

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 the analytical response function for the GET input signal from empirical function with 3 parameters.

Examples:
TestChannel.C.

Constructor & Destructor Documentation

GETResponseFctAget::GETResponseFctAget ( GETObject obj,
double  amp = 1.,
double  tau = 0.200,
double  t0 = 0.,
double  bg = 0. 
)

Constructor. The dimension of the first channel of the object is used for the process definition.

Parameters
obja core object of the GET system
ampamplitude factor
taupeaking time (us)
t0time offset (us)
bgbackground (offset)

References Function(), and GETResponseFct::SetFunction().

GETResponseFctAget::GETResponseFctAget ( u_int  n = 0,
double  dt = 0.01,
double  amp = 1.,
double  tau = 0.200,
double  t0 = 0.,
double  bg = 0. 
)

Constructor.

Parameters
nsampling size of the channels
dtsampling period (us)
ampamplitude factor
taupeaking time (us)
t0time offset (us)
bgbackground (offset)

References Function(), and GETResponseFct::SetFunction().

GETResponseFctAget::GETResponseFctAget ( const GETResponseFctAget proc)

Copy constructor.

Parameters
procobject to copy
GETResponseFctAget::~GETResponseFctAget ( )
virtual

Destructor.

Member Function Documentation

GETResponseFctAget::ClassDef ( GETResponseFctAget  ,
 
)

for use within ROOT.

double GETResponseFctAget::Function ( double  x[],
double  p[] 
)
static

Aget analytical response function (empirical). The parameters are:

  • p[0] = amplitude factor
  • p[1] = peaking time (us)
  • p[2] = time offset (us)
  • p[3] = background
    Parameters
    xfunction argument
    pfunction parameters

Referenced by GETResponseFctAget(), GETFilterAget::UpdateFilter(), and GETFilterAgetGaus::UpdateFilter().

double GETResponseFctAget::GetAmplitude ( ) const
inline

Get the amplitude parameter.

References GETFunction::GetParamValue().

double GETResponseFctAget::GetPeakingTime ( ) const
inline

Get the peaking time parameter.

References GETFunction::GetParamValue().

double GETResponseFctAget::GetSignalOffset ( ) const
inline

Get the signal offset parameter.

References GETFunction::GetParamValue().

double GETResponseFctAget::GetTimeOffset ( ) const
inline

Get the time offset parameter.

References GETFunction::GetParamValue().

GETResponseFctAget::GObject ( GETResponseFctAget  )
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 GETResponseFctAget::SetAmplitude ( double  val,
bool  update = true 
)
inline

Set amplitude parameter.

Parameters
valparameter value
updateupdate response function sample

References GETFunction::SetParamValue(), and GETResponseFct::UpdateFunction().

void GETResponseFctAget::SetPeakingTime ( double  val,
bool  update = true 
)
inline

Set peaking time parameter.

Parameters
valparameter value
updateupdate response function sample

References GETFunction::SetParamValue(), and GETResponseFct::UpdateFunction().

void GETResponseFctAget::SetSignalOffset ( double  val,
bool  update = true 
)
inline

Set signal offset (background) parameter.

Parameters
valparameter value
updateupdate response function sample

References GETFunction::SetParamValue(), and GETResponseFct::UpdateFunction().

void GETResponseFctAget::SetTimeOffset ( double  val,
bool  update = true 
)
inline

Set time offset parameter.

Parameters
valparameter value
updateupdate response function sample

References GETFunction::SetParamValue(), and GETResponseFct::UpdateFunction().


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