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
10  * initialization
11  */
12 
16 
17 #include <string>
18 
19 namespace hcaldqm {
20  class ContainerSingle2D : public Container {
21  public:
27  ContainerSingle2D(std::string const &folder,
28  std::string const &,
32  int debug = 0);
34  ~ContainerSingle2D() override;
35 
36  virtual void initialize(std::string const &folder,
40  int debug = 0);
41 
42  virtual void initialize(std::string const &folder,
43  std::string const &,
47  int debug = 0);
49  // booking
50  virtual void book(DQMStore::IBooker &, std::string subsystem = "Hcal", std::string aux = "");
51  // filling
52  virtual void fill(int, int);
53  virtual void fill(int, double);
54  virtual void fill(int, double, double);
55  virtual void fill(int, int, int);
56  virtual void fill(int, int, double);
57  virtual void fill(double, int);
58  virtual void fill(double, double);
59  virtual void fill(double, double, double);
60 
61  virtual double getBinContent(int, int);
62  virtual double getBinContent(int, double);
63  virtual double getBinContent(double, int);
64  virtual double getBinContent(double, double);
65  virtual double getBinEntries(int, int);
66  virtual double getBinEntries(int, double);
67  virtual double getBinEntries(double, int);
68  virtual double getBinEntries(double, double);
69 
70  virtual void setBinContent(int, int, int);
71  virtual void setBinContent(int, double, int);
72  virtual void setBinContent(double, int, int);
73  virtual void setBinContent(double, double, int);
74  virtual void setBinContent(int, int, double);
75  virtual void setBinContent(int, double, double);
76  virtual void setBinContent(double, int, double);
77  virtual void setBinContent(double, double, double);
78 
79  virtual void fill(HcalDetId const &);
80  virtual void fill(HcalDetId const &, int);
81  virtual void fill(HcalDetId const &, double);
82  virtual void fill(HcalDetId const &, int, int);
83  virtual void fill(HcalDetId const &, int, double);
84  virtual void fill(HcalDetId const &, double, double);
85 
86  virtual double getBinContent(HcalDetId const &);
87  virtual double getBinContent(HcalDetId const &, int);
88  virtual double getBinContent(HcalDetId const &, double);
89  virtual double getBinEntries(HcalDetId const &);
90  virtual double getBinEntries(HcalDetId const &, int);
91  virtual double getBinEntries(HcalDetId const &, double);
92 
93  virtual void setBinContent(HcalDetId const &, int);
94  virtual void setBinContent(HcalDetId const &, double);
95  virtual void setBinContent(HcalDetId const &, int, int);
96  virtual void setBinContent(HcalDetId const &, int, double);
97  virtual void setBinContent(HcalDetId const &, double, int);
98  virtual void setBinContent(HcalDetId const &, double, double);
99 
100  virtual void fill(HcalElectronicsId const &);
101  virtual void fill(HcalElectronicsId const &, int);
102  virtual void fill(HcalElectronicsId const &, double);
103  virtual void fill(HcalElectronicsId const &, int, int);
104  virtual void fill(HcalElectronicsId const &, int, double);
105  virtual void fill(HcalElectronicsId const &, double, double);
106 
107  virtual void fill(HcalDetId const &, HcalElectronicsId const &);
108  virtual void fill(HcalDetId const &, HcalElectronicsId const &, double);
109 
110  virtual double getBinContent(HcalElectronicsId const &);
111  virtual double getBinContent(HcalElectronicsId const &, int);
112  virtual double getBinContent(HcalElectronicsId const &, double);
113  virtual double getBinEntries(HcalElectronicsId const &);
114  virtual double getBinEntries(HcalElectronicsId const &, int);
115  virtual double getBinEntries(HcalElectronicsId const &, double);
116 
117  virtual void setBinContent(HcalElectronicsId const &, int);
118  virtual void setBinContent(HcalElectronicsId const &, double);
119  virtual void setBinContent(HcalElectronicsId const &, int, int);
120  virtual void setBinContent(HcalElectronicsId const &, int, double);
121  virtual void setBinContent(HcalElectronicsId const &, double, int);
122  virtual void setBinContent(HcalElectronicsId const &, double, double);
123 
124  virtual void fill(HcalTrigTowerDetId const &);
125  virtual void fill(HcalTrigTowerDetId const &, int);
126  virtual void fill(HcalTrigTowerDetId const &, double);
127  virtual void fill(HcalTrigTowerDetId const &, int, int);
128  virtual void fill(HcalTrigTowerDetId const &, int, double);
129  virtual void fill(HcalTrigTowerDetId const &, double, double);
130 
131  virtual double getBinContent(HcalTrigTowerDetId const &);
132  virtual double getBinContent(HcalTrigTowerDetId const &, int);
133  virtual double getBinContent(HcalTrigTowerDetId const &, double);
134  virtual double getBinEntries(HcalTrigTowerDetId const &);
135  virtual double getBinEntries(HcalTrigTowerDetId const &, int);
136  virtual double getBinEntries(HcalTrigTowerDetId const &, double);
137 
138  virtual void setBinContent(HcalTrigTowerDetId const &, int);
139  virtual void setBinContent(HcalTrigTowerDetId const &, double);
140  virtual void setBinContent(HcalTrigTowerDetId const &, int, int);
141  virtual void setBinContent(HcalTrigTowerDetId const &, int, double);
142  virtual void setBinContent(HcalTrigTowerDetId const &, double, int);
143  virtual void setBinContent(HcalTrigTowerDetId const &, double, double);
144 
145  virtual void reset() { _me->Reset(); }
146  virtual void print() { std::cout << _qname << std::endl; }
147 
148  virtual void load(DQMStore::IGetter &, std::string subsystem = "Hcal", 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 } // namespace hcaldqm
163 
164 #endif
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:27
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:35
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