GET library
GETNoise.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETNoise.hh
3  *
4  * Include file for the GETNoise class.
5  */
6 //======================================================================
7 
8 #ifndef GET_NOISE_HH
9 #define GET_NOISE_HH
10 
11 //----------------------------------------------------------------------
12 
13 #include "GETSignalModifier.hh"
14 
15 //======================================================================
16 /*! \class GETNoise
17  *
18  * This class defines Gauss random noise with an optional offset of the
19  * signal.
20  *
21  */
23 {
24  //------------------------------------------------------------
25  /*! \object_doc */
27  //------------------------------------------------------------
28 
29  protected:
30  double width; ///< Fluctuation width (FWHM)
31  double offset; ///< Signal offset
32 
33  public:
34  //----------------------------------------------------------
35  /** @name Constructors, affectation, destructor */
36  //@{
37  GETNoise ( GETObject & obj,
38  double wid = 0., double off = 0. );
39  GETNoise ( u_int n = 0, double dt = 0.01,
40  double wid = 0., double off = 0. );
41  GETNoise ( const GETNoise & proc );
42  virtual ~GETNoise ( );
43  //@}
44 
45  //----------------------------------------------------------
46  /** @name Process parameters */
47  //@{
48  void SetWidth ( double wid ); // inline
49  void SetOffset ( double off ); // inline
50 
51  //@}
52 
53  //----------------------------------------------------------
54  /** @name Signal processing */
55  //@{
56  ////virtual GETSample * ProcessSample ( GETChannel & channel,
57  //// u_short info );
58 
59  virtual GETSample * ProcessSample ( GETSample & sample,
60  GETSample & result,
61  GETChannel & channel );
62  //@}
63 
64  //----------------------------------------------------------
65  /** @name ROOT related functions */
66  //@{
67  public:
68 
69  /*! for use within ROOT.*/
70  ClassDef(GETNoise,0);
71  //@}
72 };
73 
74 
75 //----------------------------------------------------------------------
76 // Inline functions
77 #include "icc/GETNoise.icc"
78 
79 
80 //======================================================================
81 #endif
void SetOffset(double off)
Definition: GETNoise.icc:17
GETNoise(GETObject &obj, double wid=0., double off=0.)
Definition: GETNoise.cpp:22
Definition: GETChannel.hh:41
double width
Fluctuation width (FWHM)
Definition: GETNoise.hh:30
Definition: GETNoise.hh:22
ClassDef(GETNoise, 0)
double offset
Signal offset.
Definition: GETNoise.hh:31
Definition: GETObject.hh:38
virtual GETSample * ProcessSample(GETSample &sample, GETSample &result, GETChannel &channel)
Definition: GETNoise.cpp:124
RRealSampleFFT GETSample
Define the data type for samples.
Definition: GETCommon.hh:27
Definition: GETSignalModifier.hh:22
GObject(GETNoise)
void SetWidth(double wid)
Definition: GETNoise.icc:11
virtual ~GETNoise()
Definition: GETNoise.cpp:53