GET library
GETResponseFct.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETResponseFct.hh
3  *
4  * Include file for the GETResponseFct class.
5  */
6 //======================================================================
7 
8 #ifndef GET_RESPONSE_FCT_HH
9 #define GET_RESPONSE_FCT_HH
10 
11 //----------------------------------------------------------------------
12 
13 #include "GETResponse.hh"
14 #include "GETFunction.hh"
15 
16 //======================================================================
17 /*! \class GETResponseFct
18  *
19  * This class defines an analytical response function for the GET
20  * input signal.
21  *
22  * The class is abstract and has to be derivated for specific
23  * functions definition (in order to be written / read) in GET
24  * definition files).
25  */
26 class GETResponseFct : public GETResponse, public GETFunction
27 {
28  //------------------------------------------------------------
29  /*! \object_doc */
31  //------------------------------------------------------------
32 
33  protected:
34 
35 
36  public:
37  //----------------------------------------------------------
38  /** @name Constructors, affectation, destructor */
39  //@{
40  GETResponseFct ( GETObject & obj );
41  GETResponseFct ( u_int n = 0, double dt = 0.01 );
42  GETResponseFct ( GETObject & obj, TF1 * f );
43  GETResponseFct ( u_int n, double dt, TF1 * f );
44  GETResponseFct ( GETObject & obj,
45  const string name,
46  double (*fptr) ( const double[], const double [] ),
47  u_int npar, double * vpar = NULL );
48  GETResponseFct ( u_int n, double dt,
49  const string name,
50  double (*fptr) ( const double[], const double [] ),
51  u_int npar, double * vpar = NULL );
52  GETResponseFct ( const GETResponseFct & proc );
53  virtual ~GETResponseFct ( );
54  //@}
55 
56 
57  //----------------------------------------------------------
58  /** @name Initialization functions */
59  //@{
60  void SetFunction ( TF1 * f, bool calc = true );
61  void UpdateFunction ( ); // inline
62 
63  virtual void Init ( u_int n, double dt );
64  //@}
65 
66  //----------------------------------------------------------
67  /** @name ROOT related functions */
68  //@{
69  public:
70 
71  /*! for use within ROOT.*/
73  //@}
74 };
75 
76 
77 //----------------------------------------------------------------------
78 // Inline functions
79 #include "icc/GETResponseFct.icc"
80 
81 
82 //======================================================================
83 #endif
Definition: GETResponse.hh:23
void UpdateFunction()
Definition: GETResponseFct.icc:9
ClassDef(GETResponseFct, 0)
virtual ~GETResponseFct()
Definition: GETResponseFct.cpp:138
Definition: GETResponseFct.hh:26
Definition: GETObject.hh:38
virtual void Init(u_int n, double dt)
Definition: GETResponseFct.cpp:167
GObjectV(GETResponseFct)
void SetFunction(TF1 *f, bool calc=true)
Definition: GETResponseFct.cpp:151
Definition: GETFunction.hh:27
GETResponseFct(GETObject &obj)
Definition: GETResponseFct.cpp:21