CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual ~Container2D();
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  virtual void fill(HcalDetId const&) override ;
47  virtual void fill(HcalDetId const&, int) override;
48  virtual void fill(HcalDetId const&, double) override;
49  virtual void fill(HcalDetId const&, int, double) override;
50  virtual void fill(HcalDetId const&, int, int) override;
51  virtual void fill(HcalDetId const&, double, double) override;
52 
53  virtual double getBinEntries(HcalDetId const&) override;
54  virtual double getBinEntries(HcalDetId const&, int) override;
55  virtual double getBinEntries(HcalDetId const&, double) override;
56  virtual double getBinEntries(HcalDetId const&, int, int) override;
57  virtual double getBinEntries(HcalDetId const&, int, double) override;
58  virtual double getBinEntries(HcalDetId const&, double, double) override;
59 
60  virtual double getBinContent(HcalDetId const&) override;
61  virtual double getBinContent(HcalDetId const&, int) override;
62  virtual double getBinContent(HcalDetId const&, double) override;
63  virtual double getBinContent(HcalDetId const&, int, int) override;
64  virtual double getBinContent(HcalDetId const&, int, double) override;
65  virtual double getBinContent(HcalDetId const&, double, double) override;
66 
67  virtual void setBinContent(HcalDetId const&, int) override;
68  virtual void setBinContent(HcalDetId const&, double) override;
69  virtual void setBinContent(HcalDetId const&, int, int) override;
70  virtual void setBinContent(HcalDetId const&, int, double) override;
71  virtual void setBinContent(HcalDetId const&, double, int) override;
72  virtual void setBinContent(HcalDetId const&, double, double) override;
73  virtual void setBinContent(HcalDetId const&, int, int, int) override;
74  virtual void setBinContent(HcalDetId const&, int, double, int) override;
75  virtual void setBinContent(HcalDetId const&, double, int, int) override;
76  virtual void setBinContent(HcalDetId const&, double, double, int) override;
77  virtual void setBinContent(HcalDetId const&, int, int, double) override;
78  virtual void setBinContent(HcalDetId const&, int, double, double) override;
79  virtual void setBinContent(HcalDetId const&, double, int, double) override;
80  virtual void setBinContent(HcalDetId const&, double, double,
81  double) override;
82 
83  virtual void fill(HcalElectronicsId const&) override;
84  virtual void fill(HcalElectronicsId const&, int) override;
85  virtual void fill(HcalElectronicsId const&, double) override;
86  virtual void fill(HcalElectronicsId const&, int, double) override;
87  virtual void fill(HcalElectronicsId const&, int, int) override;
88  virtual void fill(HcalElectronicsId const&, double, double) override;
89 
90  virtual double getBinEntries(HcalElectronicsId const&) override;
91  virtual double getBinEntries(HcalElectronicsId const&, int) override;
92  virtual double getBinEntries(HcalElectronicsId const&, double) override;
93  virtual double getBinEntries(HcalElectronicsId const&, int, int) override;
94  virtual double getBinEntries(HcalElectronicsId const&, int, double) override;
95  virtual double getBinEntries(HcalElectronicsId const&, double,
96  double) override;
97 
98  virtual double getBinContent(HcalElectronicsId const&) override;
99  virtual double getBinContent(HcalElectronicsId const&, int) override;
100  virtual double getBinContent(HcalElectronicsId const&, double) override;
101  virtual double getBinContent(HcalElectronicsId const&, int, int) override;
102  virtual double getBinContent(HcalElectronicsId const&, int, double) override;
103  virtual double getBinContent(HcalElectronicsId const&, double,
104  double) override;
105 
106  virtual void setBinContent(HcalElectronicsId const&, int) override;
107  virtual void setBinContent(HcalElectronicsId const&, double) override;
108  virtual void setBinContent(HcalElectronicsId const&, int, int) override;
109  virtual void setBinContent(HcalElectronicsId const&, int, double) override;
110  virtual void setBinContent(HcalElectronicsId const&, double, int) override;
111  virtual void setBinContent(HcalElectronicsId const&, double, double) override;
112  virtual void setBinContent(HcalElectronicsId const&, int, int, int) override;
113  virtual void setBinContent(HcalElectronicsId const&, int, double, int) override;
114  virtual void setBinContent(HcalElectronicsId const&, double, int, int) override;
115  virtual void setBinContent(HcalElectronicsId const&, double, double, int) override;
116  virtual void setBinContent(HcalElectronicsId const&, int, int, double) override;
117  virtual void setBinContent(HcalElectronicsId const&, int, double, double) override;
118  virtual void setBinContent(HcalElectronicsId const&, double, int, double) override;
119  virtual void setBinContent(HcalElectronicsId const&, double, double,
120  double) override;
121 
122  virtual void fill(HcalTrigTowerDetId const&) override;
123  virtual void fill(HcalTrigTowerDetId const&, int) override;
124  virtual void fill(HcalTrigTowerDetId const&, double) override;
125  virtual void fill(HcalTrigTowerDetId const&, int, int) override;
126  virtual void fill(HcalTrigTowerDetId const&, int, double) override;
127  virtual void fill(HcalTrigTowerDetId const&, double, double) override;
128 
129  virtual double getBinEntries(HcalTrigTowerDetId const&) override;
130  virtual double getBinEntries(HcalTrigTowerDetId const&, int) override;
131  virtual double getBinEntries(HcalTrigTowerDetId const&, double) override;
132  virtual double getBinEntries(HcalTrigTowerDetId const&, int, int) override;
133  virtual double getBinEntries(HcalTrigTowerDetId const&, int,
134  double) override;
135  virtual double getBinEntries(HcalTrigTowerDetId const&,
136  double, double) override;
137 
138  virtual double getBinContent(HcalTrigTowerDetId const&) override;
139  virtual double getBinContent(HcalTrigTowerDetId const&, int) override;
140  virtual double getBinContent(HcalTrigTowerDetId const&, double) override;
141  virtual double getBinContent(HcalTrigTowerDetId const&, int, int) override;
142  virtual double getBinContent(HcalTrigTowerDetId const&, int, double) override;
143  virtual double getBinContent(HcalTrigTowerDetId const&,
144  double, double) override;
145 
146  virtual void setBinContent(HcalTrigTowerDetId const&, int) override;
147  virtual void setBinContent(HcalTrigTowerDetId const&, double) override;
148  virtual void setBinContent(HcalTrigTowerDetId const&, int, int) override;
149  virtual void setBinContent(HcalTrigTowerDetId const&, int, double) override;
150  virtual void setBinContent(HcalTrigTowerDetId const&, double, int) override;
151  virtual void setBinContent(HcalTrigTowerDetId const&, double, double) override;
152  virtual void setBinContent(HcalTrigTowerDetId const&, int, int, int) override;
153  virtual void setBinContent(HcalTrigTowerDetId const&, int, double, int) override;
154  virtual void setBinContent(HcalTrigTowerDetId const&, double, int, int) override;
155  virtual void setBinContent(HcalTrigTowerDetId const&, double, double, int) override;
156  virtual void setBinContent(HcalTrigTowerDetId const&, int, int, double) override;
157  virtual void setBinContent(HcalTrigTowerDetId const&, int, double, double) override;
158  virtual void setBinContent(HcalTrigTowerDetId const&, double, int, double) override;
159  virtual void setBinContent(HcalTrigTowerDetId const&, double, double,
160  double) override;
161 
162  // booking. see Container1D.h
163  virtual void book(DQMStore::IBooker&,
164  HcalElectronicsMap const*,
165  std::string subsystem="Hcal", std::string aux="") override;
166  virtual void book(DQMStore::IBooker&,
167  HcalElectronicsMap const*, filter::HashFilter const&,
168  std::string subsystem="Hcal", std::string aux="") override;
169  virtual void book(DQMStore*,
170  HcalElectronicsMap const*,
171  std::string subsystem="Hcal", std::string aux="") override;
172  virtual void book(DQMStore*,
173  HcalElectronicsMap const*, filter::HashFilter const&,
174  std::string subsystem="Hcal", std::string aux="") override;
175 
176  protected:
178 
179  virtual void customize(MonitorElement*) override;
180  };
181 }
182 
183 
184 #endif
185 
186 
187 
188 
189 
190 
191 
192 
virtual void customize(MonitorElement *) override
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:40
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:33
virtual double getBinEntries(HcalDetId const &) override
Definition: Container2D.cc:134
virtual ~Container2D()
Definition: Container2D.cc:25
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:32
virtual double getBinContent(HcalDetId const &) override
Definition: Container2D.cc:184
#define debug
Definition: HDRShower.cc:19
virtual void setBinContent(HcalDetId const &, int) override
Definition: Container2D.cc:235
virtual void fill(HcalDetId const &) override
Definition: Container2D.cc:59
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:895
Readout chain identification for Hcal.
tuple folder
Histograms Source for live online DQM in P5