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  virtual void book(DQMStore*,
48  std::string subsystem="Hcal", std::string aux="");
49 
50  // filling
51  virtual void fill(int);
52  virtual void fill(double);
53  virtual void fill(int, int);
54  virtual void fill(int, double);
55  virtual void fill(double, int);
56  virtual void fill(double, double);
57 
58  virtual double getBinContent(int) ;
59  virtual double getBinContent(double);
60  virtual double getBinEntries(int);
61  virtual double getBinEntries(double);
62 
63  virtual void setBinContent(int, int);
64  virtual void setBinContent(int, double);
65  virtual void setBinContent(double, int);
66  virtual void setBinContent(double, double);
67 
68  virtual void fill(HcalDetId const&);
69  virtual void fill(HcalDetId const&, double);
70  virtual void fill(HcalDetId const&, double, double);
71 
72  virtual double getBinContent(HcalDetId const&);
73  virtual double getBinEntries(HcalDetId const&);
74 
75  virtual void setBinContent(HcalDetId const&, int);
76  virtual void setBinContent(HcalDetId const&, double);
77 
78  virtual void fill(HcalElectronicsId const&);
79  virtual void fill(HcalElectronicsId const&, double);
80  virtual void fill(HcalElectronicsId const&, double, double);
81 
82  virtual double getBinContent(HcalElectronicsId const&);
83  virtual double getBinEntries(HcalElectronicsId const&);
84 
85  virtual void setBinContent(HcalElectronicsId const&, int);
86  virtual void setBinContent(HcalElectronicsId const&, double);
87 
88  virtual void fill(HcalTrigTowerDetId const&);
89  virtual void fill(HcalTrigTowerDetId const&, double);
90  virtual void fill(HcalTrigTowerDetId const&, double, double);
91 
92  virtual double getBinContent(HcalTrigTowerDetId const&);
93  virtual double getBinEntries(HcalTrigTowerDetId const&);
94 
95  virtual void setBinContent(HcalTrigTowerDetId const&, int);
96  virtual void setBinContent(HcalTrigTowerDetId const&, double);
97 
98  virtual void reset() {_me->Reset();}
99  virtual void print() {std::cout << _qname << std::endl;}
100 
101  virtual void extendAxisRange(int);
102 
103  virtual void showOverflowX(bool showOverflow);
104  virtual void showOverflowY(bool showOverflow);
105 
106  protected:
110 
111  virtual void customize();
112  };
113 }
114 
115 #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.