CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MESetTrend.h
Go to the documentation of this file.
1 #ifndef MESetTrend_H
2 #define MESetTrend_H
3 
4 #include "MESetEcal.h"
5 
6 // correct way is to have MESetDet which inherits from MESetEcal and implements fill functions
7 // this way MESetEcal can focus only on generateNames etc. (object properties)
8 
9 namespace ecaldqm
10 {
11  class MESetTrend : public MESetEcal
12  {
13  public :
14  MESetTrend(std::string const&, MEData const&, bool _readOnly = false);
15  ~MESetTrend();
16 
17  void book();
18 
19  void fill(DetId const&, double, double _wy = 1., double _w = 1.);
20  void fill(unsigned, double, double _wy = 1., double _w = 1.);
21  void fill(double, double _wy = 1., double _w = 1.);
22 
23  void setBinContent(DetId const&, double, double _err = 0.) {}
24  void setBinContent(unsigned, double, double _err = 0.) {}
25 
26  void setBinEntries(DetId const&, double) {}
27  void setBinEntries(unsigned, double) {}
28 
29  double getBinContent(DetId const&, int _bin = 0) const { return 0.; }
30  double getBinContent(unsigned, int _bin = 0) const { return 0.; }
31 
32  double getBinError(DetId const&, int _bin = 0) const { return 0.; }
33  double getBinError(unsigned, int _bin = 0) const { return 0.; }
34 
35  double getBinEntries(DetId const&, int _bin = 0) const { return 0.; }
36  double getBinEntries(unsigned, int _bin = 0) const { return 0.; }
37 
38  void setTimeZero(time_t _t0) { t0_ = _t0; }
39  time_t getTimeZero() const { return t0_; }
40  void setMinutely(bool _minutely) { minutely_ = _minutely; }
41  bool getMinutely() const { return minutely_; }
42 
43  private:
44  bool shift_(time_t);
45 
46  time_t t0_;
47  bool minutely_;
48 
49  time_t tLow_;
50  };
51 }
52 
53 #endif
time_t getTimeZero() const
Definition: MESetTrend.h:39
void fill(DetId const &, double, double _wy=1., double _w=1.)
Definition: MESetTrend.cc:51
double getBinContent(DetId const &, int _bin=0) const
Definition: MESetTrend.h:29
void setBinEntries(unsigned, double)
Definition: MESetTrend.h:27
void setTimeZero(time_t _t0)
Definition: MESetTrend.h:38
double getBinError(unsigned, int _bin=0) const
Definition: MESetTrend.h:33
bool getMinutely() const
Definition: MESetTrend.h:41
MESetTrend(std::string const &, MEData const &, bool _readOnly=false)
Definition: MESetTrend.cc:7
void setBinContent(DetId const &, double, double _err=0.)
Definition: MESetTrend.h:23
void setBinEntries(DetId const &, double)
Definition: MESetTrend.h:26
void setBinContent(unsigned, double, double _err=0.)
Definition: MESetTrend.h:24
double getBinEntries(DetId const &, int _bin=0) const
Definition: MESetTrend.h:35
Definition: DetId.h:20
void setMinutely(bool _minutely)
Definition: MESetTrend.h:40
double getBinContent(unsigned, int _bin=0) const
Definition: MESetTrend.h:30
double getBinEntries(unsigned, int _bin=0) const
Definition: MESetTrend.h:36
bool shift_(time_t)
Definition: MESetTrend.cc:84
double getBinError(DetId const &, int _bin=0) const
Definition: MESetTrend.h:32