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
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
ecaldqm
Definition: DQWorker.h:37
ecaldqm::MESetEcal::findBin
virtual int findBin(EcalDQMSetupObjects const, DetId const &, double, double=0.) const
Definition: MESetEcal.cc:559
ecaldqm::MESetDet2D::~MESetDet2D
~MESetDet2D() override
Definition: MESetDet2D.cc:23
ecaldqm::MESetDet2D::reset
void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.) override
Definition: MESetDet2D.cc:496
ecaldqm::MESetEcal
Definition: MESetEcal.h:15
ecaldqm::MESetDet2D::fill
void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=0., double=0.) override
Definition: MESetDet2D.cc:78
ecaldqm::MESetEcal::getBinContent
double getBinContent(EcalDQMSetupObjects const, DetId const &, int) const override
Definition: MESetEcal.cc:463
ecaldqm::MESetDet2D::setBinError
void setBinError(EcalDQMSetupObjects const, DetId const &, double) override
Definition: MESetDet2D.cc:201
DetId
Definition: DetId.h:17
ecaldqm::MESetEcal::getBinError
double getBinError(EcalDQMSetupObjects const, DetId const &, int) const override
Definition: MESetEcal.cc:493
ecaldqm::MESetDet2D::getBinEntries
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet2D.cc:403
ecaldqm::MESetEcal::setBinError
void setBinError(EcalDQMSetupObjects const, DetId const &, int, double) override
Definition: MESetEcal.cc:394
ecaldqm::MESetEcal::getBinEntries
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int) const override
Definition: MESetEcal.cc:523
MESetEcal.h
ecaldqm::MESetDet2D::getBinContent
double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet2D.cc:305
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::book
void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override
Definition: MESetDet2D.cc:34
ecaldqm::binning::ObjectType
ObjectType
Definition: MESetBinningUtils.h:18
ecaldqm::EcalDQMSetupObjects
Definition: MESet.h:33
ecaldqm::MESetDet2D::fill_
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:525
MonitorElementData::Kind
Kind
Definition: MonitorElementCollection.h:129
ecaldqm::MESetDet2D::findBin
int findBin(EcalDQMSetupObjects const, DetId const &) const
Definition: MESetDet2D.cc:468
ecaldqm::binning::AxisSpecs
Definition: MESetBinningUtils.h:73
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ecaldqm::MESetDet2D
Definition: MESetDet2D.h:11
ecaldqm::MESetEcal::setBinEntries
void setBinEntries(EcalDQMSetupObjects const, DetId const &, int, double) override
Definition: MESetEcal.cc:424
ecaldqm::MESetDet2D::setBinContent
void setBinContent(EcalDQMSetupObjects const, DetId const &, double) override
Definition: MESetDet2D.cc:151
dqm::implementation::IBooker
Definition: DQMStore.h:43
ecaldqm::MESetDet2D::getBinError
double getBinError(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet2D.cc:354
ecaldqm::MESetEcal::setBinContent
void setBinContent(EcalDQMSetupObjects const, DetId const &, int, double) override
Definition: MESetEcal.cc:361
ecaldqm::binning::BinningType
BinningType
Definition: MESetBinningUtils.h:41
ecaldqm::MESetDet2D::clone
MESet * clone(std::string const &="") const override
Definition: MESetDet2D.cc:25
ecaldqm::MESetDet2D::setBinEntries
void setBinEntries(EcalDQMSetupObjects const, DetId const &, double) override
Definition: MESetDet2D.cc:251
ecaldqm::MESet
Definition: MESet.h:42
ecaldqm::MESetDet2D::MESetDet2D
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
Definition: MESetDet2D.cc:6