24 nBookedBins =
histo->getNbinsX();
35 : valueLastTimeSlot(0), theFirstLS(firstLS), theLSPrescale(lsPrescale), doSlide(
sliding), theMode(
mode) {
42 LogWarning(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
43 <<
"[DTTimeEvolutionHisto]***Error: wrong configuration" << endl;
45 stringstream realTitle;
46 realTitle <<
title <<
"/" << theLSPrescale <<
" LS";
54 histo->setBinLabel(1,
"avg. previous", 1);
58 for (
int bin = 1;
bin != nBookedBins + 1; ++
bin) {
60 if (theLSPrescale > 1) {
61 label <<
"LS " << ((
bin - 1) * theLSPrescale) + theFirstLS <<
"-" <<
bin * theLSPrescale + theFirstLS;
63 label <<
"LS " << ((
bin - 1) * theLSPrescale) + theFirstLS;
65 if (
bin % (2 * (
int)theLSPrescale) == 0)
75 : valueLastTimeSlot(0),
80 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
81 <<
"[DTTimeEvolutionHisto] Retrieve ME with name: " 130 for (; nEventsIt != nEventsEnd; ++nEventsIt)
133 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
151 for (; nLumiTrIt != nLumiTrEnd; ++nLumiTrIt)
152 nLumiTr += nLumiTrIt->second;
157 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
161 stringstream binLabel;
162 binLabel <<
"LS " << firstLSinTimeSlot;
164 binLabel <<
"-" << lastLSinTimeSlot;
190 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
191 <<
"[DTTimeEvolutionHisto] Update time-slot: " << binN <<
" with value: " <<
value << endl;
197 if (
histo ==
nullptr) {
198 LogWarning(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
199 <<
"[DTTimeEvolutionHisto]***Error: pointer to ME is NULL" << endl;
204 LogWarning(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
205 <<
"[DTTimeEvolutionHisto]***Error: normalizing histos with != # of bins" << endl;
211 LogVerbatim(
"DTDQM|DTMonitorModule|DTMonitorClient|DTTimeEvolutionHisto")
Log< level::Info, true > LogVerbatim
void accumulateValueTimeSlot(float value)
std::map< int, int > nLumiTrInLastTimeSlot
DTTimeEvolutionHisto(DQMStore::IBooker &ibooker, const std::string &name, const std::string &title, int nbins, int lsPrescale, bool sliding, int mode=0)
sliding
Saturation value (in GeV) of the TPG before the compressed-LUT (rem: with 35.84 the TPG_LSB = crystal...
void setTimeSlotValue(float value, int timeSlot)
virtual ~DTTimeEvolutionHisto()
Destructor.
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)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
virtual TH1F * getTH1F() const
void normalizeTo(const MonitorElement *histForNorm)
void updateTimeSlot(int ls, int nEventsInLS)
std::map< int, int > nEventsInLastTimeSlot
virtual int getNbinsX() const
get # of bins in X-axis
virtual double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
virtual void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
Log< level::Warning, false > LogWarning
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
virtual double getBinContent(int binx) const
get content of bin (1-D)