GET library
GETModifierSeq.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETModifierSeq.hh
3  *
4  * Include file for the GETModifierSeq class.
5  */
6 //======================================================================
7 
8 #ifndef GET_MODIFIER_SEQ_HH
9 #define GET_MODIFIER_SEQ_HH
10 
11 //----------------------------------------------------------------------
12 
13 #include "GETSignalModifier.hh"
14 
15 //======================================================================
16 /*! \class GETModifierSeq
17  *
18  * This class defines a signal modifier that is a sequence
19  * of 2 other signal modifiers.
20  *
21  * This class is obsolete since the GETProcessSerie has been added.
22  */
24 {
25  //------------------------------------------------------------
26  /*! \object_doc */
28  //------------------------------------------------------------
29 
30  protected:
31 
32  GETSignalModifier * process1; ///< First signal modifier
33  GETSignalModifier * process2; ///< Second signal modifier
34  bool local_p1; ///< Whether process 1 is defined locally
35  bool local_p2; ///< Whether process 1 is defined locally
36 
37  public:
38  //----------------------------------------------------------
39  /** @name Constructors, affectation, destructor */
40  //@{
41  GETModifierSeq ( GETSignalModifier * p1 = NULL, GETSignalModifier * p2 = NULL );
43  GETModifierSeq ( const GETModifierSeq & proc );
44  virtual ~GETModifierSeq ( );
45  //@}
46 
47  //----------------------------------------------------------
48  /** @name Process parameters */
49  //@{
50  const GETSignalModifier * GetProcess1 ( ) const; // inline
51  GETSignalModifier * GetProcess1 ( ); // inline
52  const GETSignalModifier * GetProcess2 ( ) const; // inline
53  GETSignalModifier * GetProcess2 ( ); // inline
54 
55  bool IsProcess1Local ( ) const; // inline
56  bool IsProcess2Local ( ) const; // inline
57 
58  virtual void SetProcess ( const GETSignalModifier * proc );
59  virtual void SetProcess ( const GETSignalModifier & proc );
60 
61  //@}
62 
63  //----------------------------------------------------------
64  /** @name Signal processing */
65  //@{
66 
67  virtual GETSample * ProcessSample ( GETSample & sample,
68  GETSample & result,
69  GETChannel & channel );
70  //@}
71 
72  //----------------------------------------------------------
73  /** @name ROOT related functions */
74  //@{
75  public:
76 
77  /*! for use within ROOT.*/
79  //@}
80 };
81 
82 
83 //----------------------------------------------------------------------
84 // Inline functions
85 #include "icc/GETModifierSeq.icc"
86 
87 
88 //======================================================================
89 #endif
ClassDef(GETModifierSeq, 0)
Definition: GETModifierSeq.hh:23
virtual GETSample * ProcessSample(GETSample &sample, GETSample &result, GETChannel &channel)
Definition: GETModifierSeq.cpp:175
GETSignalModifier * process2
Second signal modifier.
Definition: GETModifierSeq.hh:33
const GETSignalModifier * GetProcess1() const
Definition: GETModifierSeq.icc:13
bool local_p1
Whether process 1 is defined locally.
Definition: GETModifierSeq.hh:34
Definition: GETChannel.hh:41
GObject(GETModifierSeq)
GETSignalModifier * process1
First signal modifier.
Definition: GETModifierSeq.hh:32
bool IsProcess1Local() const
Definition: GETModifierSeq.icc:26
GETModifierSeq(GETSignalModifier *p1=NULL, GETSignalModifier *p2=NULL)
Definition: GETModifierSeq.cpp:20
RRealSampleFFT GETSample
Define the data type for samples.
Definition: GETCommon.hh:27
virtual ~GETModifierSeq()
Definition: GETModifierSeq.cpp:72
Definition: GETSignalModifier.hh:22
bool IsProcess2Local() const
Definition: GETModifierSeq.icc:31
bool local_p2
Whether process 1 is defined locally.
Definition: GETModifierSeq.hh:35
const GETSignalModifier * GetProcess2() const
Definition: GETModifierSeq.icc:21
virtual void SetProcess(const GETSignalModifier *proc)
Definition: GETModifierSeq.cpp:85