CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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: */
void accumulateValueTimeSlot(float value)
std::map< int, int > nLumiTrInLastTimeSlot
def ls
Definition: eostools.py:349
DTTimeEvolutionHisto(DQMStore::IBooker &ibooker, const std::string &name, const std::string &title, int nbins, int lsPrescale, bool sliding, int mode=0)
void setTimeSlotValue(float value, int timeSlot)
virtual ~DTTimeEvolutionHisto()
Destructor.
dqm::legacy::DQMStore DQMStore
void normalizeTo(const MonitorElement *histForNorm)
void updateTimeSlot(int ls, int nEventsInLS)
std::map< int, int > nEventsInLastTimeSlot
dqm::legacy::MonitorElement MonitorElement
tuple sliding
Saturation value (in GeV) of the TPG before the compressed-LUT (rem: with 35.84 the TPG_LSB = crystal...