CMS 3D CMS Logo

ContainerD.h
Go to the documentation of this file.
1 #ifndef ContainerD_h
2 #define ContainerD_h
3 
5 
6 namespace hcaldqm
7 {
8  class ContainerD : public Container
9  {
10  public:
12  Container()
13  {}
15  Container(folder, name)
16  {}
17  virtual ~ContainerD() {}
18 
19  virtual void initialize(std::string const& folder,
20  std::string const& name, int debug=0)
21  {
22  _folder = folder;
23  _qname = name;
25  }
26 
27  virtual void fill(double x)
28  {
29  _me->Fill(x);
30  }
31 
32  virtual void book(DQMStore::IBooker &ib,
33  std::string subsystem="Hcal", std::string aux="")
34  {
35  ib.setCurrentFolder(subsystem+"/"+_folder+aux);
36  _me = ib.bookFloat(_qname);
37  }
38 
39  protected:
41  };
42 }
43 
44 #endif
ContainerD(std::string const &folder, std::string const &name)
Definition: ContainerD.h:14
void Fill(long long x)
virtual void book(DQMStore::IBooker &ib, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerD.h:32
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
void set(std::string const &name, int debug=0)
Definition: Logger.h:29
virtual void initialize(std::string const &folder, std::string const &name, int debug=0)
Definition: ContainerD.h:19
std::string _folder
Definition: Container.h:34
MonitorElement * _me
Definition: ContainerD.h:40
#define debug
Definition: HDRShower.cc:19
virtual ~ContainerD()
Definition: ContainerD.h:17
virtual void fill(double x)
Definition: ContainerD.h:27
std::string _qname
Definition: Container.h:35
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:105
ib
Definition: cuy.py:662