CMS 3D CMS Logo

ContainerI.h
Go to the documentation of this file.
1 #ifndef ContainerI_h
2 #define ContainerI_h
3 
5 
6 namespace hcaldqm
7 {
8  using namespace constants;
9  class ContainerI : public Container
10  {
11  public:
13  Container()
14  {}
16  Container(folder, name)
17  {}
18  ~ContainerI() override {}
19 
21  std::string const& name, int debug=0) override
22  {
23  _folder = folder;
24  _qname = name;
25  _logger.set(_qname, debug);
26  }
27 
28  virtual void fill(int x)
29  {
30  _me->Fill(x);
31  }
32 
33  virtual void book(DQMStore::IBooker &ib,
34  std::string subsystem="Hcal", std::string aux="")
35  {
36  ib.setCurrentFolder(subsystem+"/"+_folder +aux);
37  _me = ib.bookInt(_qname);
38  }
39 
40  protected:
42  };
43 }
44 
45 #endif
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
void initialize(std::string const &folder, std::string const &name, int debug=0) override
Definition: ContainerI.h:20
MonitorElement * _me
Definition: ContainerI.h:41
MonitorElement * bookInt(Args &&...args)
Definition: DQMStore.h:106
~ContainerI() override
Definition: ContainerI.h:18
virtual void book(DQMStore::IBooker &ib, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerI.h:33
virtual void fill(int x)
Definition: ContainerI.h:28
#define debug
Definition: HDRShower.cc:19
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
ContainerI(std::string const &folder, std::string const &name)
Definition: ContainerI.h:15
ib
Definition: cuy.py:660