CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
cscdqm::Configuration Class Reference

CSCDQM Framework Global Configuration. More...

#include <CSCDQM_Configuration.h>

Public Member Functions

 Configuration ()
 Constructor. More...
 
 Configuration (const bool printStats)
 Constructor. More...
 
void copyChamberCounterValue (const ChamberCounterType counter_from, const ChamberCounterType counter_to, const HwId crateId, const HwId dmbId)
 Copy Chamber counter value from one counter to another. More...
 
void eventProcessTimer (const bool start)
 Switch on/off event processing timer. More...
 
const uint32_t getChamberCounterValue (const ChamberCounterType counter, const HwId crateId, const HwId dmbId) const
 Get Chamber counter value. More...
 
const unsigned long getNEvents () const
 
const unsigned long getNEventsBad () const
 
const unsigned long getNEventsCSC () const
 
const unsigned long getNEventsGood () const
 
const unsigned long getNUnpackedCSC () const
 
void incChamberCounter (const ChamberCounterType counter, const HwId crateId, const HwId dmbId)
 Increment Chamber counter by 1. More...
 
void incNEvents ()
 
void incNEventsBad ()
 
void incNEventsCSC ()
 
void incNEventsGood ()
 
void incNUnpackedCSC ()
 
const bool needBookMO (const std::string name) const
 Check if MO is not excluded by MO Filter. More...
 
void printStats ()
 Print Statistics on Exit (Destruction) More...
 
void reset ()
 Reset counters. More...
 
void setChamberCounterValue (const ChamberCounterType counter, const HwId crateId, const HwId dmbId, const uint32_t value)
 Set Chamber counter value. More...
 
void updateEffTimer (const bool start)
 Switch on/off efficiency MO processing timer. More...
 
void updateFraTimer (const bool start)
 Switch on/off fractional MO processing timer. More...
 
 ~Configuration ()
 Destructor. More...
 

Public Attributes

boost::function< MonitorObject
*(const HistoBookRequest &) > 
fnBook
 
boost::function< bool(const
HistoId id, const HwId &id1,
const HwId &id2, const HwId
&id3, MonitorObject *&mo) > 
fnGetCacheCSCHisto
 
boost::function< bool(const
HistoId id, const HwId &id1,
MonitorObject *&mo) > 
fnGetCacheDDUHisto
 
boost::function< bool(const
HistoId id, MonitorObject *&mo) > 
fnGetCacheEMUHisto
 
boost::function< bool(const
HistoId id, const HwId &id1,
MonitorObject *&mo) > 
fnGetCacheFEDHisto
 
boost::function< bool(const
HistoId id, MonitorObject *&mo) > 
fnGetCacheParHisto
 
boost::function< bool(const
unsigned int, const unsigned
int, CSCDetId &) > 
fnGetCSCDetId
 
boost::function< bool(const
HistoDef &histoT,
MonitorObject *&) > 
fnGetHisto
 
boost::function< bool(unsigned
int &, unsigned int &) > 
fnIsBookedCSC
 
boost::function< bool(unsigned
int &) > 
fnIsBookedDDU
 
boost::function< bool(unsigned
int &) > 
fnIsBookedFED
 
boost::function< bool(unsigned
int &, unsigned int
&, unsigned int &) > 
fnNextBookedCSC
 
boost::function< void(const
HistoDef &histoT,
MonitorObject *&) > 
fnPutHisto
 

Private Member Functions

void init ()
 Initialize parameter values and reset counters (used by constructors) More...
 

Private Attributes

ChamberMapCounterMapType chamberCounters
 
unsigned long effCount
 
boost::timer effTimer
 
double effTimeSum
 
boost::timer eventTimer
 
double eventTimeSum
 
unsigned long fraCount
 
boost::timer fraTimer
 
double fraTimeSum
 
boost::timer globalTimer
 
std::vector< MOFilterItemMOFilterItems
 
unsigned long nEvents
 
unsigned long nEventsBad
 
unsigned long nEventsCSC
 
unsigned long nEventsGood
 
unsigned long nUnpackedCSC
 
unsigned short printStatsLocal
 

Detailed Description

CSCDQM Framework Global Configuration.

Definition at line 221 of file CSCDQM_Configuration.h.

Constructor & Destructor Documentation

cscdqm::Configuration::Configuration ( )
inline

Constructor.

Parameter Getters Parameter Setters

Definition at line 279 of file CSCDQM_Configuration.h.

cscdqm::Configuration::Configuration ( const bool  printStats)
inline

Constructor.

Parameters
printStatsPrint statistics on exit or not (overrides configuration parameter)

Definition at line 288 of file CSCDQM_Configuration.h.

