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  class ContainerI : public Container
9  {
10  public:
12  Container()
13  {}
15  Container(folder, name)
16  {}
17  ~ContainerI() override {}
18 
20  std::string const& name, int debug=0) override
21  {
22  _folder = folder;
23  _qname = name;
25  }
26 
27  virtual void fill(int 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.bookInt(_qname);
37  }
38 
39  protected:
41  };
42 }
43 
44 #endif
void initialize(std::string const &folder, std::string const &name, int debug=0) override
Definition: ContainerI.h:19
MonitorElement * _me
Definition: ContainerI.h:40
MonitorElement * bookInt(Args &&...args)
Definition: DQMStore.h:104
~ContainerI() override
Definition: ContainerI.h:17
void Fill(long long x)
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
void set(std::string const &name, int debug=0)
Definition: Logger.h:41
virtual void book(DQMStore::IBooker &ib, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerI.h:32
virtual void fill(int x)
Definition: ContainerI.h:27
std::string _folder
Definition: Container.h:42
#define debug
Definition: HDRShower.cc:19
std::string _qname
Definition: Container.h:43
ContainerI(std::string const &folder, std::string const &name)
Definition: ContainerI.h:14
ib
Definition: cuy.py:662