GET library
GETFunction Class Reference

#include <GETFunction.hh>

Inheritance diagram for GETFunction:
GETResponseFct GETResponseFctAget

Public Member Functions

Constructors, affectation, destructor
 GETFunction (TF1 *f=NULL)
 
 GETFunction (const string name, double(*fptr)(const double[], const double[]), u_int npar)
 
 GETFunction (const GETFunction &f)
 
virtual ~GETFunction ()
 
Function definition and parameters
TF1 * GetFunction ()
 
u_int GetParamNumber () const
 
double GetParamValue (u_int i) const
 
void SetParamValue (u_int i, double val)
 
ROOT related functions
 ClassDef (GETFunction, 0)
 

Protected Attributes

TF1 * fct_def
 Associated ROOT function pointer.
 

Private Member Functions

 GObjectV (GETFunction)
 

Detailed Description

This class defines an analytical function definition for the GET processes. It is defined with a TF1 function.

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

GETFunction::GETFunction ( TF1 *  f = NULL)

Constructor from a ROOT TF1 function. The TF1 function is adopted by the current instance.

Parameters
fROOT function pointer

References fct_def.

GETFunction::GETFunction ( const string  name,
double(*)(const double[], const double[])  fptr,
u_int  npar 
)

Constructor from a function pointer.

Parameters
namefunction name (for TF1)
fptrfunction pointer
nparnumber of parameters

References fct_def.

GETFunction::GETFunction ( const GETFunction f)

Copy constructor.

Parameters
ffunction to copy

References fct_def.

GETFunction::~GETFunction ( )
virtual

Destructor.

References fct_def.

Member Function Documentation

GETFunction::ClassDef ( GETFunction  ,
 
)

for use within ROOT.

TF1 * GETFunction::GetFunction ( )
inline

Return the pointer to the ROOT function.

References fct_def.

u_int GETFunction::GetParamNumber ( ) const
inline

Return the number parameters of the function.

References fct_def.

double GETFunction::GetParamValue ( u_int  i) const
inline
GETFunction::GObjectV ( GETFunction  )
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 GETFunction::SetParamValue ( u_int  i,
double  val 
)
inline

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