26 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
27 <<
"[DTScalerInfoTask]: Constructor"<<endl;
39 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
40 <<
"[DTScalerInfoTask]: analyzed " <<
nEvents <<
" events" << endl;
47 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
48 <<
"[DTScalerInfoTask]: BeginJob" << endl;
55 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
56 <<
"[DTScalerInfoTask]: BeginRun" << endl;
67 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
68 <<
"[DTScalerInfoTask]: Begin of LS transition" << endl;
74 LogTrace(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
75 <<
"[DTScalerInfoTask]: End of LS transition" << endl;
80 map<string,DTTimeEvolutionHisto* >::const_iterator histoIt =
trendHistos.begin();
81 map<string,DTTimeEvolutionHisto* >::const_iterator histoEnd =
trendHistos.end();
82 for(;histoIt!=histoEnd;++histoIt) {
83 histoIt->second->updateTimeSlot(block,
nEventsInLS);
91 LogVerbatim(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
92 <<
"[DTScalerInfoTask]: analyzed " <<
nEvents <<
" events" << endl;
106 if (lumiScalers->begin() != lumiScalers->end()) {
107 LumiScalersCollection::const_iterator lumiIt = lumiScalers->begin();
108 trendHistos[
"AvgLumivsLumiSec"]->accumulateValueTimeSlot(lumiIt->instantLumi());
111 LogVerbatim(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
112 <<
"[DTScalerInfoTask]: LumiScalersCollection size == 0" << endl;
116 LogVerbatim(
"DTDQM|DTMonitorModule|DTScalerInfoTask")
117 <<
"[DTScalerInfoTask]: LumiScalersCollection getByToken call failed" << endl;
130 string histoName =
"AvgLumivsLumiSec";
131 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.
MonitorElement * bookFloat(const char *name)
Book float.
virtual ~DTScalerInfoTask()
Destructor.
LuminosityBlockNumber_t luminosityBlock() const
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
Perform trend plot operations.
void beginRun(const edm::Run &, const edm::EventSetup &)
Beginrun.
void bookHistos()
Book the histograms.
std::map< std::string,DTTimeEvolutionHisto * > trendHistos
void setCurrentFolder(const std::string &fullpath)
edm::ParameterSet theParams