cscdqm::Configuration::~Configuration ( )
inline

Destructor.

Definition at line 300 of file CSCDQM_Configuration.h.

Member Function Documentation

void cscdqm::Configuration::copyChamberCounterValue ( const ChamberCounterType  counter_from,
const ChamberCounterType  counter_to,
const HwId  crateId,
const HwId  dmbId 
)
inline

Copy Chamber counter value from one counter to another.

Parameters
counter_fromCounter Type to copy value from
counter_toCounter Type to copy value to
crateIdCSC Crate ID
dmbIdCSC DMB ID
Returns

Definition at line 658 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::eventProcessTimer ( const bool  start)
inline

Switch on/off event processing timer.

Parameters
starttimer action (true - start, false - stop)
Returns

Definition at line 517 of file CSCDQM_Configuration.h.

const uint32_t cscdqm::Configuration::getChamberCounterValue ( const ChamberCounterType  counter,
const HwId  crateId,
const HwId  dmbId 
) const
inline

Get Chamber counter value.

Parameters
counterCounter Type
crateIdCSC Crate ID
dmbIdCSC DMB ID
Returns
current counter value

Definition at line 669 of file CSCDQM_Configuration.h.

Referenced by cscdqm::EventProcessor::updateFractionHistos().

const unsigned long cscdqm::Configuration::getNEvents ( ) const
inline

Getters for Global Counters.

Definition at line 594 of file CSCDQM_Configuration.h.

const unsigned long cscdqm::Configuration::getNEventsBad ( ) const
inline

Definition at line 595 of file CSCDQM_Configuration.h.

const unsigned long cscdqm::Configuration::getNEventsCSC ( ) const
inline

Definition at line 597 of file CSCDQM_Configuration.h.

const unsigned long cscdqm::Configuration::getNEventsGood ( ) const
inline

Definition at line 596 of file CSCDQM_Configuration.h.

const unsigned long cscdqm::Configuration::getNUnpackedCSC ( ) const
inline

Definition at line 598 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::incChamberCounter ( const ChamberCounterType  counter,
const HwId  crateId,
const HwId  dmbId 
)
inline

Increment Chamber counter by 1.

Parameters
counterCounter Type
crateIdCSC Crate ID
dmbIdCSC DMB ID
Returns

Definition at line 624 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::incNEvents ( )
inline

Increments (by 1) for Global Counters.

Definition at line 604 of file CSCDQM_Configuration.h.

Referenced by CSCOfflineClient::dqmEndJob().

void cscdqm::Configuration::incNEventsBad ( )
inline

Definition at line 612 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::incNEventsCSC ( )
inline

Definition at line 614 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::incNEventsGood ( )
inline

Definition at line 613 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::incNUnpackedCSC ( )
inline

Definition at line 615 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::init ( void  )
inlineprivate

Initialize parameter values and reset counters (used by constructors)

Define parameters

Returns

Assign default values to parameters

Definition at line 237 of file CSCDQM_Configuration.h.

const bool cscdqm::Configuration::needBookMO ( const std::string  name) const
inline

Check if MO is not excluded by MO Filter.

Parameters
nameMO name to book
Returns
true if MO is not excluded, false - otherwise

Definition at line 558 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::printStats ( )
inline

Print Statistics on Exit (Destruction)

Returns

Definition at line 461 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::reset ( void  )
inline

Reset counters.

Counters section.

Returns

Definition at line 577 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::setChamberCounterValue ( const ChamberCounterType  counter,
const HwId  crateId,
const HwId  dmbId,
const uint32_t  value 
)
inline

Set Chamber counter value.

Parameters
counterCounter Type
crateIdCSC Crate ID
dmbIdCSC DMB ID
valuevalue to set
Returns

Definition at line 636 of file CSCDQM_Configuration.h.

void cscdqm::Configuration::updateEffTimer ( const bool  start)
inline

Switch on/off efficiency MO processing timer.

Parameters
starttimer action (true - start, false - stop)
Returns

Definition at line 544 of file CSCDQM_Configuration.h.

Referenced by cscdqm::EventProcessorMutex::updateFractionAndEfficiencyHistos().

void cscdqm::Configuration::updateFraTimer ( const bool  start)
inline

Switch on/off fractional MO processing timer.

Parameters
starttimer action (true - start, false - stop)
Returns

Definition at line 530 of file CSCDQM_Configuration.h.

Referenced by cscdqm::EventProcessorMutex::updateFractionAndEfficiencyHistos().

Member Data Documentation

ChamberMapCounterMapType cscdqm::Configuration::chamberCounters
private

Map of chamber counters

Definition at line 705 of file CSCDQM_Configuration.h.

unsigned long cscdqm::Configuration::effCount
private

