GET library
GETCfgChannel.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETCfgChannel.hh
3  *
4  * Include file for the GETCfgChannel class.
5  */
6 //======================================================================
7 
8 #ifndef GET_CFG_CHANNEL_HH
9 #define GET_CFG_CHANNEL_HH
10 
11 //----------------------------------------------------------------------
12 #include "GETCommon.hh"
13 #include "GETCfgTools.hh"
14 
15 class GETChannel;
16 
17 //======================================================================
18 /*! \class GETCfgChannel
19  *
20  * Setup configuration information:
21  * - for Reduced CoBo system
22  * - for full GET system (not yet ready)
23  *
24  */
26 {
27  //------------------------------------------------------------
28  /*! \object_doc */
30  //------------------------------------------------------------
31 
32  public:
33  GETChannel * parent; ///< GET object the configuration is related to
34 
35 
36  static string TriggerInhibitId[4]; ///< Trigger Inhibit identifiers
37  static string CSAGainId [4]; ///< Gain identifiers
38  static string ReadingModeId [3]; ///< Reading mode identifiers
39 
40  static double CSAGainValue [4]; ///< Gain values (pC)
41 
42  bool is_active; ///< Whether this channel is active
43  bool selected_for_test_mode; ///< Switch between physics mode and test mode (input capacitor for injection)
44  u_short trigger_inhibition; ///< Permits to inhibit a specific channel to the trigger building and/or to the trigger data (trigger building and hit register)
45  u_short threshold_LSB; ///< Value of the individual DAC threshold for the channel (4 least signficant bits)
46  u_short csa_gain; ///< Value of the channel gain (CSA charge capacitor)
47  u_short reading_mode; ///< When to read the channel.
48 
49  public:
50  //----------------------------------------------------------
51  /** @name Constructors, affectation, destructor */
52  //@{
53  GETCfgChannel ( GETChannel * p = NULL );
54  virtual ~GETCfgChannel ( );
55  //@}
56 
57  //----------------------------------------------------------
58  /** @name GET architecture related functions */
59  //@{
60  virtual string GetFullId ( ) const;
61 
62  GETChannel * GetParentChannel ( ) const; // inline
63  //@}
64 
65 
66  //----------------------------------------------------------
67  /** @name XML configuration functions */
68  //@{
69  int GetXMLConfig ( DOMNode * node );
70  //@}
71 
72 
73  //----------------------------------------------------------
74  /** @name Set data function */
75  //@{
76  void SetActive ( bool b = true ); // inline
77  //@}
78 
79  //----------------------------------------------------------
80  /** @name Access to class data */
81  //@{
82  bool IsActive ( ) const; // inline
83  double GetCSAGainValue ( ) const; // inline
84  //@}
85 
86  //----------------------------------------------------------
87  /** @name ROOT related functions */
88  //@{
89  public:
90 
91  /*! for use within ROOT.*/
93  //@}
94 };
95 
96 
97 //----------------------------------------------------------------------
98 // Inline functions
99 #include "icc/GETCfgChannel.icc"
100 
101 
102 //======================================================================
103 #endif
virtual ~GETCfgChannel()
Definition: GETCfgChannel.cpp:46
static string TriggerInhibitId[4]
Trigger Inhibit identifiers.
Definition: GETCfgChannel.hh:36
static double CSAGainValue[4]
Gain values (pC)
Definition: GETCfgChannel.hh:40
void SetActive(bool b=true)
Definition: GETCfgChannel.icc:22
static string ReadingModeId[3]
Reading mode identifiers.
Definition: GETCfgChannel.hh:38
u_short csa_gain
Value of the channel gain (CSA charge capacitor)
Definition: GETCfgChannel.hh:46
bool selected_for_test_mode
Switch between physics mode and test mode (input capacitor for injection)
Definition: GETCfgChannel.hh:43
Definition: GETChannel.hh:41
virtual string GetFullId() const
Definition: GETCfgChannel.cpp:62
GObject(GETCfgChannel)
ClassDef(GETCfgChannel, 0)
static string CSAGainId[4]
Gain identifiers.
Definition: GETCfgChannel.hh:37
bool is_active
Whether this channel is active.
Definition: GETCfgChannel.hh:42
GETCfgChannel(GETChannel *p=NULL)
Definition: GETCfgChannel.cpp:26
GETChannel * GetParentChannel() const
Definition: GETCfgChannel.icc:13
u_short trigger_inhibition
Permits to inhibit a specific channel to the trigger building and/or to the trigger data (trigger bui...
Definition: GETCfgChannel.hh:44
u_short reading_mode
When to read the channel.
Definition: GETCfgChannel.hh:47
bool IsActive() const
Definition: GETCfgChannel.icc:28
int GetXMLConfig(DOMNode *node)
Definition: GETCfgChannel.cpp:74
GETChannel * parent
GET object the configuration is related to.
Definition: GETCfgChannel.hh:33
Definition: GETCfgChannel.hh:25
double GetCSAGainValue() const
Definition: GETCfgChannel.icc:32
u_short threshold_LSB
Value of the individual DAC threshold for the channel (4 least signficant bits)
Definition: GETCfgChannel.hh:45