CMS 3D CMS Logo

Container2D.h
Go to the documentation of this file.
1 #ifndef Container2D_h
2 #define Container2D_h
3 
4 /*
5  * file: Container2D.h
6  * Author: Viktor Khristenko
7  *
8  * Description:
9  * Container to hold TH2D or like
10  *
11  */
12 
14 
15 #include <vector>
16 #include <string>
17 
18 namespace hcaldqm
19 {
20  class Container2D : public Container1D
21  {
22  public:
23  Container2D();
27  ~Container2D() override;
28 
29  // Initialize Container
30  // @folder
31  // @nametitle,
32  virtual void initialize(std::string const& folder,
35  int debug=0);
36 
37  // @qname - quantity name replacer
38  virtual void initialize(std::string const& folder,
39  std::string const& qname,
42  int debug=0);
45  // redeclare what to override
46  void fill(HcalDetId const&) override ;
47  void fill(HcalDetId const&, int) override;
48  void fill(HcalDetId const&, double) override;
49  void fill(HcalDetId const&, int, double) override;
50  void fill(HcalDetId const&, int, int) override;
51  void fill(HcalDetId const&, double, double) override;
52 
53  double getBinEntries(HcalDetId const&) override;
54  double getBinEntries(HcalDetId const&, int) override;
55  double getBinEntries(HcalDetId const&, double) override;
56  double getBinEntries(HcalDetId const&, int, int) override;
57  double getBinEntries(HcalDetId const&, int, double) override;
58  double getBinEntries(HcalDetId const&, double, double) override;
59 
60  double getBinContent(HcalDetId const&) override;
61  double getBinContent(HcalDetId const&, int) override;
62  double getBinContent(HcalDetId const&, double) override;
63  double getBinContent(HcalDetId const&, int, int) override;
64  double getBinContent(HcalDetId const&, int, double) override;
65  double getBinContent(HcalDetId const&, double, double) override;
66 
67  void setBinContent(HcalDetId const&, int) override;
68  void setBinContent(HcalDetId const&, double) override;
69  void setBinContent(HcalDetId const&, int, int) override;
70  void setBinContent(HcalDetId const&, int, double) override;
71  void setBinContent(HcalDetId const&, double, int) override;
72  void setBinContent(HcalDetId const&, double, double) override;
73  void setBinContent(HcalDetId const&, int, int, int) override;
74  void setBinContent(HcalDetId const&, int, double, int) override;
75  void setBinContent(HcalDetId const&, double, int, int) override;
76  void setBinContent(HcalDetId const&, double, double, int) override;
77  void setBinContent(HcalDetId const&, int, int, double) override;
78  void setBinContent(HcalDetId const&, int, double, double) override;
79  void setBinContent(HcalDetId const&, double, int, double) override;
80  void setBinContent(HcalDetId const&, double, double,
81  double) override;
82 
83  void fill(HcalElectronicsId const&) override;
84  void fill(HcalElectronicsId const&, int) override;
85  void fill(HcalElectronicsId const&, double) override;
86  void fill(HcalElectronicsId const&, int, double) override;
87  void fill(HcalElectronicsId const&, int, int) override;
88  void fill(HcalElectronicsId const&, double, double) override;
89 
90  double getBinEntries(HcalElectronicsId const&) override;
91  double getBinEntries(HcalElectronicsId const&, int) override;
92  double getBinEntries(HcalElectronicsId const&, double) override;
93  double getBinEntries(HcalElectronicsId const&, int, int) override;
94  double getBinEntries(HcalElectronicsId const&, int, double) override;
95  double getBinEntries(HcalElectronicsId const&, double,
96  double) override;
97 
98  double getBinContent(HcalElectronicsId const&) override;
99  double getBinContent(HcalElectronicsId const&, int) override;
100  double getBinContent(HcalElectronicsId const&, double) override;
101  double getBinContent(HcalElectronicsId const&, int, int) override;
102  double getBinContent(HcalElectronicsId const&, int, double) override;
103  double getBinContent(HcalElectronicsId const&, double,
104  double) override;
105 
106  void setBinContent(HcalElectronicsId const&, int) override;
107  void setBinContent(HcalElectronicsId const&, double) override;
108  void setBinContent(HcalElectronicsId const&, int, int) override;
109  void setBinContent(HcalElectronicsId const&, int, double) override;
110  void setBinContent(HcalElectronicsId const&, double, int) override;
111  void setBinContent(HcalElectronicsId const&, double, double) override;
112  void setBinContent(HcalElectronicsId const&, int, int, int) override;
113  void setBinContent(HcalElectronicsId const&, int, double, int) override;
114  void setBinContent(HcalElectronicsId const&, double, int, int) override;
115  void setBinContent(HcalElectronicsId const&, double, double, int) override;
116  void setBinContent(HcalElectronicsId const&, int, int, double) override;
117  void setBinContent(HcalElectronicsId const&, int, double, double) override;
118  void setBinContent(HcalElectronicsId const&, double, int, double) override;
119  void setBinContent(HcalElectronicsId const&, double, double,
120  double) override;
121 
122  void fill(HcalTrigTowerDetId const&) override;
123  void fill(HcalTrigTowerDetId const&, int) override;
124  void fill(HcalTrigTowerDetId const&, double) override;
125  void fill(HcalTrigTowerDetId const&, int, int) override;
126  void fill(HcalTrigTowerDetId const&, int, double) override;
127  void fill(HcalTrigTowerDetId const&, double, double) override;
128 
129  double getBinEntries(HcalTrigTowerDetId const&) override;
130  double getBinEntries(HcalTrigTowerDetId const&, int) override;
131  double getBinEntries(HcalTrigTowerDetId const&, double) override;
132  double getBinEntries(HcalTrigTowerDetId const&, int, int) override;
133  double getBinEntries(HcalTrigTowerDetId const&, int,
134  double) override;
135  double getBinEntries(HcalTrigTowerDetId const&,
136  double, double) override;
137 
138  double getBinContent(HcalTrigTowerDetId const&) override;
139  double getBinContent(HcalTrigTowerDetId const&, int) override;
140  double getBinContent(HcalTrigTowerDetId const&, double) override;
141  double getBinContent(HcalTrigTowerDetId const&, int, int) override;
142  double getBinContent(HcalTrigTowerDetId const&, int, double) override;
143  double getBinContent(HcalTrigTowerDetId const&,
144  double, double) override;
145 
146  void setBinContent(HcalTrigTowerDetId const&, int) override;
147  void setBinContent(HcalTrigTowerDetId const&, double) override;
148  void setBinContent(HcalTrigTowerDetId const&, int, int) override;
149  void setBinContent(HcalTrigTowerDetId const&, int, double) override;
150  void setBinContent(HcalTrigTowerDetId const&, double, int) override;
151  void setBinContent(HcalTrigTowerDetId const&, double, double) override;
152  void setBinContent(HcalTrigTowerDetId const&, int, int, int) override;
153  void setBinContent(HcalTrigTowerDetId const&, int, double, int) override;
154  void setBinContent(HcalTrigTowerDetId const&, double, int, int) override;
155  void setBinContent(HcalTrigTowerDetId const&, double, double, int) override;
156  void setBinContent(HcalTrigTowerDetId const&, int, int, double) override;
157  void setBinContent(HcalTrigTowerDetId const&, int, double, double) override;
158  void setBinContent(HcalTrigTowerDetId const&, double, int, double) override;
159  void setBinContent(HcalTrigTowerDetId const&, double, double,
160  double) override;
161 
162  // booking. see Container1D.h
163  void book(DQMStore::IBooker&,
164  HcalElectronicsMap const*,
165  std::string subsystem="Hcal", std::string aux="") override;
166  void book(DQMStore::IBooker&,
167  HcalElectronicsMap const*, filter::HashFilter const&,
168  std::string subsystem="Hcal", std::string aux="") override;
169  void book(DQMStore*,
170  HcalElectronicsMap const*,
171  std::string subsystem="Hcal", std::string aux="") override;
172  void book(DQMStore*,
173  HcalElectronicsMap const*, filter::HashFilter const&,
174  std::string subsystem="Hcal", std::string aux="") override;
175 
176  void showOverflowZ(bool showOverflow);
177 
178  protected:
180 
181  void customize(MonitorElement*) override;
182  };
183 }
184 
185 
186 #endif
187 
188 
189 
190 
191 
192 
193 
194 
void customize(MonitorElement *) override
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:33
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:41
~Container2D() override
Definition: Container2D.cc:25
double getBinEntries(HcalDetId const &) override
Definition: Container2D.cc:134
void showOverflowZ(bool showOverflow)
double getBinContent(HcalDetId const &) override
Definition: Container2D.cc:184
#define debug
Definition: HDRShower.cc:19
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:32
void setBinContent(HcalDetId const &, int) override
Definition: Container2D.cc:235
void fill(HcalDetId const &) override
Definition: Container2D.cc:59
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:895
quantity::Quantity * _qz
Definition: Container2D.h:179
Readout chain identification for Hcal.