29 : castorDbServiceToken_{esConsumes<CastorDbService, CastorDbRecord>()} {
46 RecHitMon_ = std::make_unique<CastorRecHitMonitor>(ps);
49 LedMon_ = std::make_unique<CastorLEDMonitor>(ps);
58 LogPrint(
"CastorMonitorModule") <<
"dqmBeginRun(start)";
67 DigiMon_->bookHistograms(ibooker, iRun, iSetup);
73 LedMon_->bookHistograms(ibooker, iRun);
78 sprintf(s,
"CastorEventProducts");
88 sprintf(s,
"CASTORUnpackReport");
107 LogPrint(
"CastorMonitorModule") <<
"analyze (start)";
113 bool rechitOK_ =
true, towerOK_ =
true, jetsOK_ =
true;
114 int nDigi = 0, nrecHits = 0,
nTowers = 0, nJets = 0;
124 float fedsUnpacked = 0.;
130 const std::vector<int>
feds = (*report).getFedsUnpacked();
131 fedsUnpacked = float(feds.size());
143 nDigi = CastorDigi->size();
150 nrecHits = CastorHits->size();
157 nTowers = castorTowers->size();
164 nJets = jets->size();
169 LogPrint(
"CastorMonitorModule") <<
"CastorProductValid(size): RawDataValid=" << RawData.
isValid()
170 <<
" Digi=" << digiOK_ <<
"(" << nDigi <<
") Hits=" << rechitOK_ <<
"(" << nrecHits
172 <<
" Towers=" << towerOK_ <<
"(" <<
nTowers <<
")"
173 <<
" Jets=" << jetsOK_ <<
"(" << nJets <<
")";
184 DigiMon_->processEvent(iEvent, *CastorDigi, *TrigResults, conditions);
205 RecHitMon_->processEventTowers(*castorTowers);
210 LogPrint(
"CastorMonitorModule") <<
"processed " <<
ievt_ <<
" events";
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< edm::TriggerResults > tokenTriggerResults
std::unique_ptr< CastorLEDMonitor > LedMon_
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
MonitorElement * hunpkrep
edm::ESGetToken< CastorDbService, CastorDbRecord > castorDbServiceToken_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
bool getData(T &iHolder) const
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
CastorMonitorModule(const edm::ParameterSet &ps)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::unique_ptr< CastorDigiMonitor > DigiMon_
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
Log< level::Warning, true > LogPrint
std::string subsystemname_
T getParameter(std::string const &) const
void analyze(const edm::Event &iEvent, const edm::EventSetup &) override
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
MonitorElement * CastorEventProduct
void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override
void dqmEndRun(const edm::Run &run, const edm::EventSetup &) override
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
std::unique_ptr< CastorRecHitMonitor > RecHitMon_
UseScope< MonitorElementData::Scope::RUN > UseRunScope
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
~CastorMonitorModule() override
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)