CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MESetDet1D.h
Go to the documentation of this file.
1 #ifndef MESetDet1D_H
2 #define MESetDet1D_H
3 
4 #include "MESetEcal.h"
5 
6 namespace ecaldqm
7 {
8  /*
9  class MESetDet1D
10  channel ID-based MonitorElement wrapper
11  channel id <-> x axis bin
12  */
13 
14  class MESetDet1D : public MESetEcal
15  {
16  public :
18  MESetDet1D(MESetDet1D const&);
19  ~MESetDet1D();
20 
21  MESet* clone(std::string const& = "") const override;
22 
23  void book(DQMStore::IBooker&) override;
24 
25  void fill(DetId const&, double = 1., double = 1., double = 0.) override;
26  void fill(EcalElectronicsId const&, double = 1., double = 1., double = 0.) override;
27  void fill(int, double = 1., double = 1., double = 0.) override;
28 
29  void setBinContent(DetId const&, double) override;
30  void setBinContent(EcalElectronicsId const&, double) override;
31  void setBinContent(int, double) override;
32  void setBinContent(DetId const&, int, double) override;
33  void setBinContent(EcalElectronicsId const&, int, double) override;
34  void setBinContent(int, int, double) override;
35 
36  void setBinError(DetId const&, double) override;
37  void setBinError(EcalElectronicsId const&, double) override;
38  void setBinError(int, double) override;
39  void setBinError(DetId const&, int, double) override;
40  void setBinError(EcalElectronicsId const&, int, double) override;
41  void setBinError(int, int, double) override;
42 
43  void setBinEntries(DetId const&, double) override;
44  void setBinEntries(EcalElectronicsId const&, double) override;
45  void setBinEntries(int, double) override;
46  void setBinEntries(DetId const&, int, double) override;
47  void setBinEntries(EcalElectronicsId const&, int, double) override;
48  void setBinEntries(int, int, double) override;
49 
50  double getBinContent(DetId const&, int = 0) const override;
51  double getBinContent(EcalElectronicsId const&, int = 0) const override;
52  double getBinContent(int, int = 0) const override;
53 
54  double getBinError(DetId const&, int = 0) const override;
55  double getBinError(EcalElectronicsId const&, int = 0) const override;
56  double getBinError(int, int = 0) const override;
57 
58  double getBinEntries(DetId const&, int = 0) const override;
59  double getBinEntries(EcalElectronicsId const&, int = 0) const override;
60  double getBinEntries(int, int = 0) const override;
61 
62  int findBin(DetId const&) const;
63  int findBin(EcalElectronicsId const&) const;
64  int findBin(int) const;
65  int findBin(DetId const&, double, double = 0.) const override;
66  int findBin(EcalElectronicsId const&, double, double = 0.) const override;
67  int findBin(int, double, double = 0.) const override;
68 
69  void reset(double = 0., double = 0., double = 0.) override;
70  };
71 }
72 
73 #endif
void reset(double=0., double=0., double=0.) override
Definition: MESetDet1D.cc:758
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet1D.cc:614
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
int findBin(DetId const &) const
Definition: MESetDet1D.cc:668
double getBinError(DetId const &, int=0) const override
Definition: MESetDet1D.cc:563
void setBinContent(DetId const &, double) override
Definition: MESetDet1D.cc:161
void setBinError(DetId const &, double) override
Definition: MESetDet1D.cc:275
MESet * clone(std::string const &="") const override
Definition: MESetDet1D.cc:32
double getBinContent(DetId const &, int=0) const override
Definition: MESetDet1D.cc:512
MESetDet1D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
Definition: MESetDet1D.cc:8
Definition: DetId.h:18
void book(DQMStore::IBooker &) override
Definition: MESetDet1D.cc:42
void fill(DetId const &, double=1., double=1., double=0.) override
Definition: MESetDet1D.cc:110
void setBinEntries(DetId const &, double) override
Definition: MESetDet1D.cc:389