CMS 3D CMS Logo

MESetDet1D.h
Go to the documentation of this file.
1 #ifndef MESetDet1D_H
2 #define MESetDet1D_H
3 
4 #include "MESetEcal.h"
5 
6 namespace ecaldqm {
7  /*
8  class MESetDet1D
9  channel ID-based MonitorElement wrapper
10  channel id <-> x axis bin
11 */
12 
13  class MESetDet1D : public MESetEcal {
14  public:
15  MESetDet1D(std::string const &,
19  binning::AxisSpecs const * = nullptr);
20  MESetDet1D(MESetDet1D const &);
21  ~MESetDet1D() override;
22 
23  MESet *clone(std::string const & = "") const override;
24 
25  void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override;
26 
27  void fill(EcalDQMSetupObjects const, DetId const &, double = 1., double = 1., double = 0.) override;
28  void fill(EcalDQMSetupObjects const, EcalElectronicsId const &, double = 1., double = 1., double = 0.) override;
29  void fill(EcalDQMSetupObjects const, int, double = 1., double = 1., double = 0.) override;
30 
31  void setBinContent(EcalDQMSetupObjects const, DetId const &, double) override;
32  void setBinContent(EcalDQMSetupObjects const, EcalElectronicsId const &, double) override;
33  void setBinContent(EcalDQMSetupObjects const, int, double) override;
34  void setBinContent(EcalDQMSetupObjects const, DetId const &, int, double) override;
35  void setBinContent(EcalDQMSetupObjects const, EcalElectronicsId const &, int, double) override;
36  void setBinContent(EcalDQMSetupObjects const, int, int, double) override;
37 
38  void setBinError(EcalDQMSetupObjects const, DetId const &, double) override;
39  void setBinError(EcalDQMSetupObjects const, EcalElectronicsId const &, double) override;
40  void setBinError(EcalDQMSetupObjects const, int, double) override;
41  void setBinError(EcalDQMSetupObjects const, DetId const &, int, double) override;
42  void setBinError(EcalDQMSetupObjects const, EcalElectronicsId const &, int, double) override;
43  void setBinError(EcalDQMSetupObjects const, int, int, double) override;
44 
45  void setBinEntries(EcalDQMSetupObjects const, DetId const &, double) override;
46  void setBinEntries(EcalDQMSetupObjects const, EcalElectronicsId const &, double) override;
47  void setBinEntries(EcalDQMSetupObjects const, int, double) override;
48  void setBinEntries(EcalDQMSetupObjects const, DetId const &, int, double) override;
49  void setBinEntries(EcalDQMSetupObjects const, EcalElectronicsId const &, int, double) override;
50  void setBinEntries(EcalDQMSetupObjects const, int, int, double) override;
51 
52  double getBinContent(EcalDQMSetupObjects const, DetId const &, int = 0) const override;
53  double getBinContent(EcalDQMSetupObjects const, EcalElectronicsId const &, int = 0) const override;
54  double getBinContent(EcalDQMSetupObjects const, int, int = 0) const override;
55 
56  double getBinError(EcalDQMSetupObjects const, DetId const &, int = 0) const override;
57  double getBinError(EcalDQMSetupObjects const, EcalElectronicsId const &, int = 0) const override;
58  double getBinError(EcalDQMSetupObjects const, int, int = 0) const override;
59 
60  double getBinEntries(EcalDQMSetupObjects const, DetId const &, int = 0) const override;
61  double getBinEntries(EcalDQMSetupObjects const, EcalElectronicsId const &, int = 0) const override;
62  double getBinEntries(EcalDQMSetupObjects const, int, int = 0) const override;
63 
64  int findBin(EcalDQMSetupObjects const, DetId const &) const;
65  int findBin(EcalDQMSetupObjects const, EcalElectronicsId const &) const;
66  int findBin(EcalDQMSetupObjects const, int) const;
67  int findBin(EcalDQMSetupObjects const, DetId const &, double, double = 0.) const override;
68  int findBin(EcalDQMSetupObjects const, EcalElectronicsId const &, double, double = 0.) const override;
69  int findBin(EcalDQMSetupObjects const, int, double, double = 0.) const override;
70 
71  void reset(EcalElectronicsMapping const *, double = 0., double = 0., double = 0.) override;
72  };
73 } // namespace ecaldqm
74 
75 #endif
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
ecaldqm
Definition: DQWorker.h:37
ecaldqm::MESetDet1D::findBin
int findBin(EcalDQMSetupObjects const, DetId const &) const
Definition: MESetDet1D.cc:659
ecaldqm::MESetEcal
Definition: MESetEcal.h:15
ecaldqm::MESetDet1D
Definition: MESetDet1D.h:13
ecaldqm::MESetDet1D::~MESetDet1D
~MESetDet1D() override
Definition: MESetDet1D.cc:26
ecaldqm::MESetDet1D::MESetDet1D
MESetDet1D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
Definition: MESetDet1D.cc:7
DetId
Definition: DetId.h:17
ecaldqm::MESetDet1D::fill
void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=0.) override
Definition: MESetDet1D.cc:110
MESetEcal.h
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::MESetDet1D::book
void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override
Definition: MESetDet1D.cc:37
ecaldqm::MESetDet1D::setBinError
void setBinError(EcalDQMSetupObjects const, DetId const &, double) override
Definition: MESetDet1D.cc:272
ecaldqm::MESetDet1D::setBinEntries
void setBinEntries(EcalDQMSetupObjects const, DetId const &, double) override
Definition: MESetDet1D.cc:380
ecaldqm::binning::ObjectType
ObjectType
Definition: MESetBinningUtils.h:18
ecaldqm::MESetDet1D::getBinContent
double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet1D.cc:503
ecaldqm::EcalDQMSetupObjects
Definition: MESet.h:33
MonitorElementData::Kind
Kind
Definition: MonitorElementCollection.h:129
ecaldqm::binning::AxisSpecs
Definition: MESetBinningUtils.h:73
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ecaldqm::MESetDet1D::getBinEntries
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet1D.cc:603
ecaldqm::MESetDet1D::setBinContent
void setBinContent(EcalDQMSetupObjects const, DetId const &, double) override
Definition: MESetDet1D.cc:161
ecaldqm::MESetDet1D::reset
void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.) override
Definition: MESetDet1D.cc:749
dqm::implementation::IBooker
Definition: DQMStore.h:43
ecaldqm::MESetDet1D::clone
MESet * clone(std::string const &="") const override
Definition: MESetDet1D.cc:28
ecaldqm::binning::BinningType
BinningType
Definition: MESetBinningUtils.h:41
ecaldqm::MESet
Definition: MESet.h:42
ecaldqm::MESetDet1D::getBinError
double getBinError(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet1D.cc:553