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 
12 #include <string>
13 #include <map>
14 
15 class DQMStore;
16 class MonitorElement;
17 
19 public:
33  DTTimeEvolutionHisto(DQMStore *dbe, const std::string& name,
34  const std::string& title,
35  int nbins,
36  int lsPrescale,
37  bool sliding,
38  int mode = 0);
39 
40 
41  DTTimeEvolutionHisto(DQMStore *dbe, 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 
50 
52  DTTimeEvolutionHisto(DQMStore *dbe, const std::string& name);
53 
55  virtual ~DTTimeEvolutionHisto();
56 
57  // Operations
58 
59  void setTimeSlotValue(float value, int timeSlot);
60 
61  void accumulateValueTimeSlot(float value);
62 
63  void updateTimeSlot(int ls, int nEventsInLS);
64 
65  void normalizeTo(const MonitorElement *histForNorm);
66 
67 protected:
68 
69 private:
71  std::map<int,int> nEventsInLastTimeSlot;
72  std::map<int,int> nLumiTrInLastTimeSlot;
75  bool doSlide;
77  int theMode;
79 
80 };
81 #endif
82 
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)