test
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 
14 
15 class DQMStore;
16 class MonitorElement;
17 
19 public:
34  const std::string& title,
35  int nbins,
36  int lsPrescale,
37  bool sliding,
38  int mode = 0);
39 
40 
42  const std::string& title,
43  int nbins,
44  int firstLS,
45  int lsPrescale,
46  bool sliding,
47  int mode = 0);
48 
49 
50  //FR changed the previous 2 argument constructor to the following one
52 
54  virtual ~DTTimeEvolutionHisto();
55 
56  // Operations
57 
58  void setTimeSlotValue(float value, int timeSlot);
59 
60  void accumulateValueTimeSlot(float value);
61 
62  void updateTimeSlot(int ls, int nEventsInLS);
63 
64  void normalizeTo(const MonitorElement *histForNorm);
65 
66 protected:
67 
68 private:
70  std::map<int,int> nEventsInLastTimeSlot;
71  std::map<int,int> nLumiTrInLastTimeSlot;
74  bool doSlide;
76  int theMode;
78 
79 };
80 #endif
81 
82 
83 /* Local Variables: */
84 /* show-trailing-whitespace: t */
85 /* truncate-lines: t */
86 /* End: */
void accumulateValueTimeSlot(float value)
std::map< int, int > nLumiTrInLastTimeSlot
def ls
Definition: eostools.py:348
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)
std::map< int, int > nEventsInLastTimeSlot
virtual ~DTTimeEvolutionHisto()
Destructor.
void normalizeTo(const MonitorElement *histForNorm)
void updateTimeSlot(int ls, int nEventsInLS)