QApolloDbCache Class Reference

List of all members.

Detailed Description

cache for channel related data base informations concerning the DAQ. Direct access to this class is granted only to QApolloDb.

Author:
sergio.didomizio@ge.infn.it


Private Member Functions

void Dump (unsigned short crateId, bool isDump) const
 Dump on screen hardware mapping (and settings, if loaded) for the given crateId.
const QDaqChannelDaqChan (unsigned short Lg) const
 Get reference to QDaqChannel relative to logical channel Lg.
int GetBoards (unsigned short crate, std::map< unsigned short, std::string > &boards) const
 for the requested Daq crate, fill a map of board slots and corresponding board name
unsigned short GetActiveChannels (unsigned short crate, unsigned short slot, QDaqChannel::SettingsType_t what, std::vector< QDaqChannel > &chList) const
 fill vector of daq channels with given settings loaded
unsigned short GetMapping (std::map< unsigned short, QDaqChannel > &cMap) const
 fill map of lg channels and corresponding hardware mapping
unsigned short GetActiveChannels (std::map< unsigned short, QDaqChannel > &cMap, QDaqChannel::SettingsType_t what) const
 fill map of lg channels and corresponding QDaqChannels with requested settings filled
void Clear ()
 Clear cache.
void FillDefaultTriggers (unsigned short crateId)
 fill channels that don't have an entry in trgsettings table with default trigger settings

Private Attributes

std::map< unsigned short,
QDaqChannel
fChannels
 map containing mapping and settings for all loaded logical channels

Friends

class QApolloDbBase


Member Function Documentation

int QApolloDbCache::GetBoards ( unsigned short  crate,
std::map< unsigned short, std::string > &  boards 
) const [private]

for the requested Daq crate, fill a map of board slots and corresponding board name

Returns:
number of boards in the requested Daq crate

unsigned short QApolloDbCache::GetActiveChannels ( unsigned short  crate,
unsigned short  slot,
QDaqChannel::SettingsType_t  what,
std::vector< QDaqChannel > &  chList 
) const [private]

fill vector of daq channels with given settings loaded

Vector is filled for channels belonging to the given slot of the given crate. If slot is zero all slots belonging to crate are assumed

Parameters:
what settings to be loaded
Returns:
number of loaded channels

unsigned short QApolloDbCache::GetMapping ( std::map< unsigned short, QDaqChannel > &  cMap  )  const [private]

fill map of lg channels and corresponding hardware mapping

Returns:
number of loaded channels

unsigned short QApolloDbCache::GetActiveChannels ( std::map< unsigned short, QDaqChannel > &  cMap,
QDaqChannel::SettingsType_t  what 
) const [private]

fill map of lg channels and corresponding QDaqChannels with requested settings filled

Returns:
number of loaded channels


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:42 2009 for CUORE Software by  doxygen 1.5.1