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::IBooker&) override;
25 
26  void fill(DetId const&, double, double = 1., double = 1.) override;
27  void fill(EcalElectronicsId const&, double, double = 1., double = 1.) override;
28  void fill(int, double, double = 1., double = 1.) override;
29  void fill(double, double = 1., double = 1.) override;
30 
31  int findBin(DetId const&, double, double = 0.) const override;
32  int findBin(EcalElectronicsId const&, double, double = 0.) const override;
33  int findBin(int, double, double = 0.) const override;
34  int findBin(double, double = 0.) const;
35 
36  bool isVariableBinning() const override { return true; }
37 
38  void setMinutely() { minutely_ = true; }
39  void setShiftAxis() { shiftAxis_ = true; }
40  void setCumulative();
41  bool isMinutely() const { return minutely_; }
42  bool canShiftAxis() const { return shiftAxis_; }
43  bool isCumulative() const { return currentBin_ > 0; }
44 
45  private:
46  bool shift_(unsigned);
47 
48  bool minutely_; // if true, bins in minutes instead of lumis
49  bool shiftAxis_; // if true, shift x values
50  int currentBin_; // only used for cumulative case
51  };
52 }
53 
54 #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:43
bool isMinutely() const
Definition: MESetTrend.h:41
int findBin(DetId const &, double, double=0.) const override
Definition: MESetTrend.cc:141
bool shift_(unsigned)
Definition: MESetTrend.cc:192
void fill(DetId const &, double, double=1., double=1.) override
Definition: MESetTrend.cc:94
Definition: DetId.h:18
void book(DQMStore::IBooker &) override
Definition: MESetTrend.cc:56
MESet & operator=(MESet const &) override
Definition: MESetTrend.cc:33
bool isVariableBinning() const override
Definition: MESetTrend.h:36
bool canShiftAxis() const
Definition: MESetTrend.h:42