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
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
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 set(std::string const &name, int debug=0)
Definition: Logger.h:41
virtual void initialize(std::string const &folder, std::string const &name, int debug=0)
Definition: ContainerD.h:19
std::string _folder
Definition: Container.h:42
MonitorElement * _me
Definition: ContainerD.h:40
#define debug
Definition: HDRShower.cc:19
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
virtual ~ContainerD()
Definition: ContainerD.h:17
virtual void fill(double x)
Definition: ContainerD.h:27
std::string _qname
Definition: Container.h:43
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:112
ib
Definition: cuy.py:661