QApolloDbCache Class Reference
[ApolloDataBase]

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

Private Attributes

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

Friends

class QApolloDbBase

Member Function Documentation

int QApolloDbCache::GetBoards ( unsigned int  crate,
std::map< unsigned int, 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

References fChannels, QLgChannel::GetDaqBoard(), QLgChannel::GetDaqBoardName(), QLgChannel::GetDaqCrate(), and QLgChannel::GetDaqSlot().

Referenced by QApolloDbBase::GetBoards().

unsigned int QApolloDbCache::GetActiveChannels ( unsigned int  crate,
unsigned int  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

References fChannels, QLgChannel::GetDaqCrate(), QLgChannel::GetDaqSlot(), and QLgChannel::IsEnabled().

Referenced by QApolloDbBase::GetActiveChannels().

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

fill map of lg channels and corresponding hardware mapping

Returns:
number of loaded channels

References fChannels, QLgChannel::Lg(), and QDaqChannel::Mapping_s.

Referenced by QApolloDbBase::GetMapping().

unsigned int QApolloDbCache::GetActiveChannels ( std::map< unsigned int, 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

References fChannels, and QLgChannel::Lg().


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

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