CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
8  /* class MESetDet2D
9  channel ID-based MonitorElement wrapper
10  channel id <-> 2D cell
11  */
12  class MESetDet2D : public MESetEcal
13  {
14  public :
16  MESetDet2D(MESetDet2D const&);
17  ~MESetDet2D();
18 
19  MESet* clone(std::string const& = "") const override;
20 
21  void book(DQMStore&) override;
22  void book(DQMStore::IBooker&) override;
23 
24  void fill(DetId const&, double = 1., double = 0., double = 0.) override;
25  void fill(EcalElectronicsId const&, double = 1., double = 0., double = 0.) override;
26  void fill(int, double = 1., double = 1., double = 1.) override;
27 
28  void setBinContent(DetId const&, double) override;
29  void setBinContent(EcalElectronicsId const&, double) override;
30  void setBinContent(int, double) override;
31 
32  void setBinError(DetId const&, double) override;
33  void setBinError(EcalElectronicsId const&, double) override;
34  void setBinError(int, double) override;
35 
36  void setBinEntries(DetId const&, double) override;
37  void setBinEntries(EcalElectronicsId const&, double) override;
38  void setBinEntries(int, double) override;
39 
40  double getBinContent(DetId const&, int = 0) const override;
41  double getBinContent(EcalElectronicsId const&, int = 0) const override;
42  double getBinContent(int, int = 0) const override;
43 
44  double getBinError(DetId const&, int = 0) const override;
45  double getBinError(EcalElectronicsId const&, int = 0) const override;
46  double getBinError(int, int = 0) const override;
47 
48  double getBinEntries(DetId const&, int = 0) const override;
49  double getBinEntries(EcalElectronicsId const&, int = 0) const override;
50  double getBinEntries(int, int) const override;
51 
52  int findBin(DetId const&) const;
53  int findBin(EcalElectronicsId const&) const;
54 
55  void reset(double = 0., double = 0., double = 0.) override;
56 
57  void softReset() override;
58 
59  protected:
60  void fill_(unsigned, int, double) override;
61  void fill_(unsigned, int, double, double) override;
62  void fill_(unsigned, double, double, double) override;
63 
64  private:
65  template<class Bookable> void doBook_(Bookable&);
66  };
67 }
68 
69 #endif
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:375
void doBook_(Bookable &)
Definition: MESetDet2D.cc:548
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
void reset(double=0., double=0., double=0.) override
Definition: MESetDet2D.cc:467
MESet * clone(std::string const &="") const override
Definition: MESetDet2D.cc:29
void setBinContent(DetId const &, double) override
Definition: MESetDet2D.cc:105
void setBinError(DetId const &, double) override
Definition: MESetDet2D.cc:159
void fill(DetId const &, double=1., double=0., double=0.) override
Definition: MESetDet2D.cc:51
void book(DQMStore &) override
Definition: MESetDet2D.cc:39
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:501
double getBinError(DetId const &, int=0) const override
Definition: MESetDet2D.cc:322
Definition: DetId.h:18
double getBinContent(DetId const &, int=0) const override
Definition: MESetDet2D.cc:269
void softReset() override
Definition: MESetDet2D.cc:493
int findBin(DetId const &) const
Definition: MESetDet2D.cc:436
void setBinEntries(DetId const &, double) override
Definition: MESetDet2D.cc:213
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
Definition: MESetDet2D.cc:7