GET library
GETFunction.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETFunction.hh
3  *
4  * Include file for the GETFunction class.
5  */
6 //======================================================================
7 
8 #ifndef GET_FUNCTION_HH
9 #define GET_FUNCTION_HH
10 
11 //----------------------------------------------------------------------
12 
13 #include "GETCommon.hh"
14 #include "TF1.h"
15 
16 //======================================================================
17 /*! \class GETFunction
18  *
19  * This class defines an analytical function definition for the GET
20  * processes.
21  * It is defined with a TF1 function.
22  *
23  * The class is abstract and has to be derivated for specific
24  * functions definition (in order to be written / read) in GET
25  * definition files).
26  */
28 {
29  //------------------------------------------------------------
30  /*! \object_doc */
32  //------------------------------------------------------------
33 
34  protected:
35  TF1 * fct_def; ///< Associated ROOT function pointer
36 
37  public:
38  //----------------------------------------------------------
39  /** @name Constructors, affectation, destructor */
40  //@{
41  GETFunction ( TF1 * f = NULL );
42  GETFunction ( const string name,
43  double (*fptr) ( const double[], const double [] ), u_int npar );
44  GETFunction ( const GETFunction & f );
45  virtual ~GETFunction ( );
46  //@}
47 
48  //----------------------------------------------------------
49  /** @name Function definition and parameters */
50  //@{
51  TF1 * GetFunction ( ); // inline
52  u_int GetParamNumber ( ) const; // inline
53 
54  double GetParamValue ( u_int i ) const; // inline
55  void SetParamValue ( u_int i, double val ); // inline
56  //@}
57 
58  //----------------------------------------------------------
59  /** @name ROOT related functions */
60  //@{
61  public:
62 
63  /*! for use within ROOT.*/
65  //@}
66 };
67 
68 
69 //----------------------------------------------------------------------
70 // Inline functions
71 #include "icc/GETFunction.icc"
72 
73 
74 //======================================================================
75 #endif
double GetParamValue(u_int i) const
Definition: GETFunction.icc:17
TF1 * GetFunction()
Definition: GETFunction.icc:9
ClassDef(GETFunction, 0)
u_int GetParamNumber() const
Definition: GETFunction.icc:13
void SetParamValue(u_int i, double val)
Definition: GETFunction.icc:21
GObjectV(GETFunction)
TF1 * fct_def
Associated ROOT function pointer.
Definition: GETFunction.hh:35
Definition: GETFunction.hh:27
GETFunction(TF1 *f=NULL)
Definition: GETFunction.cpp:18
virtual ~GETFunction()
Definition: GETFunction.cpp:55