24 nBookedBins =
histo->getNbinsX();
35 : valueLastTimeSlot(0), theFirstLS(firstLS), theLSPrescale(lsPrescale), doSlide(sliding), theMode(
mode) {
40 if (!sliding && theMode == 0)
41 LogWarning(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
42 <<
"[DTTimeEvolutionHisto]***Error: wrong configuration" << endl;
44 stringstream realTitle;
45 realTitle <<
title <<
"/" << theLSPrescale <<
" LS";
49 histo = ibooker.book1D(
name, realTitle.str(), nBookedBins, (
float)theFirstLS, nBookedBins + 1.);
53 histo->setBinLabel(1,
"avg. previous", 1);
57 for (
int bin = 1;
bin != nBookedBins + 1; ++
bin) {
59 if (theLSPrescale > 1) {
60 label <<
"LS " << ((
bin - 1) * theLSPrescale) + theFirstLS <<
"-" <<
bin * theLSPrescale + theFirstLS;
62 label <<
"LS " << ((
bin - 1) * theLSPrescale) + theFirstLS;
64 if (
bin % (2 * (
int)theLSPrescale) == 0)
74 : valueLastTimeSlot(0),
79 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
80 <<
"[DTTimeEvolutionHisto] Retrieve ME with name: "
128 for (; nEventsIt != nEventsEnd; ++nEventsIt)
131 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
149 for (; nLumiTrIt != nLumiTrEnd; ++nLumiTrIt)
150 nLumiTr += nLumiTrIt->second;
155 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
159 stringstream binLabel;
160 binLabel <<
"LS " << firstLSinTimeSlot;
162 binLabel <<
"-" << lastLSinTimeSlot;
184 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
185 <<
"[DTTimeEvolutionHisto] Update time-slot: " << binN <<
" with value: " <<
value << endl;
191 if (
histo ==
nullptr) {
192 LogWarning(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
193 <<
"[DTTimeEvolutionHisto]***Error: pointer to ME is NULL" << endl;
198 LogWarning(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
199 <<
"[DTTimeEvolutionHisto]***Error: normalizing histos with != # of bins" << endl;
205 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")