GET library
|
#include <GETCfgChannel.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETCfgChannel (GETChannel *p=NULL) | |
virtual | ~GETCfgChannel () |
GET architecture related functions | |
virtual string | GetFullId () const |
GETChannel * | GetParentChannel () const |
XML configuration functions | |
int | GetXMLConfig (DOMNode *node) |
Set data function | |
void | SetActive (bool b=true) |
Access to class data | |
bool | IsActive () const |
double | GetCSAGainValue () const |
ROOT related functions | |
ClassDef (GETCfgChannel, 0) | |
Public Attributes | |
u_short | csa_gain |
Value of the channel gain (CSA charge capacitor) | |
bool | is_active |
Whether this channel is active. | |
GETChannel * | parent |
GET object the configuration is related to. | |
u_short | reading_mode |
When to read the channel. | |
bool | selected_for_test_mode |
Switch between physics mode and test mode (input capacitor for injection) | |
u_short | threshold_LSB |
Value of the individual DAC threshold for the channel (4 least signficant bits) | |
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) | |
Static Public Attributes | |
static string | CSAGainId [4] = { "10pC", "120fC", "1pC", "240fC" } |
Gain identifiers. | |
static double | CSAGainValue [4] = { 10.00, 0.12, 1.00, 0.24 } |
Gain values (pC) | |
static string | ReadingModeId [3] = { "always", "never", "only_if_hit" } |
Reading mode identifiers. | |
static string | TriggerInhibitId [4] |
Trigger Inhibit identifiers. More... | |
Private Member Functions | |
GObject (GETCfgChannel) | |
Setup configuration information:
GETCfgChannel::GETCfgChannel | ( | GETChannel * | p = NULL | ) |
Constructor.
References csa_gain, is_active, parent, reading_mode, selected_for_test_mode, threshold_LSB, and trigger_inhibition.
|
virtual |
Destructor.
References GETChannel::config, and parent.
GETCfgChannel::ClassDef | ( | GETCfgChannel | , |
0 | |||
) |
for use within ROOT.
|
inline |
Return the value of the gain, in pC.
References csa_gain, and CSAGainValue.
|
virtual |
Return the identifier of the parent GET object, if defined.
References GETObject::GetFullId(), and parent.
Referenced by GetXMLConfig().
|
inline |
Return the AsAd board the configuration is related to.
References parent.
int GETCfgChannel::GetXMLConfig | ( | DOMNode * | node | ) |
Read the AGet channel configuration from DOM tree node. The function returns an error value.
node | configuration DOM tree node |
References csa_gain, GETCfgSetData(), GETCfgSetLogic(), GetFullId(), is_active, reading_mode, selected_for_test_mode, threshold_LSB, and trigger_inhibition.
Referenced by GETCfgAGet::GetXMLConfig().
|
private |
Macro from GCpp library that defines the following functions:
|
inline |
Return true if the channel is active.
References is_active.
|
inline |
|
static |