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 {
8  /* class MESetDet2D
9  channel ID-based MonitorElement wrapper
10  channel id <-> 2D cell
11  */
12  class MESetDet2D : public MESetEcal
13  {
14  public :
16  MESetDet2D(MESetDet2D const&);
17  ~MESetDet2D() override;
18 
19  MESet* clone(std::string const& = "") const override;
20 
21  void book(DQMStore::IBooker&) override;
22 
23  void fill(DetId const&, double = 1., double = 0., double = 0.) override;
24  void fill(EcalElectronicsId const&, double = 1., double = 0., double = 0.) override;
25  void fill(int, double = 1., double = 1., double = 1.) override;
26 
28  void setBinContent(DetId const&, double) override;
29  void setBinContent(EcalElectronicsId const&, double) override;
30  void setBinContent(int, double) override;
31 
33  void setBinError(DetId const&, double) override;
34  void setBinError(EcalElectronicsId const&, double) override;
35  void setBinError(int, double) override;
36 
38  void setBinEntries(DetId const&, double) override;
39  void setBinEntries(EcalElectronicsId const&, double) override;
40  void setBinEntries(int, double) override;
41 
43  double getBinContent(DetId const&, int = 0) const override;
44  double getBinContent(EcalElectronicsId const&, int = 0) const override;
45  double getBinContent(int, int = 0) const override;
46 
48  double getBinError(DetId const&, int = 0) const override;
49  double getBinError(EcalElectronicsId const&, int = 0) const override;
50  double getBinError(int, int = 0) const override;
51 
53  double getBinEntries(DetId const&, int = 0) const override;
54  double getBinEntries(EcalElectronicsId const&, int = 0) const override;
55  double getBinEntries(int, int) const override;
56 
57  using MESetEcal::findBin;
58  int findBin(DetId const&) const;
59  int findBin(EcalElectronicsId const&) const;
60 
61  void reset(double = 0., double = 0., double = 0.) override;
62 
63  void softReset() override;
64 
65  protected:
66  void fill_(unsigned, int, double) override;
67  void fill_(unsigned, int, double, double) override;
68  void fill_(unsigned, double, double, double) override;
69  };
70 }
71 
72 #endif
double getBinError(DetId const &, int) const override
Definition: MESetEcal.cc:446
double getBinContent(DetId const &, int) const override
Definition: MESetEcal.cc:413
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
~MESetDet2D() override
Definition: MESetDet2D.cc:24
void reset(double=0., double=0., double=0.) override
Definition: MESetDet2D.cc:522
void setBinContent(DetId const &, double) override
Definition: MESetDet2D.cc:160
void setBinError(DetId const &, double) override
Definition: MESetDet2D.cc:214
void book(DQMStore::IBooker &) override
Definition: MESetDet2D.cc:39
MESet * clone(std::string const &="") const override
Definition: MESetDet2D.cc:29
void fill(DetId const &, double=1., double=0., double=0.) override
Definition: MESetDet2D.cc:85
void setBinEntries(DetId const &, int, double) override
Definition: MESetEcal.cc:377
double getBinContent(DetId const &, int=0) const override
Definition: MESetDet2D.cc:324
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:556
double getBinError(DetId const &, int=0) const override
Definition: MESetDet2D.cc:377
double getBinEntries(DetId const &, int) const override
Definition: MESetEcal.cc:479
Definition: DetId.h:18
virtual int findBin(DetId const &, double, double=0.) const
Definition: MESetEcal.cc:515
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:430
void softReset() override
Definition: MESetDet2D.cc:548
void setBinContent(DetId const &, int, double) override
Definition: MESetEcal.cc:311
int findBin(DetId const &) const
Definition: MESetDet2D.cc:491
void setBinEntries(DetId const &, double) override
Definition: MESetDet2D.cc:268
void setBinError(DetId const &, int, double) override
Definition: MESetEcal.cc:344
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
Definition: MESetDet2D.cc:7