CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Container2D.h
Go to the documentation of this file.
1 #ifndef Container2D_h
2 #define Container2D_h
3 
4 /*
5  * file: Container2D.h
6  * Author: Viktor Khristenko
7  *
8  * Description:
9  * Container to hold TH2D or like
10  *
11  */
12 
14 
15 #include <vector>
16 #include <string>
17 
18 namespace hcaldqm
19 {
20  class Container2D : public Container1D
21  {
22  public:
23  Container2D();
24  Container2D(std::string const& folder, std::string nametitle,
25  mapper::MapperType mt, axis::Axis *xaxis,
27  axis::fiphi),
30  virtual ~Container2D();
31 
32  // Initialize Container
33  // @folder
34  // @nametitle,
35  virtual void initialize(std::string const& folder,
36  std::string nametitle,
37  mapper::MapperType mt, axis::Axis *xaxis,
39  axis::fiphi),
41  axis::fEntries), int debug=0);
42 
43  // redeclare what to override
44  virtual void fill(HcalDetId const&);
45  virtual void fill(HcalDetId const&, int);
46  virtual void fill(HcalDetId const&, double);
47  virtual void fill(HcalDetId const&, int, double);
48  virtual void fill(HcalDetId const&, double, double);
49 
50  virtual void fill(HcalElectronicsId const&);
51  virtual void fill(HcalElectronicsId const&, int);
52  virtual void fill(HcalElectronicsId const&, double);
53  virtual void fill(HcalElectronicsId const&, int, double);
54  virtual void fill(HcalElectronicsId const&, double, double);
55 
56  virtual void fill(HcalTrigTowerDetId const&);
57  virtual void fill(HcalTrigTowerDetId const&, int);
58  virtual void fill(HcalTrigTowerDetId const&, double);
59  virtual void fill(HcalTrigTowerDetId const&, int, int);
60  virtual void fill(HcalTrigTowerDetId const&, int, double);
61  virtual void fill(HcalTrigTowerDetId const&, double, double);
62 
63  virtual void setBinContent(int, int, int, double);
64  virtual void setBinContent(unsigned int, int, int, double);
65  virtual void setBinContent(int, int, double, double);
66  virtual void setBinContent(int, double, int, double);
67  virtual void setBinContent(int, double, double, double);
68 
69  // booking. see Container1D.h
70  virtual void book(DQMStore::IBooker&,
72 
73  virtual void loadLabels(std::vector<std::string> const&);
74 
75  protected:
77  };
78 }
79 
80 
81 #endif
82 
83 
84 
85 
86 
87 
88 
89 
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
Definition: Container2D.cc:233
virtual void initialize(std::string const &folder, std::string nametitle, mapper::MapperType mt, axis::Axis *xaxis, axis::Axis *yaxis=new axis::CoordinateAxis(axis::fYaxis, axis::fiphi), axis::Axis *zaxis=new axis::ValueAxis(axis::fZaxis, axis::fEntries), int debug=0)
Definition: Container2D.cc:30
virtual void fill(HcalDetId const &)
Definition: Container2D.cc:39
virtual ~Container2D()
Definition: Container2D.cc:18
virtual void loadLabels(std::vector< std::string > const &)
Definition: Container2D.cc:294
#define debug
Definition: HDRShower.cc:19
virtual void setBinContent(int, int, int, double)
Definition: Container2D.cc:263
Readout chain identification for Hcal.