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 initialization
10  */
11 
14 
15 #include <string>
16 
17 namespace hcaldqm
18 {
20  {
21  public:
26  ContainerSingle1D(std::string const& folder,
27  std::string const&,
31  ~ContainerSingle1D() override;
32 
33  virtual void initialize(std::string const& folder,
36  int debug=0);
37 
38  virtual void initialize(std::string const& folder,
39  std::string const&,
42  int debug=0);
44  // booking
45  virtual void book(DQMStore::IBooker&,
46  std::string subsystem="Hcal", std::string aux="");
47  // filling
48  virtual void fill(int);
49  virtual void fill(double);
50  virtual void fill(int, int);
51  virtual void fill(int, double);
52  virtual void fill(double, int);
53  virtual void fill(double, double);
54 
55  virtual double getBinContent(int) ;
56  virtual double getBinContent(double);
57  virtual double getBinEntries(int);
58  virtual double getBinEntries(double);
59 
60  virtual void setBinContent(int, int);
61  virtual void setBinContent(int, double);
62  virtual void setBinContent(double, int);
63  virtual void setBinContent(double, double);
64 
65  virtual void fill(HcalDetId const&);
66  virtual void fill(HcalDetId const&, double);
67  virtual void fill(HcalDetId const&, double, double);
68 
69  virtual double getBinContent(HcalDetId const&);
70  virtual double getBinEntries(HcalDetId const&);
71 
72  virtual void setBinContent(HcalDetId const&, int);
73  virtual void setBinContent(HcalDetId const&, double);
74 
75  virtual void fill(HcalElectronicsId const&);
76  virtual void fill(HcalElectronicsId const&, double);
77  virtual void fill(HcalElectronicsId const&, double, double);
78 
79  virtual double getBinContent(HcalElectronicsId const&);
80  virtual double getBinEntries(HcalElectronicsId const&);
81 
82  virtual void setBinContent(HcalElectronicsId const&, int);
83  virtual void setBinContent(HcalElectronicsId const&, double);
84 
85  virtual void fill(HcalTrigTowerDetId const&);
86  virtual void fill(HcalTrigTowerDetId const&, double);
87  virtual void fill(HcalTrigTowerDetId const&, double, double);
88 
89  virtual double getBinContent(HcalTrigTowerDetId const&);
90  virtual double getBinEntries(HcalTrigTowerDetId const&);
91 
92  virtual void setBinContent(HcalTrigTowerDetId const&, int);
93  virtual void setBinContent(HcalTrigTowerDetId const&, double);
94 
95  virtual void reset() {_me->Reset();}
96  virtual void print() {std::cout << _qname << std::endl;}
97 
98  virtual void extendAxisRange(int);
99 
100  virtual void showOverflowX(bool showOverflow);
101  virtual void showOverflowY(bool showOverflow);
102 
103  protected:
107 
108  virtual void customize();
109  };
110 }
111 
112 #endif
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:33
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 initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
virtual void showOverflowX(bool showOverflow)
void Reset()
reset ME (ie. contents, errors, etc)
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:43
Readout chain identification for Hcal.