CMS 3D CMS Logo

DTTimeEvolutionHisto.h
Go to the documentation of this file.
1 #ifndef DTTimeEvolutionHisto_H
2 #define DTTimeEvolutionHisto_H
3 
10 #include <string>
11 #include <map>
12 
14 
16 public:
33  const std::string& name,
34  const std::string& title,
35  int nbins,
36  int lsPrescale,
37  bool sliding,
38  int mode = 0);
39 
41  const std::string& name,
42  const std::string& title,
43  int nbins,
44  int firstLS,
45  int lsPrescale,
46  bool sliding,
47  int mode = 0);
48 
49  //FR changed the previous 2 argument constructor to the following one
51 
53  virtual ~DTTimeEvolutionHisto();
54 
55  // Operations
56 
57  void setTimeSlotValue(float value, int timeSlot);
58 
59  void accumulateValueTimeSlot(float value);
60 
61  void updateTimeSlot(int ls, int nEventsInLS);
62 
63  void normalizeTo(const MonitorElement* histForNorm);
64 
65 protected:
66 private:
68  std::map<int, int> nEventsInLastTimeSlot;
69  std::map<int, int> nLumiTrInLastTimeSlot;
72  bool doSlide;
74  int theMode;
76 };
77 #endif
78 
79 /* Local Variables: */
80 /* show-trailing-whitespace: t */
81 /* truncate-lines: t */
82 /* End: */
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
DTTimeEvolutionHisto::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: DTTimeEvolutionHisto.h:17
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
DTTimeEvolutionHisto::~DTTimeEvolutionHisto
virtual ~DTTimeEvolutionHisto()
Destructor.
Definition: DTTimeEvolutionHisto.cc:85
DTTimeEvolutionHisto::nBookedBins
int nBookedBins
Definition: DTTimeEvolutionHisto.h:73
DTTimeEvolutionHisto::updateTimeSlot
void updateTimeSlot(int ls, int nEventsInLS)
Definition: DTTimeEvolutionHisto.cc:108
dqm::legacy::DQMStore
Definition: DQMStore.h:727
DTTimeEvolutionHisto::valueLastTimeSlot
float valueLastTimeSlot
Definition: DTTimeEvolutionHisto.h:67
DTTimeEvolutionHisto::nEventsInLastTimeSlot
std::map< int, int > nEventsInLastTimeSlot
Definition: DTTimeEvolutionHisto.h:68
DTTimeEvolutionHisto::accumulateValueTimeSlot
void accumulateValueTimeSlot(float value)
Definition: DTTimeEvolutionHisto.cc:106
DTTimeEvolutionHisto::theLSPrescale
int theLSPrescale
Definition: DTTimeEvolutionHisto.h:71
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
DTTimeEvolutionHisto::doSlide
bool doSlide
Definition: DTTimeEvolutionHisto.h:72
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTTimeEvolutionHisto::theMode
int theMode
Definition: DTTimeEvolutionHisto.h:74
value
Definition: value.py:1
DTTimeEvolutionHisto::theFirstLS
int theFirstLS
Definition: DTTimeEvolutionHisto.h:70
DTTimeEvolutionHisto::nLumiTrInLastTimeSlot
std::map< int, int > nLumiTrInLastTimeSlot
Definition: DTTimeEvolutionHisto.h:69
DTTimeEvolutionHisto
Definition: DTTimeEvolutionHisto.h:15
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTTimeEvolutionHisto::DTTimeEvolutionHisto
DTTimeEvolutionHisto(DQMStore::IBooker &ibooker, const std::string &name, const std::string &title, int nbins, int lsPrescale, bool sliding, int mode=0)
DTTimeEvolutionHisto::normalizeTo
void normalizeTo(const MonitorElement *histForNorm)
Definition: DTTimeEvolutionHisto.cc:190
DTTimeEvolutionHisto::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: DTTimeEvolutionHisto.h:18
DTTimeEvolutionHisto::histo
MonitorElement * histo
Definition: DTTimeEvolutionHisto.h:75
DTTimeEvolutionHisto::setTimeSlotValue
void setTimeSlotValue(float value, int timeSlot)
Definition: DTTimeEvolutionHisto.cc:87