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 <string>
16 #include <vector>
17 
18 namespace hcaldqm {
19  class Container2D : public Container1D {
20  public:
21  Container2D();
27  ~Container2D() override;
28 
29  // Initialize Container
30  // @folder
31  // @nametitle,
32  virtual void initialize(std::string const &folder,
37  int debug = 0);
38 
39  // @qname - quantity name replacer
40  virtual void initialize(std::string const &folder,
41  std::string const &qname,
46  int debug = 0);
49  // redeclare what to override
50  void fill(HcalDetId const &) override;
51  void fill(HcalDetId const &, int) override;
52  void fill(HcalDetId const &, double) override;
53  void fill(HcalDetId const &, int, double) override;
54  void fill(HcalDetId const &, int, int) override;
55  void fill(HcalDetId const &, double, double) override;
56 
57  double getBinEntries(HcalDetId const &) override;
58  double getBinEntries(HcalDetId const &, int) override;
59  double getBinEntries(HcalDetId const &, double) override;
60  double getBinEntries(HcalDetId const &, int, int) override;
61  double getBinEntries(HcalDetId const &, int, double) override;
62  double getBinEntries(HcalDetId const &, double, double) override;
63 
64  double getBinContent(HcalDetId const &) override;
65  double getBinContent(HcalDetId const &, int) override;
66  double getBinContent(HcalDetId const &, double) override;
67  double getBinContent(HcalDetId const &, int, int) override;
68  double getBinContent(HcalDetId const &, int, double) override;
69  double getBinContent(HcalDetId const &, double, double) override;
70 
71  void setBinContent(HcalDetId const &, int) override;
72  void setBinContent(HcalDetId const &, double) override;
73  void setBinContent(HcalDetId const &, int, int) override;
74  void setBinContent(HcalDetId const &, int, double) override;
75  void setBinContent(HcalDetId const &, double, int) override;
76  void setBinContent(HcalDetId const &, double, double) override;
77  void setBinContent(HcalDetId const &, int, int, int) override;
78  void setBinContent(HcalDetId const &, int, double, int) override;
79  void setBinContent(HcalDetId const &, double, int, int) override;
80  void setBinContent(HcalDetId const &, double, double, int) override;
81  void setBinContent(HcalDetId const &, int, int, double) override;
82  void setBinContent(HcalDetId const &, int, double, double) override;
83  void setBinContent(HcalDetId const &, double, int, double) override;
84  void setBinContent(HcalDetId const &, double, double, double) override;
85 
86  void fill(HcalElectronicsId const &) override;
87  void fill(HcalElectronicsId const &, int) override;
88  void fill(HcalElectronicsId const &, double) override;
89  void fill(HcalElectronicsId const &, int, double) override;
90  void fill(HcalElectronicsId const &, int, int) override;
91  void fill(HcalElectronicsId const &, double, double) override;
92 
93  double getBinEntries(HcalElectronicsId const &) override;
94  double getBinEntries(HcalElectronicsId const &, int) override;
95  double getBinEntries(HcalElectronicsId const &, double) override;
96  double getBinEntries(HcalElectronicsId const &, int, int) override;
97  double getBinEntries(HcalElectronicsId const &, int, double) override;
98  double getBinEntries(HcalElectronicsId const &, double, double) override;
99 
100  double getBinContent(HcalElectronicsId const &) override;
101  double getBinContent(HcalElectronicsId const &, int) override;
102  double getBinContent(HcalElectronicsId const &, double) override;
103  double getBinContent(HcalElectronicsId const &, int, int) override;
104  double getBinContent(HcalElectronicsId const &, int, double) override;
105  double getBinContent(HcalElectronicsId const &, double, double) override;
106 
107  void setBinContent(HcalElectronicsId const &, int) override;
108  void setBinContent(HcalElectronicsId const &, double) override;
109  void setBinContent(HcalElectronicsId const &, int, int) override;
110  void setBinContent(HcalElectronicsId const &, int, double) override;
111  void setBinContent(HcalElectronicsId const &, double, int) override;
112  void setBinContent(HcalElectronicsId const &, double, double) override;
113  void setBinContent(HcalElectronicsId const &, int, int, int) override;
114  void setBinContent(HcalElectronicsId const &, int, double, int) override;
115  void setBinContent(HcalElectronicsId const &, double, int, int) override;
116  void setBinContent(HcalElectronicsId const &, double, double, int) override;
117  void setBinContent(HcalElectronicsId const &, int, int, double) override;
118  void setBinContent(HcalElectronicsId const &, int, double, double) override;
119  void setBinContent(HcalElectronicsId const &, double, int, double) override;
120  void setBinContent(HcalElectronicsId const &, double, double, 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  void fill(HcalTrigTowerDetId const &, HcalElectronicsId const &, int, int);
130 
131  double getBinEntries(HcalTrigTowerDetId const &) override;
132  double getBinEntries(HcalTrigTowerDetId const &, int) override;
133  double getBinEntries(HcalTrigTowerDetId const &, double) override;
134  double getBinEntries(HcalTrigTowerDetId const &, int, int) override;
135  double getBinEntries(HcalTrigTowerDetId const &, int, double) override;
136  double getBinEntries(HcalTrigTowerDetId const &, 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 &, double, double) override;
144 
145  void setBinContent(HcalTrigTowerDetId const &, int) override;
146  void setBinContent(HcalTrigTowerDetId const &, double) override;
147  void setBinContent(HcalTrigTowerDetId const &, int, int) override;
148  void setBinContent(HcalTrigTowerDetId const &, int, double) override;
149  void setBinContent(HcalTrigTowerDetId const &, double, int) override;
150  void setBinContent(HcalTrigTowerDetId const &, double, double) override;
151  void setBinContent(HcalTrigTowerDetId const &, int, int, int) override;
152  void setBinContent(HcalTrigTowerDetId const &, int, double, int) override;
153  void setBinContent(HcalTrigTowerDetId const &, double, int, int) override;
154  void setBinContent(HcalTrigTowerDetId const &, double, double, int) override;
155  void setBinContent(HcalTrigTowerDetId const &, int, int, double) override;
156  void setBinContent(HcalTrigTowerDetId const &, int, double, double) override;
157  void setBinContent(HcalTrigTowerDetId const &, double, int, double) override;
158  void setBinContent(HcalTrigTowerDetId const &, double, double, double) override;
159 
160  // booking. see Container1D.h
161  void book(DQMStore::IBooker &,
162  HcalElectronicsMap const *,
163  std::string subsystem = "Hcal",
164  std::string aux = "") override;
165  void book(DQMStore::IBooker &,
166  HcalElectronicsMap const *,
167  filter::HashFilter const &,
168  std::string subsystem = "Hcal",
169  std::string aux = "") override;
170 
171  void showOverflowZ(bool showOverflow);
172 
173  protected:
175 
176  void customize(MonitorElement *) override;
177 
178  private:
179  using Container1D::fill;
180  };
181 } // namespace hcaldqm
182 
183 #endif
hcal_dqm_sourceclient-live_cfg.subsystem
subsystem
Definition: hcal_dqm_sourceclient-live_cfg.py:16
hcaldqm::Container2D::Container2D
Container2D()
Definition: Container2D.cc:9
hcaldqm::Container2D::initialize
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:25
hcaldqm::hashfunctions::HashType
HashType
Definition: HashFunctions.h:131
printsummarytable.folder
folder
Definition: printsummarytable.py:7
hcaldqm::quantity::ValueQuantity
Definition: ValueQuantity.h:319
Container1D.h
hcaldqm
Definition: Constants.h:8
hcaldqm::Container2D::customize
void customize(MonitorElement *) override
Definition: Container2D.cc:792
hcaldqm::Container::initialize
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:30
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
debug
#define debug
Definition: HDRShower.cc:19
hcaldqm::Container2D::~Container2D
~Container2D() override
Definition: Container2D.cc:19
hcaldqm::Container2D::getBinContent
double getBinContent(HcalDetId const &) override
Definition: Container2D.cc:132
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
hcaldqm::Container2D::setBinContent
void setBinContent(HcalDetId const &, int) override
Definition: Container2D.cc:163
hcaldqm::quantity::fN
Definition: ValueQuantity.h:11
hcaldqm::filter::HashFilter
Definition: HashFilter.h:21
hcaldqm::Container1D
Definition: Container1D.h:25
hcaldqm::Container2D::book
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:567
hcaldqm::Container2D::fill
void fill(HcalDetId const &) override
Definition: Container2D.cc:52
hcaldqm::Container1D::fill
virtual void fill(uint32_t)
Definition: Container1D.cc:73
printConversionInfo.aux
aux
Definition: printConversionInfo.py:19
HcalDetId
Definition: HcalDetId.h:12
hcaldqm::quantity::Quantity
Definition: Quantity.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
hcaldqm::Container2D::getBinEntries
double getBinEntries(HcalDetId const &) override
Definition: Container2D.cc:102
hcaldqm::Container2D::_qz
quantity::Quantity * _qz
Definition: Container2D.h:174
dqm::implementation::IBooker
Definition: DQMStore.h:43
hcaldqm::Container1D::initialize
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:33
hcaldqm::Container2D::showOverflowZ
void showOverflowZ(bool showOverflow)
Definition: Container2D.cc:812
hcaldqm::Container2D
Definition: Container2D.h:19
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14