GET library
GETCfgChannel Class Reference

#include <GETCfgChannel.hh>

Public Member Functions

Constructors, affectation, destructor
 GETCfgChannel (GETChannel *p=NULL)
 
virtual ~GETCfgChannel ()
 
GET architecture related functions
virtual string GetFullId () const
 
GETChannelGetParentChannel () 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.
 
GETChannelparent
 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)
 

Detailed Description

Setup configuration information:

  • for Reduced CoBo system
  • for full GET system (not yet ready)

Constructor & Destructor Documentation

GETCfgChannel::GETCfgChannel ( GETChannel p = NULL)
GETCfgChannel::~GETCfgChannel ( )
virtual

Destructor.

References GETChannel::config, and parent.

Member Function Documentation

GETCfgChannel::ClassDef ( GETCfgChannel  ,
 
)

for use within ROOT.

double GETCfgChannel::GetCSAGainValue ( ) const
inline

Return the value of the gain, in pC.

References csa_gain, and CSAGainValue.

string GETCfgChannel::GetFullId ( ) const
virtual

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

References GETObject::GetFullId(), and parent.

Referenced by GetXMLConfig().

GETChannel * GETCfgChannel::GetParentChannel ( ) const
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.

Parameters
nodeconfiguration 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().

GETCfgChannel::GObject ( GETCfgChannel  )
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.
bool GETCfgChannel::IsActive ( ) const
inline

Return true if the channel is active.

References is_active.

void GETCfgChannel::SetActive ( bool  b = true)
inline

Set whether the channel is active.

Parameters
bactive status

References is_active.

Member Data Documentation

string GETCfgChannel::TriggerInhibitId
static
Initial value:
= { "inhibit_channel",
"inhibit_trigger_data",
"inhibit_trigger_function",
"none" }

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