CSCDQM Framework frontend and Histogram Cache controller. More...
#include <CSCDQM_Dispatcher.h>
Public Member Functions | |
void | book () |
Dispatcher (Configuration *const p_config, MonitorObjectProvider *const p_provider) | |
Constructor. More... | |
const bool | getHisto (const HistoDef &histoD, MonitorObject *&me) |
Global get MO function. If request has reached this function it means that histo is not in cache! More... | |
void | init () |
Initialize Dispatcher: book histograms, init processor, etc. More... | |
unsigned int | maskHWElements (std::vector< std::string > &tokens) |
Mask HW elements from the efficiency calculations. Can be applied on runtime! More... | |
void | processStandby (HWStandbyType &standby) |
Set HW Standby modes. More... | |
void | updateFractionAndEfficiencyHistos () |
On demand update fraction and efficiency MOs. More... | |
~Dispatcher () | |
Destructor. Joins and waits to complete all threads. More... | |
Private Member Functions | |
void | commonConstruct (Configuration *const p_config, MonitorObjectProvider *const p_provider) |
void | updateFractionAndEfficiencyHistosAuto () |
Automatically called fraction and efficiency MOs update function. More... | |
Private Attributes | |
Cache | cache |
Collection | collection |
Configuration * | config |
EventProcessor | processor |
EventProcessorMutex | processorFract |
MonitorObjectProvider * | provider |
CSCDQM Framework frontend and Histogram Cache controller.
Definition at line 122 of file CSCDQM_Dispatcher.h.
cscdqm::Dispatcher::Dispatcher | ( | Configuration *const | p_config, |
MonitorObjectProvider *const | p_provider | ||
) |
Constructor.
p_config | Pointer to Global Configuration |
p_provider | Pointer to MonitorObjectProvider |
Definition at line 29 of file CSCDQM_Dispatcher.cc.
|
inline |
Destructor. Joins and waits to complete all threads.
Definition at line 136 of file CSCDQM_Dispatcher.h.
void cscdqm::Dispatcher::book | ( | ) |
For the first FED - book general
For the first DDU - book general
For the first and specific CSCs - book general and specific
No DMB in slot 6
For the Parameters - book parameter histograms
Definition at line 91 of file CSCDQM_Dispatcher.cc.
Referenced by CSCOfflineClient::dqmEndJob().
|
private |
Save pointers to class properties
Link/share Cache methods to function pointers in configuration
Link/share local functions
Link/share getCSCDetId function
Link/share booking function
Definition at line 52 of file CSCDQM_Dispatcher.cc.
const bool cscdqm::Dispatcher::getHisto | ( | const HistoDef & | histoD, |
MonitorObject *& | me | ||
) |
Global get MO function. If request has reached this function it means that histo is not in cache!
histoD | Histogram Definition to get |
me | MO to return |
For the first FED - book general
For the first DDU - book general
For the first and specific CSCs - book general and specific
For the Parameters - book parameter histogram
If not found after booking - mark it as not existent
Definition at line 190 of file CSCDQM_Dispatcher.cc.
void cscdqm::Dispatcher::init | ( | void | ) |
Initialize Dispatcher: book histograms, init processor, etc.
Definition at line 85 of file CSCDQM_Dispatcher.cc.
Referenced by CSCOfflineClient::CSCOfflineClient().
unsigned int cscdqm::Dispatcher::maskHWElements | ( | std::vector< std::string > & | tokens | ) |
Mask HW elements from the efficiency calculations. Can be applied on runtime!
tokens | String tokens of the HW elements |
Definition at line 180 of file CSCDQM_Dispatcher.cc.
Referenced by CSCOfflineClient::dqmEndJob().
void cscdqm::Dispatcher::processStandby | ( | HWStandbyType & | standby | ) |
void cscdqm::Dispatcher::updateFractionAndEfficiencyHistos | ( | ) |
On demand update fraction and efficiency MOs.
Definition at line 246 of file CSCDQM_Dispatcher.cc.
Referenced by CSCOfflineClient::dqmEndJob().
|
private |
Automatically called fraction and efficiency MOs update function.
Definition at line 234 of file CSCDQM_Dispatcher.cc.
|
private |
MO Cache object
Definition at line 169 of file CSCDQM_Dispatcher.h.
|
private |
MO Collection object
Definition at line 163 of file CSCDQM_Dispatcher.h.
|
private |
Pointer to Global Configuration
Definition at line 157 of file CSCDQM_Dispatcher.h.
|
private |
Event Processor object
Definition at line 166 of file CSCDQM_Dispatcher.h.
|
private |
Lockable Fractional and Efficiency MO update object
Definition at line 172 of file CSCDQM_Dispatcher.h.
|
private |
Pointer to MO provider
Definition at line 160 of file CSCDQM_Dispatcher.h.