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