26 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
27 <<
"[DTScalerInfoTask]: Constructor"<<endl;
37 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
38 <<
"[DTScalerInfoTask]: analyzed " <<
nEvents <<
" events" << endl;
45 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
46 <<
"[DTScalerInfoTask]: BeginRun" << endl;
54 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
55 <<
"[DTScalerInfoTask]: Begin of LS transition" << endl;
61 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
62 <<
"[DTScalerInfoTask]: End of LS transition" << endl;
67 map<string,DTTimeEvolutionHisto* >::const_iterator histoIt =
trendHistos.begin();
68 map<string,DTTimeEvolutionHisto* >::const_iterator histoEnd =
trendHistos.end();
69 for(;histoIt!=histoEnd;++histoIt) {
70 histoIt->second->updateTimeSlot(block,
nEventsInLS);
84 if (lumiScalers->begin() != lumiScalers->end()) {
85 LumiScalersCollection::const_iterator lumiIt = lumiScalers->begin();
86 trendHistos[
"AvgLumivsLumiSec"]->accumulateValueTimeSlot(lumiIt->instantLumi());
89 LogVerbatim(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
90 <<
"[DTScalerInfoTask]: LumiScalersCollection size == 0" << endl;
94 LogVerbatim(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
95 <<
"[DTScalerInfoTask]: LumiScalersCollection getByToken call failed" << endl;
108 string histoTitle =
"Average Lumi vs LumiSec";
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * nEventMonitor
DTScalerInfoTask(const edm::ParameterSet &ps)
Constructor.
edm::EDGetTokenT< LumiScalersCollection > scalerToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.
virtual ~DTScalerInfoTask()
Destructor.
LuminosityBlockNumber_t luminosityBlock() const
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
Perform trend plot operations.
void setCurrentFolder(const std::string &fullpath)
std::map< std::string,DTTimeEvolutionHisto * > trendHistos
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
Beginrun.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * bookFloat(Args &&...args)
edm::ParameterSet theParams