CMS 3D CMS Logo

MESetDet2D.h
Go to the documentation of this file.
1 #ifndef MESetDet2D_H
2 #define MESetDet2D_H
3 
4 #include "MESetEcal.h"
5 
6 namespace ecaldqm {
7  /* class MESetDet2D
8  channel ID-based MonitorElement wrapper
9  channel id <-> 2D cell
10 */
11  class MESetDet2D : public MESetEcal {
12  public:
13  MESetDet2D(std::string const &,
17  binning::AxisSpecs const * = nullptr);
18  MESetDet2D(MESetDet2D const &);
19  ~MESetDet2D() override;
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 = 0., double = 0.) override;
26  void fill(EcalElectronicsId const &, double = 1., double = 0., double = 0.) override;
27  void fill(int, double = 1., double = 1., double = 1.) override;
28 
30  void setBinContent(DetId const &, double) override;
31  void setBinContent(EcalElectronicsId const &, double) override;
32  void setBinContent(int, double) override;
33 
35  void setBinError(DetId const &, double) override;
36  void setBinError(EcalElectronicsId const &, double) override;
37  void setBinError(int, double) override;
38 
40  void setBinEntries(DetId const &, double) override;
41  void setBinEntries(EcalElectronicsId const &, double) override;
42  void setBinEntries(int, double) override;
43 
45  double getBinContent(DetId const &, int = 0) const override;
46  double getBinContent(EcalElectronicsId const &, int = 0) const override;
47  double getBinContent(int, int = 0) const override;
48 
50  double getBinError(DetId const &, int = 0) const override;
51  double getBinError(EcalElectronicsId const &, int = 0) const override;
52  double getBinError(int, int = 0) const override;
53 
55  double getBinEntries(DetId const &, int = 0) const override;
56  double getBinEntries(EcalElectronicsId const &, int = 0) const override;
57  double getBinEntries(int, int) const override;
58 
59  using MESetEcal::findBin;
60  int findBin(DetId const &) const;
61  int findBin(EcalElectronicsId const &) const;
62 
63  void reset(double = 0., double = 0., double = 0.) override;
64 
65  void softReset() override;
66 
67  protected:
68  void fill_(unsigned, int, double) override;
69  void fill_(unsigned, int, double, double) override;
70  void fill_(unsigned, double, double, double) override;
71  };
72 } // namespace ecaldqm
73 
74 #endif
double getBinError(DetId const &, int) const override
Definition: MESetEcal.cc:472
double getBinContent(DetId const &, int) const override
Definition: MESetEcal.cc:442
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
~MESetDet2D() override
Definition: MESetDet2D.cc:23
void reset(double=0., double=0., double=0.) override
Definition: MESetDet2D.cc:495
void setBinContent(DetId const &, double) override
Definition: MESetDet2D.cc:150
void setBinError(DetId const &, double) override
Definition: MESetDet2D.cc:200
void book(DQMStore::IBooker &) override
Definition: MESetDet2D.cc:34
MESet * clone(std::string const &="") const override
Definition: MESetDet2D.cc:25
void fill(DetId const &, double=1., double=0., double=0.) override
Definition: MESetDet2D.cc:78
void setBinEntries(DetId const &, int, double) override
Definition: MESetEcal.cc:406
double getBinContent(DetId const &, int=0) const override
Definition: MESetDet2D.cc:304
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:527
double getBinError(DetId const &, int=0) const override
Definition: MESetDet2D.cc:353
double getBinEntries(DetId const &, int) const override
Definition: MESetEcal.cc:502
Definition: DetId.h:18
virtual int findBin(DetId const &, double, double=0.) const
Definition: MESetEcal.cc:538
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:402
void softReset() override
Definition: MESetDet2D.cc:521
void setBinContent(DetId const &, int, double) override
Definition: MESetEcal.cc:346
int findBin(DetId const &) const
Definition: MESetDet2D.cc:467
void setBinEntries(DetId const &, double) override
Definition: MESetDet2D.cc:250
void setBinError(DetId const &, int, double) override
Definition: MESetEcal.cc:376
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
Definition: MESetDet2D.cc:6