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
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:30
quantity::Quantity * _qx
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
virtual void setBinContent(int, int)
quantity::Quantity * _qy
virtual void extendAxisRange(int)
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
virtual void showOverflowX(bool showOverflow)
virtual double getBinContent(int)
#define debug
Definition: HDRShower.cc:19
virtual void showOverflowY(bool showOverflow)
virtual double getBinEntries(int)
std::string _qname
Definition: Container.h:38
Readout chain identification for Hcal.