test
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::IBooker&) override;
22 
23  void fill(DetId const&, double = 1., double = 0., double = 0.) override;
24  void fill(EcalElectronicsId const&, double = 1., double = 0., double = 0.) override;
25  void fill(int, double = 1., double = 1., double = 1.) override;
26 
27  void setBinContent(DetId const&, double) override;
28  void setBinContent(EcalElectronicsId const&, double) override;
29  void setBinContent(int, double) override;
30 
31  void setBinError(DetId const&, double) override;
32  void setBinError(EcalElectronicsId const&, double) override;
33  void setBinError(int, double) override;
34 
35  void setBinEntries(DetId const&, double) override;
36  void setBinEntries(EcalElectronicsId const&, double) override;
37  void setBinEntries(int, double) override;
38 
39  double getBinContent(DetId const&, int = 0) const override;
40  double getBinContent(EcalElectronicsId const&, int = 0) const override;
41  double getBinContent(int, int = 0) const override;
42 
43  double getBinError(DetId const&, int = 0) const override;
44  double getBinError(EcalElectronicsId const&, int = 0) const override;
45  double getBinError(int, int = 0) const override;
46 
47  double getBinEntries(DetId const&, int = 0) const override;
48  double getBinEntries(EcalElectronicsId const&, int = 0) const override;
49  double getBinEntries(int, int) const override;
50 
51  int findBin(DetId const&) const;
52  int findBin(EcalElectronicsId const&) const;
53 
54  void reset(double = 0., double = 0., double = 0.) override;
55 
56  void softReset() override;
57 
58  protected:
59  void fill_(unsigned, int, double) override;
60  void fill_(unsigned, int, double, double) override;
61  void fill_(unsigned, double, double, double) override;
62  };
63 }
64 
65 #endif
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:409
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:501
MESet * clone(std::string const &="") const override
Definition: MESetDet2D.cc:29
void setBinContent(DetId const &, double) override
Definition: MESetDet2D.cc:139
void setBinError(DetId const &, double) override
Definition: MESetDet2D.cc:193
void book(DQMStore::IBooker &) override
Definition: MESetDet2D.cc:39
void fill(DetId const &, double=1., double=0., double=0.) override
Definition: MESetDet2D.cc:85
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:535
double getBinError(DetId const &, int=0) const override
Definition: MESetDet2D.cc:356
Definition: DetId.h:18
double getBinContent(DetId const &, int=0) const override
Definition: MESetDet2D.cc:303
void softReset() override
Definition: MESetDet2D.cc:527
int findBin(DetId const &) const
Definition: MESetDet2D.cc:470
void setBinEntries(DetId const &, double) override
Definition: MESetDet2D.cc:247
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
Definition: MESetDet2D.cc:7