CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MESetEcal.h
Go to the documentation of this file.
1 #ifndef MESetEcal_H
2 #define MESetEcal_H
3 
4 #include "MESet.h"
5 
6 namespace ecaldqm
7 {
8 
9  /* class MESetEcal
10  implements plot <-> detector part relationship
11  base class for channel-binned histograms
12  MESetEcal is only filled given an object identifier and a bin (channel id does not give a bin)
13  */
14 
15  class MESetEcal : public MESet
16  {
17  public :
19  MESetEcal(MESetEcal const&);
20  ~MESetEcal();
21 
22  MESet& operator=(MESet const&) override;
23 
24  MESet* clone(std::string const& = "") const override;
25 
26  void book(DQMStore&) override;
27  void book(DQMStore::IBooker&) override;
28  bool retrieve(DQMStore const&, std::string* = 0) const override;
29 
30  void fill(DetId const&, double = 1., double = 1., double = 1.) override;
31  void fill(EcalElectronicsId const&, double = 1., double = 1., double = 1.) override;
32  void fill(int, double = 1., double = 1., double = 1.) override;
33  void fill(double, double = 1., double = 1.) override;
34 
35  void setBinContent(DetId const&, int, double) override;
36  void setBinContent(EcalElectronicsId const&, int, double) override;
37  void setBinContent(int, int, double) override;
38 
39  void setBinError(DetId const&, int, double) override;
40  void setBinError(EcalElectronicsId const&, int, double) override;
41  void setBinError(int, int, double) override;
42 
43  void setBinEntries(DetId const&, int, double) override;
44  void setBinEntries(EcalElectronicsId const&, int, double) override;
45  void setBinEntries(int, int, double) override;
46 
47  double getBinContent(DetId const&, int) const override;
48  double getBinContent(EcalElectronicsId const&, int) const override;
49  double getBinContent(int, int) const override;
50 
51  double getBinError(DetId const&, int) const override;
52  double getBinError(EcalElectronicsId const&, int) const override;
53  double getBinError(int, int) const override;
54 
55  double getBinEntries(DetId const&, int) const override;
56  double getBinEntries(EcalElectronicsId const&, int) const override;
57  double getBinEntries(int, int) const override;
58 
59  virtual int findBin(DetId const&, double, double = 0.) const;
60  virtual int findBin(EcalElectronicsId const&, double, double = 0.) const;
61  virtual int findBin(int, double, double = 0.) const;
62 
63  bool isVariableBinning() const override;
64 
65  std::vector<std::string> generatePaths() const;
66 
67  protected :
72 
73  private:
74  template<class Bookable> void doBook_(Bookable&);
75  };
76 
77 }
78 
79 #endif
double getBinError(DetId const &, int) const override
Definition: MESetEcal.cc:288
MESet & operator=(MESet const &) override
Definition: MESetEcal.cc:39
void fill(DetId const &, double=1., double=1., double=1.) override
Definition: MESetEcal.cc:110
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
void book(DQMStore &) override
Definition: MESetEcal.cc:69
double getBinEntries(DetId const &, int) const override
Definition: MESetEcal.cc:321
void doBook_(Bookable &)
Definition: MESetEcal.cc:511
bool retrieve(DQMStore const &, std::string *=0) const override
Definition: MESetEcal.cc:81
MESet * clone(std::string const &="") const override
Definition: MESetEcal.cc:59
bool isVariableBinning() const override
Definition: MESetEcal.cc:390
void setBinEntries(DetId const &, int, double) override
Definition: MESetEcal.cc:219
double getBinContent(DetId const &, int) const override
Definition: MESetEcal.cc:255
Definition: DetId.h:18
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
Definition: MESetEcal.cc:11
virtual int findBin(DetId const &, double, double=0.) const
Definition: MESetEcal.cc:357
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:71
void setBinContent(DetId const &, int, double) override
Definition: MESetEcal.cc:153
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:69
std::vector< std::string > generatePaths() const
Definition: MESetEcal.cc:396
void setBinError(DetId const &, int, double) override
Definition: MESetEcal.cc:186
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:70
unsigned logicalDimensions_
Definition: MESetEcal.h:68