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:
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
hcal_dqm_sourceclient-live_cfg.subsystem
subsystem
Definition: hcal_dqm_sourceclient-live_cfg.py:16
hcaldqm::ContainerSingle2D::_qy
quantity::Quantity * _qy
Definition: ContainerSingle2D.h:157
hcaldqm::ContainerSingle2D::showOverflowZ
void showOverflowZ(bool showOverflow)
Definition: ContainerSingle2D.cc:536
Container.h
printsummarytable.folder
folder
Definition: printsummarytable.py:7
hcaldqm::quantity::ValueQuantity
Definition: ValueQuantity.h:309
hcaldqm
Definition: Constants.h:8
gather_cfg.cout
cout
Definition: gather_cfg.py:144
hcaldqm::ContainerSingle2D::_me
MonitorElement * _me
Definition: ContainerSingle2D.h:155
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
hcaldqm::ContainerSingle2D
Definition: ContainerSingle2D.h:20
hcaldqm::Container
Definition: Container.h:21
hcaldqm::ContainerSingle2D::reset
virtual void reset()
Definition: ContainerSingle2D.h:145
ValueQuantity.h
hcaldqm::ContainerSingle2D::fill
virtual void fill(int, int)
Definition: ContainerSingle2D.cc:105
hcaldqm::ContainerSingle2D::load
virtual void load(DQMStore::IGetter &, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerSingle2D.cc:81
debug
#define debug
Definition: HDRShower.cc:19
hcaldqm::ContainerSingle2D::~ContainerSingle2D
~ContainerSingle2D() override
Definition: ContainerSingle2D.cc:34
hcaldqm::ContainerSingle2D::getBinContent
virtual double getBinContent(int, int)
Definition: ContainerSingle2D.cc:129
dqm::impl::MonitorElement::Reset
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
Definition: MonitorElement.cc:354
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hcaldqm::quantity::fN
Definition: ValueQuantity.h:11
hcaldqm::ContainerSingle2D::customize
virtual void customize()
Definition: ContainerSingle2D.cc:85
hcaldqm::ContainerSingle2D::getBinEntries
virtual double getBinEntries(int, int)
Definition: ContainerSingle2D.cc:141
hcaldqm::ContainerSingle2D::_qz
quantity::Quantity * _qz
Definition: ContainerSingle2D.h:158
hcaldqm::ContainerSingle2D::ContainerSingle2D
ContainerSingle2D()
Definition: ContainerSingle2D.cc:7
printConversionInfo.aux
aux
Definition: printConversionInfo.py:19
HcalDetId
Definition: HcalDetId.h:12
hcaldqm::ContainerSingle2D::print
virtual void print()
Definition: ContainerSingle2D.h:146
hcaldqm::quantity::Quantity
Definition: Quantity.h:27
Quantity.h
hcaldqm::ContainerSingle2D::extendAxisRange
virtual void extendAxisRange(int)
Definition: ContainerSingle2D.cc:524
dqm::implementation::IGetter
Definition: DQMStore.h:484
hcaldqm::ContainerSingle2D::setBinContent
virtual void setBinContent(int, int, int)
Definition: ContainerSingle2D.cc:154
hcaldqm::ContainerSingle2D::book
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerSingle2D.cc:68
dqm::implementation::IBooker
Definition: DQMStore.h:43
hcaldqm::ContainerSingle2D::initialize
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: ContainerSingle2D.cc:46
hcaldqm::ContainerSingle2D::_qx
quantity::Quantity * _qx
Definition: ContainerSingle2D.h:156
hcaldqm::Container::_qname
std::string _qname
Definition: Container.h:38
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14