CMS 3D CMS Logo

ContainerSingle1D.h
Go to the documentation of this file.
1 #ifndef ContainerSingle1D_h
2 #define ContainerSingle1D_h
3 
4 /*
5  * file: ContainerSignle1D.h
6  * Author: Viktor Khristenko
7  *
8  * Description:
9  * Container to hold a single ME - for convenience of
10  * initialization
11  */
12 
15 
16 #include <string>
17 
18 namespace hcaldqm {
19  class ContainerSingle1D : public Container {
20  public:
26  std::string const &,
30  ~ContainerSingle1D() override;
31 
32  virtual void initialize(std::string const &folder,
35  int debug = 0);
36 
37  virtual void initialize(std::string const &folder,
38  std::string const &,
41  int debug = 0);
43  // booking
44  virtual void book(DQMStore::IBooker &, std::string subsystem = "Hcal", std::string aux = "");
45  // filling
46  virtual void fill(int);
47  virtual void fill(double);
48  virtual void fill(int, int);
49  virtual void fill(int, double);
50  virtual void fill(double, int);
51  virtual void fill(double, double);
52 
53  virtual double getBinContent(int);
54  virtual double getBinContent(double);
55  virtual double getBinEntries(int);
56  virtual double getBinEntries(double);
57 
58  virtual void setBinContent(int, int);
59  virtual void setBinContent(int, double);
60  virtual void setBinContent(double, int);
61  virtual void setBinContent(double, double);
62 
63  virtual void fill(HcalDetId const &);
64  virtual void fill(HcalDetId const &, double);
65  virtual void fill(HcalDetId const &, double, double);
66 
67  virtual double getBinContent(HcalDetId const &);
68  virtual double getBinEntries(HcalDetId const &);
69 
70  virtual void setBinContent(HcalDetId const &, int);
71  virtual void setBinContent(HcalDetId const &, double);
72 
73  virtual void fill(HcalElectronicsId const &);
74  virtual void fill(HcalElectronicsId const &, double);
75  virtual void fill(HcalElectronicsId const &, double, double);
76 
77  virtual double getBinContent(HcalElectronicsId const &);
78  virtual double getBinEntries(HcalElectronicsId const &);
79 
80  virtual void setBinContent(HcalElectronicsId const &, int);
81  virtual void setBinContent(HcalElectronicsId const &, double);
82 
83  virtual void fill(HcalTrigTowerDetId const &);
84  virtual void fill(HcalTrigTowerDetId const &, double);
85  virtual void fill(HcalTrigTowerDetId const &, double, double);
86 
87  virtual double getBinContent(HcalTrigTowerDetId const &);
88  virtual double getBinEntries(HcalTrigTowerDetId const &);
89 
90  virtual void setBinContent(HcalTrigTowerDetId const &, int);
91  virtual void setBinContent(HcalTrigTowerDetId const &, double);
92 
93  virtual void reset() { _me->Reset(); }
94  virtual void print() { std::cout << _qname << std::endl; }
95 
96  virtual void extendAxisRange(int);
97 
98  virtual void showOverflowX(bool showOverflow);
99  virtual void showOverflowY(bool showOverflow);
100 
101  protected:
105 
106  virtual void customize();
107  };
108 } // namespace hcaldqm
109 
110 #endif
hcal_dqm_sourceclient-live_cfg.subsystem
subsystem
Definition: hcal_dqm_sourceclient-live_cfg.py:16
hcaldqm::ContainerSingle1D::showOverflowX
virtual void showOverflowX(bool showOverflow)
Definition: ContainerSingle1D.cc:203
Container.h
hcaldqm::ContainerSingle1D::showOverflowY
virtual void showOverflowY(bool showOverflow)
Definition: ContainerSingle1D.cc:205
hcaldqm::ContainerSingle1D::print
virtual void print()
Definition: ContainerSingle1D.h:94
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::Container::initialize
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:30
hcaldqm::ContainerSingle1D::reset
virtual void reset()
Definition: ContainerSingle1D.h:93
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
hcaldqm::ContainerSingle1D::getBinContent
virtual double getBinContent(int)
Definition: ContainerSingle1D.cc:92
hcaldqm::ContainerSingle1D::getBinEntries
virtual double getBinEntries(int)
Definition: ContainerSingle1D.cc:94
hcaldqm::Container
Definition: Container.h:21
ValueQuantity.h
debug
#define debug
Definition: HDRShower.cc:19
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
hcaldqm::ContainerSingle1D::_qx
quantity::Quantity * _qx
Definition: ContainerSingle1D.h:103
hcaldqm::ContainerSingle1D::~ContainerSingle1D
~ContainerSingle1D() override
Definition: ContainerSingle1D.cc:28
hcaldqm::ContainerSingle1D::customize
virtual void customize()
Definition: ContainerSingle1D.cc:67
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hcaldqm::quantity::fN
Definition: ValueQuantity.h:11
hcaldqm::ContainerSingle1D::extendAxisRange
virtual void extendAxisRange(int)
Definition: ContainerSingle1D.cc:191
printConversionInfo.aux
aux
Definition: printConversionInfo.py:19
HcalDetId
Definition: HcalDetId.h:12
hcaldqm::ContainerSingle1D::fill
virtual void fill(int)
Definition: ContainerSingle1D.cc:80
hcaldqm::ContainerSingle1D::book
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerSingle1D.cc:57
hcaldqm::quantity::Quantity
Definition: Quantity.h:27
hcaldqm::ContainerSingle1D::setBinContent
virtual void setBinContent(int, int)
Definition: ContainerSingle1D.cc:96
hcaldqm::ContainerSingle1D::_qy
quantity::Quantity * _qy
Definition: ContainerSingle1D.h:104
hcaldqm::ContainerSingle1D::_me
MonitorElement * _me
Definition: ContainerSingle1D.h:102
dqm::implementation::IBooker
Definition: DQMStore.h:43
hcaldqm::ContainerSingle1D::initialize
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: ContainerSingle1D.cc:37
hcaldqm::ContainerSingle1D
Definition: ContainerSingle1D.h:19
hcaldqm::ContainerSingle1D::ContainerSingle1D
ContainerSingle1D()
Definition: ContainerSingle1D.cc:6
hcaldqm::Container::_qname
std::string _qname
Definition: Container.h:38
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14