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(EcalDQMSetupObjects const, DetId const &, double, double = 0., double = 0.) override;
22  void fill(EcalDQMSetupObjects const, EcalElectronicsId const &, double, double = 0., double = 0.) override;
23  void fill(EcalDQMSetupObjects const, int, double, double = 0., double = 0.) override;
24 
25  void setBinContent(EcalDQMSetupObjects const edso, DetId const &_id, int, double _value) override {
26  fill(edso, _id, _value);
27  }
28  void setBinContent(EcalDQMSetupObjects const edso, EcalElectronicsId const &_id, int, double _value) override {
29  fill(edso, _id, _value);
30  }
31  void setBinContent(EcalDQMSetupObjects const edso, int _dcctccid, int, double _value) override {
32  fill(edso, _dcctccid, _value);
33  }
34 
35  double getBinContent(EcalDQMSetupObjects const, DetId const &, int = 0) const override;
36  double getBinContent(EcalDQMSetupObjects const, EcalElectronicsId const &, int = 0) const override;
37  double getBinContent(EcalDQMSetupObjects const, int, int = 0) const override;
38 
39  void reset(EcalElectronicsMapping const *, double = 0., double = 0., double = 0.) override;
40  };
41 } // namespace ecaldqm
42 
43 #endif
~MESetDet0D() override
Definition: MESetDet0D.cc:19
void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.) override
Definition: MESetDet0D.cc:90
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
MESet * clone(std::string const &="") const override
Definition: MESetDet0D.cc:21
double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet0D.cc:60
void fill(EcalDQMSetupObjects const, DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:30
void setBinContent(EcalDQMSetupObjects const edso, DetId const &_id, int, double _value) override
Definition: MESetDet0D.h:25
MESetDet0D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
Definition: MESetDet0D.cc:4
Definition: DetId.h:17
void setBinContent(EcalDQMSetupObjects const edso, EcalElectronicsId const &_id, int, double _value) override
Definition: MESetDet0D.h:28
void setBinContent(EcalDQMSetupObjects const edso, int _dcctccid, int, double _value) override
Definition: MESetDet0D.h:31