CMS 3D CMS Logo

MESetDet0D.h
Go to the documentation of this file.
1 #ifndef MESetDet0D_H
2 #define MESetDet0D_H
3 
4 #include "MESetEcal.h"
5 
6 namespace ecaldqm {
7  /* class MESetDet0D
8  subdetector-based MonitorElement wrapper
9  represents single float MEs (DQM_KIND_REAL)
10  fill = setBinContent
11 */
12 
13  class MESetDet0D : public MESetEcal {
14  public:
16  MESetDet0D(MESetDet0D const &);
17  ~MESetDet0D() override;
18 
19  MESet *clone(std::string const & = "") const override;
20 
21  void fill(DetId const &, double, double = 0., double = 0.) override;
22  void fill(EcalElectronicsId const &, double, double = 0., double = 0.) override;
23  void fill(int, double, double = 0., double = 0.) override;
24 
25  void setBinContent(DetId const &_id, int, double _value) override { fill(_id, _value); }
26  void setBinContent(EcalElectronicsId const &_id, int, double _value) override { fill(_id, _value); }
27  void setBinContent(int _dcctccid, int, double _value) override { fill(_dcctccid, _value); }
28 
29  double getBinContent(DetId const &, int = 0) const override;
30  double getBinContent(EcalElectronicsId const &, int = 0) const override;
31  double getBinContent(int, int = 0) const override;
32 
33  void reset(double = 0., double = 0., double = 0.) override;
34  };
35 } // namespace ecaldqm
36 
37 #endif
ecaldqm
Definition: DQWorker.h:24
ecaldqm::MESetDet0D::fill
void fill(DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:30
ecaldqm::MESetDet0D::reset
void reset(double=0., double=0., double=0.) override
Definition: MESetDet0D.cc:90
ecaldqm::MESetEcal
Definition: MESetEcal.h:15
DetId
Definition: DetId.h:17
ecaldqm::MESetDet0D::setBinContent
void setBinContent(DetId const &_id, int, double _value) override
Definition: MESetDet0D.h:25
ecaldqm::MESetDet0D::getBinContent
double getBinContent(DetId const &, int=0) const override
Definition: MESetDet0D.cc:60
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::MESetDet0D::~MESetDet0D
~MESetDet0D() override
Definition: MESetDet0D.cc:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ecaldqm::binning::ObjectType
ObjectType
Definition: MESetBinningUtils.h:17
MonitorElementData::Kind
Kind
Definition: MonitorElementCollection.h:129
ecaldqm::MESetDet0D
Definition: MESetDet0D.h:13
ecaldqm::MESetDet0D::setBinContent
void setBinContent(int _dcctccid, int, double _value) override
Definition: MESetDet0D.h:27
ecaldqm::MESetDet0D::setBinContent
void setBinContent(EcalElectronicsId const &_id, int, double _value) override
Definition: MESetDet0D.h:26
ecaldqm::MESetDet0D::clone
MESet * clone(std::string const &="") const override
Definition: MESetDet0D.cc:21
ecaldqm::binning::BinningType
BinningType
Definition: MESetBinningUtils.h:40
ecaldqm::MESetDet0D::MESetDet0D
MESetDet0D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
Definition: MESetDet0D.cc:4
ecaldqm::MESet
Definition: MESet.h:27