CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  {}
15  ContainerI(std::string const& folder, std::string const& name):
16  Container(folder, name)
17  {}
18  virtual ~ContainerI() {}
19 
20  virtual void initialize(std::string const& folder,
21  std::string const& name, int debug=0)
22  {
23  _folder = folder;
24  _name = name;
25  _logger.set(_name, debug);
26  }
27 
28  virtual void fill(int x)
29  {
30  _me->Fill(x);
31  }
32 
33  virtual void book(DQMStore::IBooker &ib,
35  {
36  ib.setCurrentFolder(subsystem+"/"+_folder +aux);
37  _me = ib.bookInt(_name);
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 
int ib
Definition: cuy.py:660
MonitorElement * _me
Definition: ContainerI.h:41
MonitorElement * bookInt(Args &&...args)
Definition: DQMStore.h:103
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:273
virtual ~ContainerI()
Definition: ContainerI.h:18
ContainerI(std::string const &folder, std::string const &name)
Definition: ContainerI.h:15
virtual void initialize(std::string const &folder, std::string const &name, int debug=0)
Definition: ContainerI.h:20