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