GET library
GETCfgAGet.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETCfgAGet.hh
3  *
4  * Include file for the GETCfgAGet class.
5  */
6 //======================================================================
7 
8 #ifndef GET_CFG_AGET_HH
9 #define GET_CFG_AGET_HH
10 
11 //----------------------------------------------------------------------
12 #include "GETCommon.hh"
13 #include "GETCfgTools.hh"
14 #include "GETCfgAGetGlobal.hh"
15 #include "GETCfgChannel.hh"
16 
17 class GETAGet;
18 
19 //======================================================================
20 /*! \class GETCfgAGet
21  *
22  * Setup configuration information for AGet chip.
23  */
25 {
26  //------------------------------------------------------------
27  /*! \object_doc */
29  //------------------------------------------------------------
30 
31  public:
32  GETAGet * parent; ///< GET object the configuration is related to
33  GETCfgChannel ** cfg_channel; ///< Array of pointers to Channels configurations
34  u_int cfg_channel_num; ///< Number of AGet channels configurations
35 
36  // ---- Control ----
37  bool is_active; ///< Whether the AGET chip is active and should be configured.
38 
39 
40  public:
41  //----------------------------------------------------------
42  /** @name Constructors, affectation, destructor */
43  //@{
44  GETCfgAGet ( GETAGet * p = NULL );
45  virtual ~GETCfgAGet ( );
46  //@}
47 
48  //----------------------------------------------------------
49  /** @name GET architecture related functions */
50  //@{
51  virtual string GetFullId ( ) const;
52 
53  GETAGet * GetParentAGet ( ) const; // inline
54  GETCfgChannel * GetChannelConfig ( u_int i ) const; // inline
55  //@}
56 
57  //----------------------------------------------------------
58  /** @name XML configuration functions */
59  //@{
60  int GetXMLConfig ( DOMNode * node );
61  int GetXMLConfigGlobal ( DOMNode * node );
62  int GetXMLConfigGlobalReg1 ( DOMNode * node );
63  int GetXMLConfigGlobalReg2 ( DOMNode * node );
64  //@}
65 
66  //----------------------------------------------------------
67  /** @name ROOT related functions */
68  //@{
69  public:
70 
71  /*! for use within ROOT.*/
73  //@}
74 };
75 
76 
77 //----------------------------------------------------------------------
78 // Inline functions
79 #include "icc/GETCfgAGet.icc"
80 
81 
82 //======================================================================
83 #endif
GETAGet * parent
GET object the configuration is related to.
Definition: GETCfgAGet.hh:32
bool is_active
Whether the AGET chip is active and should be configured.
Definition: GETCfgAGet.hh:37
virtual ~GETCfgAGet()
Definition: GETCfgAGet.cpp:53
int GetXMLConfig(DOMNode *node)
Definition: GETCfgAGet.cpp:91
int GetXMLConfigGlobal(DOMNode *node)
Definition: GETCfgAGet.cpp:183
Definition: GETCfgAGetGlobal.hh:23
int GetXMLConfigGlobalReg2(DOMNode *node)
Definition: GETCfgAGet.cpp:301
Definition: GETCfgAGet.hh:24
GObject(GETCfgAGet)
int GetXMLConfigGlobalReg1(DOMNode *node)
Definition: GETCfgAGet.cpp:237
GETCfgChannel ** cfg_channel
Array of pointers to Channels configurations.
Definition: GETCfgAGet.hh:33
GETCfgAGet(GETAGet *p=NULL)
Definition: GETCfgAGet.cpp:17
GETCfgChannel * GetChannelConfig(u_int i) const
Definition: GETCfgAGet.icc:20
GETAGet * GetParentAGet() const
Definition: GETCfgAGet.icc:13
u_int cfg_channel_num
Number of AGet channels configurations.
Definition: GETCfgAGet.hh:34
ClassDef(GETCfgAGet, 0)
Definition: GETCfgChannel.hh:25
virtual string GetFullId() const
Definition: GETCfgAGet.cpp:78
Definition: GETAGet.hh:34