GET library
GETCfgAGet Class Reference

#include <GETCfgAGet.hh>

Inheritance diagram for GETCfgAGet:
GETCfgAGetGlobal GETCfgAGetGlobalReg1 GETCfgAGetGlobalReg2

Public Member Functions

Constructors, affectation, destructor
 GETCfgAGet (GETAGet *p=NULL)
 
virtual ~GETCfgAGet ()
 
GET architecture related functions
virtual string GetFullId () const
 
GETAGetGetParentAGet () const
 
GETCfgChannelGetChannelConfig (u_int i) const
 
XML configuration functions
int GetXMLConfig (DOMNode *node)
 
int GetXMLConfigGlobal (DOMNode *node)
 
int GetXMLConfigGlobalReg1 (DOMNode *node)
 
int GetXMLConfigGlobalReg2 (DOMNode *node)
 
ROOT related functions
 ClassDef (GETCfgAGet, 0)
 
- Public Member Functions inherited from GETCfgAGetGlobal
 GETCfgAGetGlobal ()
 
virtual ~GETCfgAGetGlobal ()
 
 ClassDef (GETCfgAGetGlobal, 0)
 
- Public Member Functions inherited from GETCfgAGetGlobalReg1
 GETCfgAGetGlobalReg1 ()
 
virtual ~GETCfgAGetGlobalReg1 ()
 
double GetTestModeRangeValue () const
 
double GetPeakingTimeValue () const
 
double GetVicmValue () const
 
 ClassDef (GETCfgAGetGlobalReg1, 0)
 
- Public Member Functions inherited from GETCfgAGetGlobalReg2
 GETCfgAGetGlobalReg2 ()
 
virtual ~GETCfgAGetGlobalReg2 ()
 
 ClassDef (GETCfgAGetGlobalReg2, 0)
 

Public Attributes

GETCfgChannel ** cfg_channel
 Array of pointers to Channels configurations.
 
u_int cfg_channel_num
 Number of AGet channels configurations.
 
bool is_active
 Whether the AGET chip is active and should be configured.
 
GETAGetparent
 GET object the configuration is related to.
 
- Public Attributes inherited from GETCfgAGetGlobal
u_short readout_pointer_offset
 Time bucket offset to start reading from. See AGET register 12.
 
- Public Attributes inherited from GETCfgAGetGlobalReg1
u_short global_threshold
 Value of the 3 Most Significant Bits of the DAC threshold (common to all channels).
 
u_short peaking_time
 Peaking time identifier of the shaper.
 
u_short sca_pointer
 Defines the time marker of the SCA pointer pass. This marker defines the memory time of the trigger in the hit register.
 
u_short test_mode_range
 Internal test capacitor value.
 
u_short test_mode_selection
 Select the acquisition mode: nothing (physics mode); test; functional; calibration.
 
u_short vicm
 Input common mode voltage (change offset).
 

Private Member Functions

 GObject (GETCfgAGet)
 

Additional Inherited Members

- Static Public Attributes inherited from GETCfgAGetGlobalReg1
static double PeakingTimeValue [16]
 Peaking time values (us) More...
 
static double TestModeRangeValue [4] = { 10.00, 0.12, 1.00, 0.24 }
 Value of test mode capacitor (pF)
 
static double VicmValue [4] = { 1.25, 1.35, 1.55, 1.65 }
 Value of input common mode voltage (V)
 

Detailed Description

Setup configuration information for AGet chip.

Constructor & Destructor Documentation

GETCfgAGet::GETCfgAGet ( GETAGet p = NULL)
GETCfgAGet::~GETCfgAGet ( )
virtual

Destructor. The configuration from children objects are deleted only if they are not connected to a GET object.

References cfg_channel, cfg_channel_num, GETAGet::config, and parent.

Member Function Documentation

GETCfgAGet::ClassDef ( GETCfgAGet  ,
 
)

for use within ROOT.

GETCfgChannel * GETCfgAGet::GetChannelConfig ( u_int  i) const
inline

Return the configuration of a GET children object. The range of the child number is not checked.

Parameters
ichild number

References cfg_channel.

string GETCfgAGet::GetFullId ( ) const
virtual

Return the identifier of the parent GET object, if defined.

References GETObject::GetFullId(), and parent.

Referenced by GetXMLConfig(), GetXMLConfigGlobal(), GetXMLConfigGlobalReg1(), and GetXMLConfigGlobalReg2().

GETAGet * GETCfgAGet::GetParentAGet ( ) const
inline

Return the AsAd board the configuration is related to.

References parent.

int GETCfgAGet::GetXMLConfig ( DOMNode *  node)

Read the AGet chip configuration from DOM tree node. The function returns an error value.

Parameters
nodeconfiguration DOM tree node

References cfg_channel, cfg_channel_num, GETCfgSetLogic(), GetFullId(), GETCfgChannel::GetXMLConfig(), GetXMLConfigGlobal(), and is_active.

Referenced by GETCfgAsAd::GetXMLConfig().

int GETCfgAGet::GetXMLConfigGlobal ( DOMNode *  node)

Read the AGet chip Global configuration from DOM tree node. The function returns an error value.

Parameters
nodeconfiguration DOM tree node

References GETCfgSetData(), GetFullId(), and GETCfgAGetGlobal::readout_pointer_offset.

Referenced by GetXMLConfig().

int GETCfgAGet::GetXMLConfigGlobalReg1 ( DOMNode *  node)

Read the AGet chip Global/Reg1 configuration from DOM tree node. The function returns an error value.

Parameters
nodeconfiguration DOM tree node

References GETCfgSetData(), GetFullId(), GETCfgAGetGlobalReg1::global_threshold, GETCfgAGetGlobalReg1::peaking_time, GETCfgAGetGlobalReg1::sca_pointer, GETCfgAGetGlobalReg1::test_mode_range, and GETCfgAGetGlobalReg1::test_mode_selection.

int GETCfgAGet::GetXMLConfigGlobalReg2 ( DOMNode *  node)

Read the AGet chip Global/Reg2 configuration from DOM tree node. The function returns an error value.

Parameters
nodeconfiguration DOM tree node

References GetFullId().

GETCfgAGet::GObject ( GETCfgAGet  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.

The documentation for this class was generated from the following files: