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 {
19  using namespace quantity;
21  {
22  public:
25  Quantity*,
27  ContainerSingle1D(std::string const& folder,
28  std::string const&,
29  Quantity*,
32  virtual ~ContainerSingle1D();
33 
34  virtual void initialize(std::string const& folder,
35  Quantity*,
37  int debug=0);
38 
39  virtual void initialize(std::string const& folder,
40  std::string const&,
41  Quantity*,
43  int debug=0);
45  // booking
46  virtual void book(DQMStore::IBooker&,
47  std::string subsystem="Hcal", std::string aux="");
48  virtual void book(DQMStore*,
49  std::string subsystem="Hcal", std::string aux="");
50 
51  // filling
52  virtual void fill(int);
53  virtual void fill(double);
54  virtual void fill(int, int);
55  virtual void fill(int, double);
56  virtual void fill(double, int);
57  virtual void fill(double, double);
58 
59  virtual double getBinContent(int) ;
60  virtual double getBinContent(double);
61  virtual double getBinEntries(int);
62  virtual double getBinEntries(double);
63 
64  virtual void setBinContent(int, int);
65  virtual void setBinContent(int, double);
66  virtual void setBinContent(double, int);
67  virtual void setBinContent(double, double);
68 
69  virtual void fill(HcalDetId const&);
70  virtual void fill(HcalDetId const&, double);
71  virtual void fill(HcalDetId const&, double, double);
72 
73  virtual double getBinContent(HcalDetId const&);
74  virtual double getBinEntries(HcalDetId const&);
75 
76  virtual void setBinContent(HcalDetId const&, int);
77  virtual void setBinContent(HcalDetId const&, double);
78 
79  virtual void fill(HcalElectronicsId const&);
80  virtual void fill(HcalElectronicsId const&, double);
81  virtual void fill(HcalElectronicsId const&, double, double);
82 
83  virtual double getBinContent(HcalElectronicsId const&);
84  virtual double getBinEntries(HcalElectronicsId const&);
85 
86  virtual void setBinContent(HcalElectronicsId const&, int);
87  virtual void setBinContent(HcalElectronicsId const&, double);
88 
89  virtual void fill(HcalTrigTowerDetId const&);
90  virtual void fill(HcalTrigTowerDetId const&, double);
91  virtual void fill(HcalTrigTowerDetId const&, double, double);
92 
93  virtual double getBinContent(HcalTrigTowerDetId const&);
94  virtual double getBinEntries(HcalTrigTowerDetId const&);
95 
96  virtual void setBinContent(HcalTrigTowerDetId const&, int);
97  virtual void setBinContent(HcalTrigTowerDetId const&, double);
98 
99  virtual void reset() {_me->Reset();}
100  virtual void print() {std::cout << _qname << std::endl;}
101 
102  virtual void extendAxisRange(int);
103 
104  protected:
108 
109  virtual void customize();
110  };
111 }
112 
113 #endif
static AlgebraicMatrix initialize()
virtual void initialize(std::string const &folder, std::string const &qname, int debug=0)
Definition: Container.h:33
#define debug
Definition: HDRShower.cc:19
Readout chain identification for Hcal.