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;
107 string histoName =
"AvgLumivsLumiSec";
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 beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
To reset the MEs.
virtual ~DTScalerInfoTask()
Destructor.
LuminosityBlockNumber_t luminosityBlock() const
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
void setCurrentFolder(const std::string &fullpath)
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
Perform trend plot operations.
std::map< std::string,DTTimeEvolutionHisto * > trendHistos
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * bookFloat(Args &&...args)
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Beginrun.
edm::ParameterSet theParams