CMS 3D CMS Logo

ContainerSingle2D.h
Go to the documentation of this file.
1 #ifndef ContainerSingle2D_h
2 #define ContainerSingle2D_h
3 
4 /*
5  * file: ContainerSignle2D.h
6  * Author: Viktor Khristenko
7  *
8  * Description:
9  * Container to hold a single ME - for convenience of initialization
10  */
11 
15 
16 #include <string>
17 
18 namespace hcaldqm
19 {
21  {
22  public:
27  ContainerSingle2D(std::string const& folder,
28  std::string const&,
31  int debug=0);
33  ~ContainerSingle2D() override;
34 
35  virtual void initialize(std::string const& folder,
38  int debug=0);
39 
40  virtual void initialize(std::string const& folder,
41  std::string const&,
44  int debug=0);
46  // booking
47  virtual void book(DQMStore::IBooker&,
48  std::string subsystem="Hcal", std::string aux="");
49  // filling
50  virtual void fill(int, int);
51  virtual void fill(int, double);
52  virtual void fill(int, double, double);
53  virtual void fill(int, int, int);
54  virtual void fill(int, int, double);
55  virtual void fill(double, int);
56  virtual void fill(double, double);
57  virtual void fill(double, double, double);
58 
59  virtual double getBinContent(int, int);
60  virtual double getBinContent(int, double);
61  virtual double getBinContent(double, int);
62  virtual double getBinContent(double, double);
63  virtual double getBinEntries(int, int);
64  virtual double getBinEntries(int, double);
65  virtual double getBinEntries(double, int);
66  virtual double getBinEntries(double, double);
67 
68  virtual void setBinContent(int, int, int);
69  virtual void setBinContent(int, double, int);
70  virtual void setBinContent(double, int, int);
71  virtual void setBinContent(double, double, int);
72  virtual void setBinContent(int, int, double);
73  virtual void setBinContent(int, double, double);
74  virtual void setBinContent(double, int, double);
75  virtual void setBinContent(double, double, double);
76 
77  virtual void fill(HcalDetId const&);
78  virtual void fill(HcalDetId const&, int);
79  virtual void fill(HcalDetId const&, double);
80  virtual void fill(HcalDetId const&, int, int);
81  virtual void fill(HcalDetId const&, int, double);
82  virtual void fill(HcalDetId const&, double, double);
83 
84  virtual double getBinContent(HcalDetId const&);
85  virtual double getBinContent(HcalDetId const&, int);
86  virtual double getBinContent(HcalDetId const&, double);
87  virtual double getBinEntries(HcalDetId const&);
88  virtual double getBinEntries(HcalDetId const&, int);
89  virtual double getBinEntries(HcalDetId const&, double);
90 
91  virtual void setBinContent(HcalDetId const&, int);
92  virtual void setBinContent(HcalDetId const&, double);
93  virtual void setBinContent(HcalDetId const&, int, int);
94  virtual void setBinContent(HcalDetId const&, int, double);
95  virtual void setBinContent(HcalDetId const&, double, int);
96  virtual void setBinContent(HcalDetId const&, double, double);
97 
98  virtual void fill(HcalElectronicsId const&);
99  virtual void fill(HcalElectronicsId const&, int);
100  virtual void fill(HcalElectronicsId const&, double);
101  virtual void fill(HcalElectronicsId const&, int, int);
102  virtual void fill(HcalElectronicsId const&, int, double);
103  virtual void fill(HcalElectronicsId const&, double, double);
104 
105  virtual void fill(HcalDetId const&, HcalElectronicsId const&);
106  virtual void fill(HcalDetId const&, HcalElectronicsId const&,
107  double);
108 
109  virtual double getBinContent(HcalElectronicsId const&);
110  virtual double getBinContent(HcalElectronicsId const&, int);
111  virtual double getBinContent(HcalElectronicsId const&, double);
112  virtual double getBinEntries(HcalElectronicsId const&);
113  virtual double getBinEntries(HcalElectronicsId const&, int);
114  virtual double getBinEntries(HcalElectronicsId const&, double);
115 
116  virtual void setBinContent(HcalElectronicsId const&, int);
117  virtual void setBinContent(HcalElectronicsId const&, double);
118  virtual void setBinContent(HcalElectronicsId const&, int, int);
119  virtual void setBinContent(HcalElectronicsId const&, int, double);
120  virtual void setBinContent(HcalElectronicsId const&, double, int);
121  virtual void setBinContent(HcalElectronicsId const&, double, double);
122 
123  virtual void fill(HcalTrigTowerDetId const&);
124  virtual void fill(HcalTrigTowerDetId const&, int);
125  virtual void fill(HcalTrigTowerDetId const&, double);
126  virtual void fill(HcalTrigTowerDetId const&, int, int);
127  virtual void fill(HcalTrigTowerDetId const&, int, double);
128  virtual void fill(HcalTrigTowerDetId const&, double, double);
129 
130  virtual double getBinContent(HcalTrigTowerDetId const&);
131  virtual double getBinContent(HcalTrigTowerDetId const&, int);
132  virtual double getBinContent(HcalTrigTowerDetId const&, double);
133  virtual double getBinEntries(HcalTrigTowerDetId const&);
134  virtual double getBinEntries(HcalTrigTowerDetId const&, int);
135  virtual double getBinEntries(HcalTrigTowerDetId const&, double);
136 
137  virtual void setBinContent(HcalTrigTowerDetId const&, int);
138  virtual void setBinContent(HcalTrigTowerDetId const&, double);
139  virtual void setBinContent(HcalTrigTowerDetId const&, int, int);
140  virtual void setBinContent(HcalTrigTowerDetId const&, int, double);
141  virtual void setBinContent(HcalTrigTowerDetId const&, double, int);
142  virtual void setBinContent(HcalTrigTowerDetId const&, double, double);
143 
144  virtual void reset() {_me->Reset();}
145  virtual void print() {std::cout << _qname << std::endl;}
146 
147  virtual void load(DQMStore::IGetter&, std::string subsystem="Hcal",
148  std::string aux="");
149 
150  virtual void extendAxisRange(int);
151 
152  void showOverflowZ(bool showOverflow);
153 
154  protected:
159 
160  virtual void customize();
161  };
162 }
163 
164 #endif
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:33
virtual double getBinEntries(int, int)
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
virtual void extendAxisRange(int)
quantity::Quantity * _qx
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
quantity::Quantity * _qy
virtual void setBinContent(int, int, int)
void showOverflowZ(bool showOverflow)
void Reset()
reset ME (ie. contents, errors, etc)
#define debug
Definition: HDRShower.cc:19
std::string _qname
Definition: Container.h:43
virtual double getBinContent(int, int)
virtual void fill(int, int)
virtual void load(DQMStore::IGetter &, std::string subsystem="Hcal", std::string aux="")
Readout chain identification for Hcal.
quantity::Quantity * _qz