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 namespace ecaldqm
7 {
8  /* class MESetTrend
9  time on xaxis
10  channel id is used to identify the plot
11  */
12 
13  class MESetTrend : public MESetEcal
14  {
15  public :
17  MESetTrend(MESetTrend const&);
19 
20  MESet& operator=(MESet const&) override;
21 
22  MESet* clone(std::string const& = "") const override;
23 
24  void book(DQMStore&) override;
25  void book(DQMStore::IBooker&) override;
26 
27  void fill(DetId const&, double, double = 1., double = 1.) override;
28  void fill(EcalElectronicsId const&, double, double = 1., double = 1.) override;
29  void fill(int, double, double = 1., double = 1.) override;
30  void fill(double, double = 1., double = 1.) override;
31 
32  int findBin(DetId const&, double, double = 0.) const override;
33  int findBin(EcalElectronicsId const&, double, double = 0.) const override;
34  int findBin(int, double, double = 0.) const override;
35  int findBin(double, double = 0.) const;
36 
37  bool isVariableBinning() const override { return true; }
38 
39  void setMinutely() { minutely_ = true; }
40  void setShiftAxis() { shiftAxis_ = true; }
41  void setCumulative();
42  bool isMinutely() const { return minutely_; }
43  bool canShiftAxis() const { return shiftAxis_; }
44  bool isCumulative() const { return currentBin_ > 0; }
45 
46  private:
47  template<class Bookable> void doBook_(Bookable&);
48  bool shift_(unsigned);
49 
50  bool minutely_; // if true, bins in minutes instead of lumis
51  bool shiftAxis_; // if true, shift x values
52  int currentBin_; // only used for cumulative case
53  };
54 }
55 
56 #endif
MESetTrend(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
Definition: MESetTrend.cc:7
MESet * clone(std::string const &="") const override
Definition: MESetTrend.cc:46
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
bool isCumulative() const
Definition: MESetTrend.h:44
void book(DQMStore &) override
Definition: MESetTrend.cc:56
bool isMinutely() const
Definition: MESetTrend.h:42
int findBin(DetId const &, double, double=0.) const override
Definition: MESetTrend.cc:115
bool shift_(unsigned)
Definition: MESetTrend.cc:205
void fill(DetId const &, double, double=1., double=1.) override
Definition: MESetTrend.cc:68
Definition: DetId.h:18
void doBook_(Bookable &)
Definition: MESetTrend.cc:167
MESet & operator=(MESet const &) override
Definition: MESetTrend.cc:33
bool isVariableBinning() const override
Definition: MESetTrend.h:37
bool canShiftAxis() const
Definition: MESetTrend.h:43