GET library
GETAutoBLoffset.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETAutoBLoffset.hh
3  *
4  * Include file for the GETAutoBLoffset class.
5  */
6 //======================================================================
7 
8 #ifndef GET_AUTO_BL_OFFSET_HH
9 #define GET_AUTO_BL_OFFSET_HH
10 
11 //----------------------------------------------------------------------
12 
13 #include "GETSignalModifier.hh"
14 
15 //======================================================================
16 /*! \class GETAutoBLoffset
17  *
18  * This class defines an automatic base-line correction process.
19  *
20  * The automatic baseline computes an average at the beginning of the
21  * sample and another average at the end of the sample, and use them
22  * to perform a linear subtraction to the signal.
23  */
25 {
26  //------------------------------------------------------------
27  /*! \object_doc */
29  //------------------------------------------------------------
30 
31  protected:
32  u_short bucket_min; ///< Lower time bucket for offset estimate (included)
33  u_short bucket_max; ///< Uppet time bucket for offset estimate (excluded)
34 
35  public:
36  //----------------------------------------------------------
37  /** @name Constructors, affectation, destructor */
38  //@{
39  GETAutoBLoffset ( GETObject & obj,
40  u_short itmin = 0, u_short itmax = 0 );
41  GETAutoBLoffset ( u_int n = 0, double dt = 0.01,
42  u_short itmin = 0, u_short itmax = 0 );
43  GETAutoBLoffset ( const GETAutoBLoffset & proc );
44  virtual ~GETAutoBLoffset ( );
45  //@}
46 
47  //----------------------------------------------------------
48  /** @name Process parameters */
49  //@{
50  virtual void SetOffsetRange ( u_short itmin, u_short itmax );
51 
52  //@}
53 
54  //----------------------------------------------------------
55  /** @name Signal processing */
56  //@{
57  virtual GETSample * ProcessSample ( GETSample & sample,
58  GETSample & result,
59  GETChannel & channel );
60  //@}
61 
62  //----------------------------------------------------------
63  /** @name ROOT related functions */
64  //@{
65  public:
66  /*! for use within ROOT.*/
68  //@}
69 };
70 
71 
72 //----------------------------------------------------------------------
73 // Inline functions
74 #include "icc/GETAutoBLoffset.icc"
75 
76 
77 //======================================================================
78 #endif
virtual void SetOffsetRange(u_short itmin, u_short itmax)
Definition: GETAutoBLoffset.cpp:79
Definition: GETAutoBLoffset.hh:24
GObject(GETAutoBLoffset)
Definition: GETChannel.hh:41
u_short bucket_max
Uppet time bucket for offset estimate (excluded)
Definition: GETAutoBLoffset.hh:33
virtual GETSample * ProcessSample(GETSample &sample, GETSample &result, GETChannel &channel)
Definition: GETAutoBLoffset.cpp:117
GETAutoBLoffset(GETObject &obj, u_short itmin=0, u_short itmax=0)
Definition: GETAutoBLoffset.cpp:23
Definition: GETObject.hh:38
RRealSampleFFT GETSample
Define the data type for samples.
Definition: GETCommon.hh:31
u_short bucket_min
Lower time bucket for offset estimate (included)
Definition: GETAutoBLoffset.hh:32
Definition: GETSignalModifier.hh:22
virtual ~GETAutoBLoffset()
Definition: GETAutoBLoffset.cpp:67
ClassDef(GETAutoBLoffset, 0)