GET library
GETSampleWindow.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETSampleWindow.hh
3  *
4  * Include file for the GETSampleWindow class.
5  */
6 //======================================================================
7 
8 #ifndef GET_SAMPLE_WINDOW_HH
9 #define GET_SAMPLE_WINDOW_HH
10 
11 //----------------------------------------------------------------------
12 
13 #include "GETSignalModifier.hh"
14 
15 //======================================================================
16 /*! \class GETSampleWindow
17  *
18  * This class defines a windowing process for samples.
19  *
20  */
22 {
23  //------------------------------------------------------------
24  /*! \object_doc */
26  //------------------------------------------------------------
27 
28  protected:
29 
30  GETSample window; ///< Sample for windowing the signal
31 
32  public:
33  //----------------------------------------------------------
34  /** @name Constructors, affectation, destructor */
35  //@{
36  GETSampleWindow ( GETObject & obj );
37  GETSampleWindow ( u_int n = 0, double dt = 0.01 );
38  GETSampleWindow ( GETSample & w );
39  GETSampleWindow ( const GETSampleWindow & proc );
40  virtual ~GETSampleWindow ( );
41  //@}
42 
43  //----------------------------------------------------------
44  /** @name Signal windowing function */
45  //@{
46  const GETSample & GetWindow ( ) const; // inline
47  GETSample & GetWindow ( ); // inline
48 
49  void ClearWindow ( );
50  int SetWindow ( const GETSample & w );
51  int SetWindowHann ( );
52 
53  int ApplyWindow ( GETSample & sample, GETSample & result ); // inline
54  //@}
55 
56  //----------------------------------------------------------
57  /** @name Signal processing */
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.*/
71  //@}
72 };
73 
74 
75 //----------------------------------------------------------------------
76 // Inline functions
77 #include "icc/GETSampleWindow.icc"
78 
79 
80 //======================================================================
81 #endif
int SetWindowHann()
Definition: GETSampleWindow.cpp:101
ClassDef(GETSampleWindow, 0)
int ApplyWindow(GETSample &sample, GETSample &result)
Definition: GETSampleWindow.cpp:137
void ClearWindow()
Definition: GETSampleWindow.cpp:68
virtual ~GETSampleWindow()
Definition: GETSampleWindow.cpp:59
Definition: GETChannel.hh:41
GETSample window
Sample for windowing the signal.
Definition: GETSampleWindow.hh:30
GETSampleWindow(GETObject &obj)
Definition: GETSampleWindow.cpp:20
GObject(GETSampleWindow)
Definition: GETObject.hh:38
RRealSampleFFT GETSample
Define the data type for samples.
Definition: GETCommon.hh:27
int SetWindow(const GETSample &w)
Definition: GETSampleWindow.cpp:79
Definition: GETSignalModifier.hh:22
Definition: GETSampleWindow.hh:21
const GETSample & GetWindow() const
Definition: GETSampleWindow.icc:9
virtual GETSample * ProcessSample(GETSample &sample, GETSample &result, GETChannel &channel)
Definition: GETSampleWindow.cpp:167