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< MOFilterItem > | MOFilterItems |
unsigned long | nEvents |
unsigned long | nEventsBad |
unsigned long | nEventsCSC |
unsigned long | nEventsGood |
unsigned long | nUnpackedCSC |
unsigned short | printStatsLocal |
CSCDQM Framework Global Configuration.
Definition at line 220 of file CSCDQM_Configuration.h.
|
inline |
Constructor.
Parameter Getters Parameter Setters
Definition at line 278 of file CSCDQM_Configuration.h.
References init(), and printStatsLocal.
|
inline |
Constructor.
printStats | Print statistics on exit or not (overrides configuration parameter) |
Definition at line 287 of file CSCDQM_Configuration.h.
References init(), and printStatsLocal.
|
inline |
Destructor.
Definition at line 299 of file CSCDQM_Configuration.h.
References printStats(), and printStatsLocal.
|
inline |
Copy Chamber counter value from one counter to another.
counter_from | Counter Type to copy value from |
counter_to | Counter Type to copy value to |
crateId | CSC Crate ID |
dmbId | CSC DMB ID |
Definition at line 657 of file CSCDQM_Configuration.h.
References getChamberCounterValue(), and setChamberCounterValue().
Referenced by cscdqm::EventProcessor::processCSC(), and cscdqm::EventProcessor::processExaminer().
|
inline |
Switch on/off event processing timer.
start | timer action (true - start, false - stop) |
Definition at line 516 of file CSCDQM_Configuration.h.
References eventTimer, and eventTimeSum.
|
inline |
Get Chamber counter value.
counter | Counter Type |
crateId | CSC Crate ID |
dmbId | CSC DMB ID |
Definition at line 668 of file CSCDQM_Configuration.h.
References chamberCounters.
Referenced by copyChamberCounterValue(), incChamberCounter(), cscdqm::EventProcessor::processCSC(), cscdqm::EventProcessor::processExaminer(), and cscdqm::EventProcessor::updateFractionHistos().
|
inline |
Getters for Global Counters.
Definition at line 593 of file CSCDQM_Configuration.h.
References nEvents.
Referenced by incNEvents(), cscdqm::EventProcessor::processCSC(), cscdqm::EventProcessor::processDDU(), and cscdqm::EventProcessor::updateEfficiencyHistos().
|
inline |
|
inline |
Definition at line 596 of file CSCDQM_Configuration.h.
References nEventsCSC.
Referenced by cscdqm::Dispatcher::updateFractionAndEfficiencyHistosAuto().
|
inline |
|
inline |
|
inline |
Increment Chamber counter by 1.
counter | Counter Type |
crateId | CSC Crate ID |
dmbId | CSC DMB ID |
Definition at line 623 of file CSCDQM_Configuration.h.
References getChamberCounterValue(), and setChamberCounterValue().
Referenced by cscdqm::EventProcessor::processExaminer().
|
inline |
Increments (by 1) for Global Counters.
Definition at line 603 of file CSCDQM_Configuration.h.
References getNEvents(), LOG_INFO, and nEvents.
Referenced by CSCOfflineClient::endRun(), and cscdqm::EventProcessor::preProcessEvent().
|
inline |
Definition at line 611 of file CSCDQM_Configuration.h.
References nEventsBad.
Referenced by cscdqm::EventProcessor::processExaminer().
|
inline |
|
inline |
|
inline |
Definition at line 614 of file CSCDQM_Configuration.h.
References nUnpackedCSC.
Referenced by cscdqm::EventProcessor::processCSC().
|
inlineprivate |
Initialize parameter values and reset counters (used by constructors)
Define parameters
Assign default values to parameters
Definition at line 236 of file CSCDQM_Configuration.h.
References CONFIG_PARAMETER_DEFAULT_MACRO, CONFIG_PARAMETERS_SEQ, and reset().
Referenced by Configuration().
|
inline |
Check if MO is not excluded by MO Filter.
name | MO name to book |
Definition at line 557 of file CSCDQM_Configuration.h.
References i, cscdqm::MOFilterItem::include, MOFilterItems, cscdqm::MOFilterItem::pattern, cscdqm::Utility::regexMatch(), and query::result.
Referenced by cscdqm::Collection::book().
|
inline |
Print Statistics on Exit (Destruction)
Definition at line 460 of file CSCDQM_Configuration.h.
References effCount, effTimeSum, eventTimeSum, fraCount, fraTimeSum, globalTimer, fwlog::logger(), nEvents, nEventsBad, nEventsCSC, nEventsGood, nUnpackedCSC, SEPFIELD, and STATFIELD.
Referenced by ~Configuration().
|
inline |
Reset counters.
Counters section.
Definition at line 576 of file CSCDQM_Configuration.h.
References effCount, effTimeSum, eventTimeSum, fraCount, fraTimeSum, nEvents, nEventsBad, nEventsCSC, nEventsGood, and nUnpackedCSC.
Referenced by init().
|
inline |
Set Chamber counter value.
counter | Counter Type |
crateId | CSC Crate ID |
dmbId | CSC DMB ID |
value | value to set |
Definition at line 635 of file CSCDQM_Configuration.h.
References chamberCounters, fwrapper::cs, and relativeConstraints::value.
Referenced by copyChamberCounterValue(), incChamberCounter(), and cscdqm::EventProcessor::processCSC().
|
inline |
Switch on/off efficiency MO processing timer.
start | timer action (true - start, false - stop) |
Definition at line 543 of file CSCDQM_Configuration.h.
References effCount, effTimer, and effTimeSum.
Referenced by cscdqm::EventProcessorMutex::updateFractionAndEfficiencyHistos().
|
inline |
Switch on/off fractional MO processing timer.
start | timer action (true - start, false - stop) |
Definition at line 529 of file CSCDQM_Configuration.h.
References fraCount, fraTimer, and fraTimeSum.
Referenced by cscdqm::EventProcessorMutex::updateFractionAndEfficiencyHistos().
|
private |
Map of chamber counters
Definition at line 704 of file CSCDQM_Configuration.h.
Referenced by getChamberCounterValue(), and setChamberCounterValue().
|
private |
Number of Efficiency MO updates
Definition at line 701 of file CSCDQM_Configuration.h.
Referenced by printStats(), reset(), and updateEffTimer().
|
private |
Efficiency MO update Timer
Definition at line 422 of file CSCDQM_Configuration.h.
Referenced by updateEffTimer().
|
private |
Efficiency MO update time cummulative
Definition at line 431 of file CSCDQM_Configuration.h.
Referenced by printStats(), reset(), and updateEffTimer().
|
private |
Definition at line 416 of file CSCDQM_Configuration.h.
Referenced by eventProcessTimer().
|
private |
Event processing time cummulative
Definition at line 425 of file CSCDQM_Configuration.h.
Referenced by eventProcessTimer(), printStats(), and reset().
boost::function< MonitorObject* (const HistoBookRequest&) > cscdqm::Configuration::fnBook |
Pointer to Collection Book Function
Definition at line 264 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Collection::book(), and cscdqm::Dispatcher::commonConstruct().
boost::function< bool (const HistoId id, const HwId& id1, const HwId& id2, const HwId& id3, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheCSCHisto |
Definition at line 255 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct(), and cscdqm::EventProcessor::getCSCHisto().
boost::function< bool (const HistoId id, const HwId& id1, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheDDUHisto |
Definition at line 254 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct(), and cscdqm::EventProcessor::getDDUHisto().
boost::function< bool (const HistoId id, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheEMUHisto |
Pointers to Cache Functions
Definition at line 252 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct(), and cscdqm::EventProcessor::getEMUHisto().
boost::function< bool (const HistoId id, const HwId& id1, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheFEDHisto |
Definition at line 253 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct(), and cscdqm::EventProcessor::getFEDHisto().
boost::function< bool (const HistoId id, MonitorObject*& mo) > cscdqm::Configuration::fnGetCacheParHisto |
Definition at line 256 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct(), and cscdqm::EventProcessor::getParHisto().
boost::function< bool (const unsigned int, const unsigned int, CSCDetId&) > cscdqm::Configuration::fnGetCSCDetId |
Pointer to CSC Det Id function
Definition at line 267 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct(), cscdqm::EventProcessor::getCSCFromMap(), cscdqm::EventProcessor::processCSC(), and cscdqm::EventProcessor::processExaminer().
boost::function< bool (const HistoDef& histoT, MonitorObject*&) > cscdqm::Configuration::fnGetHisto |
Pointers to Shared functions (created in Dispatcher)Get MO Globally
Definition at line 249 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct(), cscdqm::EventProcessor::getCSCHisto(), cscdqm::EventProcessor::getDDUHisto(), cscdqm::EventProcessor::getEMUHisto(), cscdqm::EventProcessor::getFEDHisto(), and cscdqm::EventProcessor::getParHisto().
boost::function< bool (unsigned int&, unsigned int&) > cscdqm::Configuration::fnIsBookedCSC |
Definition at line 259 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct().
boost::function< bool (unsigned int&) > cscdqm::Configuration::fnIsBookedDDU |
Definition at line 260 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct().
boost::function< bool (unsigned int&) > cscdqm::Configuration::fnIsBookedFED |
Definition at line 261 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct().
boost::function< bool (unsigned int&, unsigned int&, unsigned int&) > cscdqm::Configuration::fnNextBookedCSC |
Definition at line 258 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Dispatcher::commonConstruct(), and cscdqm::EventProcessor::updateFractionHistos().
boost::function< void (const HistoDef& histoT, MonitorObject*&) > cscdqm::Configuration::fnPutHisto |
Definition at line 257 of file CSCDQM_Configuration.h.
Referenced by cscdqm::Collection::book(), cscdqm::Dispatcher::commonConstruct(), and CSCOfflineClient::endRun().
|
private |
Number of Fractional MO updates
Definition at line 698 of file CSCDQM_Configuration.h.
Referenced by printStats(), reset(), and updateFraTimer().
|
private |
Fractional MO update Timer
Definition at line 419 of file CSCDQM_Configuration.h.
Referenced by updateFraTimer().
|
private |
Fractional MO update time cummulative
Definition at line 428 of file CSCDQM_Configuration.h.
Referenced by printStats(), reset(), and updateFraTimer().
|
private |
Statistics collection and printing sectionGlobal Timer
Definition at line 413 of file CSCDQM_Configuration.h.
Referenced by printStats().
|
private |
Map of MO Filters
Definition at line 227 of file CSCDQM_Configuration.h.
Referenced by needBookMO().
|
private |
Global Counters.Number of events
Definition at line 683 of file CSCDQM_Configuration.h.
Referenced by getNEvents(), incNEvents(), printStats(), and reset().
|
private |
Number of bad events
Definition at line 686 of file CSCDQM_Configuration.h.
Referenced by getNEventsBad(), incNEventsBad(), printStats(), and reset().
|
private |
Number of events that have CSC data (used in Global DQM)
Definition at line 692 of file CSCDQM_Configuration.h.
Referenced by getNEventsCSC(), incNEventsCSC(), printStats(), and reset().
|
private |
Number of good events
Definition at line 689 of file CSCDQM_Configuration.h.
Referenced by getNEventsGood(), incNEventsGood(), printStats(), and reset().
|
private |
number of unpacked chambers
Definition at line 695 of file CSCDQM_Configuration.h.
Referenced by getNUnpackedCSC(), incNUnpackedCSC(), printStats(), and reset().
|
private |
Definition at line 224 of file CSCDQM_Configuration.h.
Referenced by Configuration(), and ~Configuration().