Number of Efficiency MO updates

Definition at line 702 of file CSCDQM_Configuration.h.

boost::timer cscdqm::Configuration::effTimer
private

Efficiency MO update Timer

Definition at line 423 of file CSCDQM_Configuration.h.

double cscdqm::Configuration::effTimeSum
private

Efficiency MO update time cummulative

Definition at line 432 of file CSCDQM_Configuration.h.

boost::timer cscdqm::Configuration::eventTimer
private

Event processing Timer

Definition at line 417 of file CSCDQM_Configuration.h.

double cscdqm::Configuration::eventTimeSum
private

Event processing time cummulative

Definition at line 426 of file CSCDQM_Configuration.h.

boost::function< MonitorObject* (const HistoBookRequest&) > cscdqm::Configuration::fnBook

Pointer to Collection Book Function

Definition at line 265 of file CSCDQM_Configuration.h.

boost::function< bool (const HistoId id, const HwId& id1, const HwId& id2, const HwId& id3, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheCSCHisto

Definition at line 256 of file CSCDQM_Configuration.h.

boost::function< bool (const HistoId id, const HwId& id1, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheDDUHisto

Definition at line 255 of file CSCDQM_Configuration.h.

boost::function< bool (const HistoId id, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheEMUHisto

Pointers to Cache Functions

Definition at line 253 of file CSCDQM_Configuration.h.

boost::function< bool (const HistoId id, const HwId& id1, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheFEDHisto

Definition at line 254 of file CSCDQM_Configuration.h.

boost::function< bool (const HistoId id, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheParHisto

Definition at line 257 of file CSCDQM_Configuration.h.

boost::function< bool (const unsigned int, const unsigned int, CSCDetId&) > cscdqm::Configuration::fnGetCSCDetId

Pointer to CSC Det Id function

Definition at line 268 of file CSCDQM_Configuration.h.

boost::function< bool (const HistoDef& histoT, MonitorObject*&) > cscdqm::Configuration::fnGetHisto

Pointers to Shared functions (created in Dispatcher)Get MO Globally

Definition at line 250 of file CSCDQM_Configuration.h.

boost::function< bool (unsigned int&, unsigned int&) > cscdqm::Configuration::fnIsBookedCSC

Definition at line 260 of file CSCDQM_Configuration.h.

boost::function< bool (unsigned int&) > cscdqm::Configuration::fnIsBookedDDU

Definition at line 261 of file CSCDQM_Configuration.h.

boost::function< bool (unsigned int&) > cscdqm::Configuration::fnIsBookedFED

Definition at line 262 of file CSCDQM_Configuration.h.

boost::function< bool (unsigned int&, unsigned int&, unsigned int&) > cscdqm::Configuration::fnNextBookedCSC
boost::function< void (const HistoDef& histoT, MonitorObject*&) > cscdqm::Configuration::fnPutHisto

Definition at line 258 of file CSCDQM_Configuration.h.

Referenced by CSCOfflineClient::dqmEndJob().

unsigned long cscdqm::Configuration::fraCount
private

Number of Fractional MO updates

Definition at line 699 of file CSCDQM_Configuration.h.

boost::timer cscdqm::Configuration::fraTimer
private

Fractional MO update Timer

Definition at line 420 of file CSCDQM_Configuration.h.

double cscdqm::Configuration::fraTimeSum
private

Fractional MO update time cummulative

Definition at line 429 of file CSCDQM_Configuration.h.

boost::timer cscdqm::Configuration::globalTimer
private

Statistics collection and printing sectionGlobal Timer

Definition at line 414 of file CSCDQM_Configuration.h.

std::vector<MOFilterItem> cscdqm::Configuration::MOFilterItems
private

Map of MO Filters

Definition at line 228 of file CSCDQM_Configuration.h.

unsigned long cscdqm::Configuration::nEvents
private

Global Counters.Number of events

Definition at line 684 of file CSCDQM_Configuration.h.

unsigned long cscdqm::Configuration::nEventsBad
private

Number of bad events

Definition at line 687 of file CSCDQM_Configuration.h.

unsigned long cscdqm::Configuration::nEventsCSC
private

Number of events that have CSC data (used in Global DQM)

Definition at line 693 of file CSCDQM_Configuration.h.

unsigned long cscdqm::Configuration::nEventsGood
private

Number of good events

Definition at line 690 of file CSCDQM_Configuration.h.

unsigned long cscdqm::Configuration::nUnpackedCSC
private

number of unpacked chambers

Definition at line 696 of file CSCDQM_Configuration.h.

unsigned short cscdqm::Configuration::printStatsLocal
private

Definition at line 225 of file CSCDQM_Configuration.h.