CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
13 class DQMStore;
14 class MonitorElement;
15 
17 public:
32  const std::string& title,
33  int nbins,
34  int lsPrescale,
35  bool sliding,
36  int mode = 0);
37 
38 
39  DTTimeEvolutionHisto(DQMStore *dbe, const std::string& name,
40  const std::string& title,
41  int nbins,
42  int firstLS,
43  int lsPrescale,
44  bool sliding,
45  int mode = 0);
46 
47 
48 
50  DTTimeEvolutionHisto(DQMStore *dbe, const std::string& name);
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 
67 private:
69  std::map<int,int> nEventsInLastTimeSlot;
70  std::map<int,int> nLumiTrInLastTimeSlot;
73  bool doSlide;
75  int theMode;
77 
78 };
79 #endif
80 
81 
82 /* Local Variables: */
83 /* show-trailing-whitespace: t */
84 /* truncate-lines: t */
85 /* End: */
void accumulateValueTimeSlot(float value)
std::map< int, int > nLumiTrInLastTimeSlot
DTTimeEvolutionHisto(DQMStore *dbe, const std::string &name, const std::string &title, int nbins, int lsPrescale, bool sliding, int mode=0)
void setTimeSlotValue(float value, int timeSlot)
std::map< int, int > nEventsInLastTimeSlot
virtual ~DTTimeEvolutionHisto()
Destructor.
void normalizeTo(const MonitorElement *histForNorm)
void updateTimeSlot(int ls, int nEventsInLS)