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 {
20  using namespace quantity;
22  {
23  public:
26  Quantity*, Quantity*,
28  ContainerSingle2D(std::string const& folder,
29  std::string const&,
30  Quantity*, Quantity*,
32  int debug=0);
34  virtual ~ContainerSingle2D();
35 
36  virtual void initialize(std::string const& folder,
37  Quantity*, Quantity*,
39  int debug=0);
40 
41  virtual void initialize(std::string const& folder,
42  std::string const&,
43  Quantity*, Quantity*,
45  int debug=0);
47  // booking
48  virtual void book(DQMStore::IBooker&,
49  std::string subsystem="Hcal", std::string aux="");
50  virtual void book(DQMStore*,
51  std::string subsystem="Hcal", std::string aux="");
52 
53 
54  // filling
55  virtual void fill(int, int);
56  virtual void fill(int, double);
57  virtual void fill(int, double, double);
58  virtual void fill(int, int, int);
59  virtual void fill(int, int, double);
60  virtual void fill(double, int);
61  virtual void fill(double, double);
62  virtual void fill(double, double, double);
63 
64  virtual double getBinContent(int, int);
65  virtual double getBinContent(int, double);
66  virtual double getBinContent(double, int);
67  virtual double getBinContent(double, double);
68  virtual double getBinEntries(int, int);
69  virtual double getBinEntries(int, double);
70  virtual double getBinEntries(double, int);
71  virtual double getBinEntries(double, double);
72 
73  virtual void setBinContent(int, int, int);
74  virtual void setBinContent(int, double, int);
75  virtual void setBinContent(double, int, int);
76  virtual void setBinContent(double, double, int);
77  virtual void setBinContent(int, int, double);
78  virtual void setBinContent(int, double, double);
79  virtual void setBinContent(double, int, double);
80  virtual void setBinContent(double, double, double);
81 
82  virtual void fill(HcalDetId const&);
83  virtual void fill(HcalDetId const&, int);
84  virtual void fill(HcalDetId const&, double);
85  virtual void fill(HcalDetId const&, int, int);
86  virtual void fill(HcalDetId const&, int, double);
87  virtual void fill(HcalDetId const&, double, double);
88 
89  virtual double getBinContent(HcalDetId const&);
90  virtual double getBinContent(HcalDetId const&, int);
91  virtual double getBinContent(HcalDetId const&, double);
92  virtual double getBinEntries(HcalDetId const&);
93  virtual double getBinEntries(HcalDetId const&, int);
94  virtual double getBinEntries(HcalDetId const&, double);
95 
96  virtual void setBinContent(HcalDetId const&, int);
97  virtual void setBinContent(HcalDetId const&, double);
98  virtual void setBinContent(HcalDetId const&, int, int);
99  virtual void setBinContent(HcalDetId const&, int, double);
100  virtual void setBinContent(HcalDetId const&, double, int);
101  virtual void setBinContent(HcalDetId const&, double, double);
102 
103  virtual void fill(HcalElectronicsId const&);
104  virtual void fill(HcalElectronicsId const&, int);
105  virtual void fill(HcalElectronicsId const&, double);
106  virtual void fill(HcalElectronicsId const&, int, int);
107  virtual void fill(HcalElectronicsId const&, int, double);
108  virtual void fill(HcalElectronicsId const&, double, double);
109 
110  virtual void fill(HcalDetId const&, HcalElectronicsId const&);
111  virtual void fill(HcalDetId const&, HcalElectronicsId const&,
112  double);
113 
114  virtual double getBinContent(HcalElectronicsId const&);
115  virtual double getBinContent(HcalElectronicsId const&, int);
116  virtual double getBinContent(HcalElectronicsId const&, double);
117  virtual double getBinEntries(HcalElectronicsId const&);
118  virtual double getBinEntries(HcalElectronicsId const&, int);
119  virtual double getBinEntries(HcalElectronicsId const&, double);
120 
121  virtual void setBinContent(HcalElectronicsId const&, int);
122  virtual void setBinContent(HcalElectronicsId const&, double);
123  virtual void setBinContent(HcalElectronicsId const&, int, int);
124  virtual void setBinContent(HcalElectronicsId const&, int, double);
125  virtual void setBinContent(HcalElectronicsId const&, double, int);
126  virtual void setBinContent(HcalElectronicsId const&, double, double);
127 
128  virtual void fill(HcalTrigTowerDetId const&);
129  virtual void fill(HcalTrigTowerDetId const&, int);
130  virtual void fill(HcalTrigTowerDetId const&, double);
131  virtual void fill(HcalTrigTowerDetId const&, int, int);
132  virtual void fill(HcalTrigTowerDetId const&, int, double);
133  virtual void fill(HcalTrigTowerDetId const&, double, double);
134 
135  virtual double getBinContent(HcalTrigTowerDetId const&);
136  virtual double getBinContent(HcalTrigTowerDetId const&, int);
137  virtual double getBinContent(HcalTrigTowerDetId const&, double);
138  virtual double getBinEntries(HcalTrigTowerDetId const&);
139  virtual double getBinEntries(HcalTrigTowerDetId const&, int);
140  virtual double getBinEntries(HcalTrigTowerDetId const&, double);
141 
142  virtual void setBinContent(HcalTrigTowerDetId const&, int);
143  virtual void setBinContent(HcalTrigTowerDetId const&, double);
144  virtual void setBinContent(HcalTrigTowerDetId const&, int, int);
145  virtual void setBinContent(HcalTrigTowerDetId const&, int, double);
146  virtual void setBinContent(HcalTrigTowerDetId const&, double, int);
147  virtual void setBinContent(HcalTrigTowerDetId const&, double, double);
148 
149  virtual void reset() {_me->Reset();}
150  virtual void print() {std::cout << _qname << std::endl;}
151 
152  virtual void load(DQMStore::IGetter&, std::string subsystem="Hcal",
153  std::string aux="");
154 
155  virtual void extendAxisRange(int);
156 
157  protected:
162 
163  virtual void customize();
164  };
165 }
166 
167 #endif
static AlgebraicMatrix initialize()
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:33
#define debug
Definition: HDRShower.cc:19
def load(fileName)
Definition: svgfig.py:546
Readout chain identification for Hcal.