QDaqChannel Class Reference
[ApolloDataBase]

Inheritance diagram for QDaqChannel:

QLgChannel

List of all members.


Detailed Description

container of Daq, Electronics and Trigger channel settings

Author:
sergio.didomizio@ge.infn.it

Public Types

enum  SettingsType_t {
  Mapping_s = 1L << 0, Bes_s = 1L << 1, FE_s = 1L << 2, Daq_s = 1L << 3,
  Pulser_s = 1L << 4, Trg_s = 1L << 5, All_s = Mapping_s | Bes_s | FE_s | Daq_s | Pulser_s | Trg_s, Ele_s = Mapping_s | Bes_s | FE_s | Pulser_s
}
 human readable settings type identifiers More...

Public Member Functions

 QDaqChannel ()
 default constructor
 QDaqChannel (const QDaqChannel &lg, SettingsType_t what)
 copy constructor
bool GetSaveFlag () const
 get channel save flag
bool GetParameter (SettingsType_t what, const std::string &parName, QVdt &par) const
 get parameter
bool GetTrgParameter (const unsigned int tag, const std::string &parName, QVdt &par)
 get trigger parameter
void Dump () const
 dump on screen loaded settings and mapping

Private Member Functions

void Clear ()

Private Attributes

std::map< std::string, QVdt > fFESettings
std::map< std::string, QVdt > fBesSettings
std::map< std::string, QVdt > fPulSettings
std::map< std::string, QVdt > fDaqSettings
std::string fTrgName1
std::string fTrgName2
std::string fTrgName3
std::string fTrgName4
std::map< std::string, QVdt > fTrgSettings1
std::map< std::string, QVdt > fTrgSettings2
std::map< std::string, QVdt > fTrgSettings3
std::map< std::string, QVdt > fTrgSettings4
bool fSaveFlag
bool fDefaultTrg

Friends

class QApolloDbBase
class QApolloDbCache

Member Enumeration Documentation

human readable settings type identifiers

Enumerator:
Mapping_s  Hardware Mapping
Bes_s  Bessel Settings
FE_s  Front End Settings
Daq_s  Daq Settings
Pulser_s  Pulser Settings
Trg_s  Trigger Settings
All_s  All
Ele_s  FE, Bessel and Pulser


Constructor & Destructor Documentation

QDaqChannel::QDaqChannel ( const QDaqChannel lg,
SettingsType_t  what 
)


Member Function Documentation

bool QDaqChannel::GetParameter ( SettingsType_t  what,
const std::string &  parName,
QVdt &  par 
) const

get parameter

Parameters:
what setting type the parameter belongs to: valid settings type for this method are Bes_s, FE_s, Daq_s, Pulser_s. Use specific GetTrgParameter method for trigger settings.
parName parameter name.
par reference to QVdt object to be filled with requested parameter
Returns:
true on success, false if parName is invalid or settings type specified by what is not loaded in current map.

References Bes_s, Daq_s, FE_s, and Pulser_s.

Referenced by QPulserChannel::Set().

bool QDaqChannel::GetTrgParameter ( const unsigned int  tag,
const std::string &  parName,
QVdt &  par 
)

get trigger parameter

Parameters:
tag trigger tag, can be 1..4
parName parameter name.
par reference to QVdt object to be filled with requested parameter
Returns:
true on success, false if parName is invalid or trigger settings are not loaded


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

Generated on Tue Nov 16 10:50:05 2010 for CUORE Software by  doxygen 1.5.6