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 &, EcalElectronicsMapping const *) override;
24 
25  void fill(EcalDQMSetupObjects const, DetId const &, double = 1., double = 0., double = 0.) override;
26  void fill(EcalDQMSetupObjects const, EcalElectronicsId const &, double = 1., double = 0., double = 0.) override;
27  void fill(EcalDQMSetupObjects const, int, double = 1., double = 1., double = 1.) override;
28 
30  void setBinContent(EcalDQMSetupObjects const, DetId const &, double) override;
31  void setBinContent(EcalDQMSetupObjects const, EcalElectronicsId const &, double) override;
32  void setBinContent(EcalDQMSetupObjects const, int, double) override;
33 
35  void setBinError(EcalDQMSetupObjects const, DetId const &, double) override;
36  void setBinError(EcalDQMSetupObjects const, EcalElectronicsId const &, double) override;
37  void setBinError(EcalDQMSetupObjects const, int, double) override;
38 
40  void setBinEntries(EcalDQMSetupObjects const, DetId const &, double) override;
41  void setBinEntries(EcalDQMSetupObjects const, EcalElectronicsId const &, double) override;
42  void setBinEntries(EcalDQMSetupObjects const, int, double) override;
43 
45  double getBinContent(EcalDQMSetupObjects const, DetId const &, int = 0) const override;
46  double getBinContent(EcalDQMSetupObjects const, EcalElectronicsId const &, int = 0) const override;
47  double getBinContent(EcalDQMSetupObjects const, int, int = 0) const override;
48 
50  double getBinError(EcalDQMSetupObjects const, DetId const &, int = 0) const override;
51  double getBinError(EcalDQMSetupObjects const, EcalElectronicsId const &, int = 0) const override;
52  double getBinError(EcalDQMSetupObjects const, int, int = 0) const override;
53 
55  double getBinEntries(EcalDQMSetupObjects const, DetId const &, int = 0) const override;
56  double getBinEntries(EcalDQMSetupObjects const, EcalElectronicsId const &, int = 0) const override;
57  double getBinEntries(EcalDQMSetupObjects const, int, int) const override;
58 
59  using MESetEcal::findBin;
60  int findBin(EcalDQMSetupObjects const, DetId const &) const;
61  int findBin(EcalDQMSetupObjects const, EcalElectronicsId const &) const;
62 
63  void reset(EcalElectronicsMapping const *, double = 0., double = 0., double = 0.) 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 } // namespace ecaldqm
71 
72 #endif
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int) const override
Definition: MESetEcal.cc:523
void setBinEntries(EcalDQMSetupObjects const, DetId const &, int, double) override
Definition: MESetEcal.cc:424
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
int findBin(EcalDQMSetupObjects const, DetId const &) const
Definition: MESetDet2D.cc:468
MESet * clone(std::string const &="") const override
Definition: MESetDet2D.cc:25
double getBinError(EcalDQMSetupObjects const, DetId const &, int) const override
Definition: MESetEcal.cc:493
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:525
void setBinEntries(EcalDQMSetupObjects const, DetId const &, double) override
Definition: MESetDet2D.cc:251
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
Definition: MESetDet2D.cc:6
void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.) override
Definition: MESetDet2D.cc:496
virtual int findBin(EcalDQMSetupObjects const, DetId const &, double, double=0.) const
Definition: MESetEcal.cc:559
double getBinContent(EcalDQMSetupObjects const, DetId const &, int) const override
Definition: MESetEcal.cc:463
Definition: DetId.h:17
void setBinError(EcalDQMSetupObjects const, DetId const &, int, double) override
Definition: MESetEcal.cc:394
void setBinContent(EcalDQMSetupObjects const, DetId const &, int, double) override
Definition: MESetEcal.cc:361
void setBinContent(EcalDQMSetupObjects const, DetId const &, double) override
Definition: MESetDet2D.cc:151
void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override
Definition: MESetDet2D.cc:34
void setBinError(EcalDQMSetupObjects const, DetId const &, double) override
Definition: MESetDet2D.cc:201
void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=0., double=0.) override
Definition: MESetDet2D.cc:78
double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet2D.cc:305
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet2D.cc:403
double getBinError(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet2D.cc:354