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
~MESetDet0D() override
Definition: MESetDet0D.cc:19
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
void fill(DetId const &, double, double=0., double=0.) override
Definition: MESetDet0D.cc:30
MESet * clone(std::string const &="") const override
Definition: MESetDet0D.cc:21
void setBinContent(int _dcctccid, int, double _value) override
Definition: MESetDet0D.h:27
void setBinContent(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:18
void setBinContent(EcalElectronicsId const &_id, int, double _value) override
Definition: MESetDet0D.h:26
void reset(double=0., double=0., double=0.) override
Definition: MESetDet0D.cc:90
double getBinContent(DetId const &, int=0) const override
Definition: MESetDet0D.cc:60