Locking object (wrapper) that holds a separate EventProcessor. This object can be used (theoretically) in separate thread. More...
#include <CSCDQM_Dispatcher.h>
Public Member Functions | |
EventProcessorMutex (Configuration *const p_config) | |
Constructor. | |
unsigned int | maskHWElements (std::vector< std::string > &tokens) |
Mask HW elements from the efficiency calculations. Can be applied on runtime! | |
void | processStandby (HWStandbyType &standby) |
Process standby information. | |
void | updateFractionAndEfficiencyHistos () |
Update Fraction and Efficiency histograms. | |
Private Attributes | |
Configuration * | config |
bool | fullStandbyProcessed |
HWStandbyType | lastStandby |
EventProcessor | processor |
Locking object (wrapper) that holds a separate EventProcessor. This object can be used (theoretically) in separate thread.
Definition at line 42 of file CSCDQM_Dispatcher.h.
cscdqm::EventProcessorMutex::EventProcessorMutex | ( | Configuration *const | p_config | ) | [inline] |
Constructor.
p_config | Pointer to Global Configuration |
Definition at line 64 of file CSCDQM_Dispatcher.h.
References config, and fullStandbyProcessed.
: processor(p_config) { config = p_config; fullStandbyProcessed = false; }
unsigned int cscdqm::EventProcessorMutex::maskHWElements | ( | std::vector< std::string > & | tokens | ) | [inline] |
Mask HW elements from the efficiency calculations. Can be applied on runtime!
tokens | String tokens of the HW elements |
Definition at line 90 of file CSCDQM_Dispatcher.h.
References cscdqm::EventProcessor::maskHWElements(), and processor.
Referenced by cscdqm::Dispatcher::maskHWElements().
void cscdqm::EventProcessorMutex::processStandby | ( | HWStandbyType & | standby | ) | [inline] |
Process standby information.
standby | Standby information |
Definition at line 99 of file CSCDQM_Dispatcher.h.
References config, fullStandbyProcessed, lastStandby, processor, cscdqm::EventProcessor::standbyEfficiencyHistos(), and cscdqm::EventProcessor::writeShifterHistograms().
Referenced by cscdqm::Dispatcher::processStandby().
{ if (lastStandby != standby) { processor.standbyEfficiencyHistos(standby); if (config->getIN_FULL_STANDBY()) { // Lets mark CSCs as BAD - have not ever ever been in !STANDBY if (!fullStandbyProcessed) { processor.standbyEfficiencyHistos(standby); processor.writeShifterHistograms(); fullStandbyProcessed = true; } } lastStandby = standby; } }
void cscdqm::EventProcessorMutex::updateFractionAndEfficiencyHistos | ( | ) | [inline] |
Update Fraction and Efficiency histograms.
Definition at line 73 of file CSCDQM_Dispatcher.h.
References config, CommonMethods::lock(), cscdqm::Lock::mutex, processor, cscdqm::EventProcessor::updateEfficiencyHistos(), cscdqm::Configuration::updateEffTimer(), cscdqm::EventProcessor::updateFractionHistos(), and cscdqm::Configuration::updateFraTimer().
Referenced by cscdqm::Dispatcher::updateFractionAndEfficiencyHistos().
Configuration* cscdqm::EventProcessorMutex::config [private] |
Global Configuration
Definition at line 50 of file CSCDQM_Dispatcher.h.
Referenced by EventProcessorMutex(), processStandby(), and updateFractionAndEfficiencyHistos().
bool cscdqm::EventProcessorMutex::fullStandbyProcessed [private] |
If full standby was already processed?
Definition at line 53 of file CSCDQM_Dispatcher.h.
Referenced by EventProcessorMutex(), and processStandby().
Last standby value. To be checked for HV changes
Definition at line 56 of file CSCDQM_Dispatcher.h.
Referenced by processStandby().
Local (wrapped) event processor
Definition at line 47 of file CSCDQM_Dispatcher.h.
Referenced by maskHWElements(), processStandby(), and updateFractionAndEfficiencyHistos().