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  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
ecaldqm
Definition: DQWorker.h:24
ecaldqm::MESetDet2D::reset
void reset(double=0., double=0., double=0.) override
Definition: MESetDet2D.cc:495
ecaldqm::MESetEcal::getBinEntries
double getBinEntries(DetId const &, int) const override
Definition: MESetEcal.cc:506
ecaldqm::MESetEcal::setBinContent
void setBinContent(DetId const &, int, double) override
Definition: MESetEcal.cc:350
ecaldqm::MESetDet2D::~MESetDet2D
~MESetDet2D() override
Definition: MESetDet2D.cc:23
ecaldqm::MESetEcal
Definition: MESetEcal.h:15
ecaldqm::MESetEcal::getBinError
double getBinError(DetId const &, int) const override
Definition: MESetEcal.cc:476
ecaldqm::MESetDet2D::setBinEntries
void setBinEntries(DetId const &, double) override
Definition: MESetDet2D.cc:250
DetId
Definition: DetId.h:17
ecaldqm::MESetDet2D::book
void book(DQMStore::IBooker &) override
Definition: MESetDet2D.cc:34
MESetEcal.h
ecaldqm::MESetEcal::getBinContent
double getBinContent(DetId const &, int) const override
Definition: MESetEcal.cc:446
EcalElectronicsId
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
Definition: EcalElectronicsId.h:18
ecaldqm::MESetDet2D::findBin
int findBin(DetId const &) const
Definition: MESetDet2D.cc:467
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ecaldqm::MESetDet2D::getBinContent
double getBinContent(DetId const &, int=0) const override
Definition: MESetDet2D.cc:304
ecaldqm::binning::ObjectType
ObjectType
Definition: MESetBinningUtils.h:17
ecaldqm::MESetEcal::findBin
virtual int findBin(DetId const &, double, double=0.) const
Definition: MESetEcal.cc:542
ecaldqm::MESetDet2D::fill_
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:521
MonitorElementData::Kind
Kind
Definition: MonitorElementCollection.h:129
ecaldqm::binning::AxisSpecs
Definition: MESetBinningUtils.h:72
ecaldqm::MESetDet2D::getBinEntries
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:402
ecaldqm::MESetDet2D
Definition: MESetDet2D.h:11
ecaldqm::MESetDet2D::fill
void fill(DetId const &, double=1., double=0., double=0.) override
Definition: MESetDet2D.cc:78
ecaldqm::MESetDet2D::getBinError
double getBinError(DetId const &, int=0) const override
Definition: MESetDet2D.cc:353
dqm::implementation::IBooker
Definition: DQMStore.h:43
ecaldqm::binning::BinningType
BinningType
Definition: MESetBinningUtils.h:40
ecaldqm::MESetEcal::setBinEntries
void setBinEntries(DetId const &, int, double) override
Definition: MESetEcal.cc:410
ecaldqm::MESetDet2D::setBinContent
void setBinContent(DetId const &, double) override
Definition: MESetDet2D.cc:150
ecaldqm::MESetDet2D::clone
MESet * clone(std::string const &="") const override
Definition: MESetDet2D.cc:25
ecaldqm::MESetDet2D::setBinError
void setBinError(DetId const &, double) override
Definition: MESetDet2D.cc:200
ecaldqm::MESetEcal::setBinError
void setBinError(DetId const &, int, double) override
Definition: MESetEcal.cc:380
ecaldqm::MESet
Definition: MESet.h:27
ecaldqm::MESetDet2D::MESetDet2D
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
Definition: MESetDet2D.cc:6