GET library
GETResponseFctAget.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETResponseFctAget.hh
3  *
4  * Include file for the GETResponseFctAget class.
5  */
6 //======================================================================
7 
8 #ifndef GET_RESPONSE_FCT_AGET_HH
9 #define GET_RESPONSE_FCT_AGET_HH
10 
11 //----------------------------------------------------------------------
12 
13 #include "GETResponseFct.hh"
14 
15 //======================================================================
16 /*! \class GETResponseFctAget
17  *
18  * This class defines the analytical response function for the GET
19  * input signal from empirical function with 3 parameters.
20  */
22 {
23  //------------------------------------------------------------
24  /*! \object_doc */
26  //------------------------------------------------------------
27 
28  protected:
29 
30 
31  public:
32  //----------------------------------------------------------
33  /** @name Constructors, affectation, destructor */
34  //@{
36  double amp = 1., double tau = 0.200,
37  double t0 = 0., double bg = 0. );
38  GETResponseFctAget ( u_int n = 0, double dt = 0.01,
39  double amp = 1., double tau = 0.200,
40  double t0 = 0., double bg = 0. );
41  GETResponseFctAget ( const GETResponseFctAget & proc );
42  virtual ~GETResponseFctAget ( );
43  //@}
44 
45  //----------------------------------------------------------
46  /** @name Response function */
47  //@{
48  static double Function ( double x[], double p[] );
49 
50  double GetAmplitude ( ) const; // inline
51  double GetPeakingTime ( ) const; // inline
52  double GetTimeOffset ( ) const; // inline
53  double GetSignalOffset ( ) const; // inline
54 
55  void SetAmplitude ( double val, bool update = true ); // inline
56  void SetPeakingTime ( double val, bool update = true ); // inline
57  void SetTimeOffset ( double val, bool update = true ); // inline
58  void SetSignalOffset ( double val, bool update = true ); // inline
59  //@}
60 
61  //----------------------------------------------------------
62  /** @name ROOT related functions */
63  //@{
64  public:
65 
66  /*! for use within ROOT.*/
68  //@}
69 };
70 
71 
72 //----------------------------------------------------------------------
73 // Inline functions
75 
76 
77 //======================================================================
78 #endif
void SetAmplitude(double val, bool update=true)
Definition: GETResponseFctAget.icc:29
double GetTimeOffset() const
Definition: GETResponseFctAget.icc:17
ClassDef(GETResponseFctAget, 0)
static double Function(double x[], double p[])
Definition: GETResponseFctAget.cpp:86
double GetSignalOffset() const
Definition: GETResponseFctAget.icc:21
virtual ~GETResponseFctAget()
Definition: GETResponseFctAget.cpp:70
GObject(GETResponseFctAget)
Definition: GETResponseFct.hh:26
Definition: GETObject.hh:38
GETResponseFctAget(GETObject &obj, double amp=1., double tau=0.200, double t0=0., double bg=0.)
Definition: GETResponseFctAget.cpp:23
double GetAmplitude() const
Definition: GETResponseFctAget.icc:9
void SetSignalOffset(double val, bool update=true)
Definition: GETResponseFctAget.icc:50
double GetPeakingTime() const
Definition: GETResponseFctAget.icc:13
void SetPeakingTime(double val, bool update=true)
Definition: GETResponseFctAget.icc:36
void SetTimeOffset(double val, bool update=true)
Definition: GETResponseFctAget.icc:43
Definition: GETResponseFctAget.hh:21