Common CSC DQM Module that uses CSCDQM Framework. More...
#include <CSCMonitorModule.h>
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) |
Begin the run. More... | |
void | beginJob () |
void | beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) |
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
Book Histograms in the beginRun. More... | |
void | endJob () |
void | endRun (const edm::Run &r, const edm::EventSetup &c) |
void | setup () |
Protected Member Functions inherited from edm::stream::EDAnalyzerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Private Attributes | |
cscdqm::Configuration | config |
cscdqm::Dispatcher * | dispatcher |
DQMStore::IBooker * | ibooker |
edm::InputTag | inputTag |
std::vector< std::string > | maskedHW |
const CSCCrateMap * | pcrate |
bool | prebookEffParams |
bool | processDcsScalers |
Common CSC DQM Module that uses CSCDQM Framework.
Definition at line 77 of file CSCMonitorModule.h.
CSCMonitorModule::CSCMonitorModule | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Global stuff
ps | Parameters. |
Definition at line 25 of file CSCMonitorModule.cc.
References config, edm::EDConsumerBase::consumesCollector(), dispatcher, edm::ParameterSet::exists(), edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), cscdqm::Dispatcher::init(), INPUT_TAG_LABEL, inputTag, maskedHW, prebookEffParams, and processDcsScalers.
|
virtual |
|
protectedvirtual |
Begin the run.
Implements edm::stream::EDAnalyzerBase.
Definition at line 88 of file CSCMonitorModule.cc.
References cscdqm::HWStandbyType::applyMeM(), cscdqm::HWStandbyType::applyMeP(), DcsStatus::CSCm, DcsStatus::CSCp, dispatcher, edm::EventSetup::get(), edm::Event::getByToken(), inputTag, pcrate, cscdqm::HWStandbyType::process, processDcsScalers, and edm::ESHandle< class >::product().
|
inlineprotected |
|
inlineprotectedvirtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 134 of file CSCMonitorModule.h.
|
overrideprotectedvirtual |
Book Histograms in the beginRun.
ib | - DQMStore::IBooker interface access object |
edm::Run | const & - not used |
edm::EventSetup | const & - not used |
Store pointer to IBooker to use it in ::bookMonitorObject() callback function used by the Dispatcher::book() method
Call Dispatcher histogram booking method to pre-boook all available histograms before processing data. New PREBOOK_ALL_HISTOS config option should be set to true (default). That should disable original CSC on-the-fly histo booking during data processing. Changed for multi-threaded framework compatibility. (pre-booking of all histos is not most efficient way for CSCi DQM).
Implements DQMEDAnalyzer.
Definition at line 125 of file CSCMonitorModule.cc.
References cscdqm::Dispatcher::book(), dispatcher, cuy::ib, ibooker, maskedHW, cscdqm::Dispatcher::maskHWElements(), prebookEffParams, and cscdqm::Dispatcher::updateFractionAndEfficiencyHistos().
|
virtual |
Book Monitor Object on Request.
req | Request. |
Implements cscdqm::MonitorObjectProvider.
Definition at line 154 of file CSCMonitorModule.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::book3D(), DQMStore::IBooker::bookFloat(), DQMStore::IBooker::bookInt(), DQMStore::IBooker::bookProfile(), DQMStore::IBooker::bookProfile2D(), DQMStore::IBooker::bookString(), DQMStore::IBooker::cd(), cscdqm::HistoBookRequest::default_float, cscdqm::HistoBookRequest::default_int, cscdqm::HistoBookRequest::default_string, DIR_CRTINFO, DIR_DAQINFO, DIR_DCSINFO, DIR_EVENTINFO, cscdqm::h::EMU_CSC_STATS_SUMMARY, cscdqm::MonitorObject::Fill(), cscdqm::FLOAT, cscdqm::HistoBookRequest::folder, cscdqm::HistoDef::getId(), cscdqm::HistoDef::getName(), cscdqm::HistoDef::getPath(), cscdqm::H1D, cscdqm::H2D, cscdqm::H3D, cscdqm::HistoBookRequest::hdef, cscdqm::HistoBookRequest::highX, cscdqm::HistoBookRequest::highY, cscdqm::HistoBookRequest::highZ, cscdqm::HistoBookRequest::htype, ibooker, cscdqm::INT, cscdqm::h::keys, cscdqm::HistoBookRequest::lowX, cscdqm::HistoBookRequest::lowY, cscdqm::HistoBookRequest::lowZ, mergeVDriftHistosByStation::name, cscdqm::HistoBookRequest::nchX, cscdqm::HistoBookRequest::nchY, cscdqm::HistoBookRequest::nchZ, NULL, cscdqm::HistoBookRequest::option, cscdqm::h::PAR_CRT_SUMMARY, cscdqm::h::PAR_DAQ_SUMMARY, cscdqm::h::PAR_DCS_SUMMARY, cscdqm::h::PAR_REPORT_SUMMARY, cmsHarvester::path, cscdqm::PROFILE, cscdqm::PROFILE2D, cscdqm::Utility::regexMatch(), DQMStore::IBooker::setCurrentFolder(), cscdqm::STRING, AlCaHLTBitMon_QueryRunRegistry::string, and cscdqm::HistoBookRequest::title.
|
inlineprotected |
Definition at line 136 of file CSCMonitorModule.h.
|
inlineprotectedvirtual |
Reimplemented from edm::stream::EDAnalyzerBase.
Definition at line 135 of file CSCMonitorModule.h.
|
inlinevirtual |
MonitorObjectProvider Implementation
Implements cscdqm::MonitorObjectProvider.
Definition at line 113 of file CSCMonitorModule.h.
References CSCCrateMap::detId(), MAX_CRATE_ID, MAX_DMB_SLOT, pcrate, and DetId::rawId().
|
inlineprotected |
Definition at line 132 of file CSCMonitorModule.h.
|
private |
Definition at line 90 of file CSCMonitorModule.h.
Referenced by CSCMonitorModule().
|
private |
Definition at line 91 of file CSCMonitorModule.h.
Referenced by analyze(), bookHistograms(), CSCMonitorModule(), and ~CSCMonitorModule().
|
private |
Definition at line 93 of file CSCMonitorModule.h.
Referenced by bookHistograms(), and bookMonitorObject().
|
private |
Definition at line 94 of file CSCMonitorModule.h.
Referenced by analyze(), and CSCMonitorModule().
|
private |
Definition at line 101 of file CSCMonitorModule.h.
Referenced by bookHistograms(), and CSCMonitorModule().
|
private |
Pointer to crate mapping from database
Definition at line 99 of file CSCMonitorModule.h.
Referenced by analyze(), and getCSCDetId().
|
private |
Definition at line 95 of file CSCMonitorModule.h.
Referenced by bookHistograms(), and CSCMonitorModule().
|
private |
Definition at line 96 of file CSCMonitorModule.h.
Referenced by analyze(), and CSCMonitorModule().