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  class ContainerI : public Container {
8  public:
11  ~ContainerI() override {}
12 
13  void initialize(std::string const &folder, std::string const &name, int debug = 0) override {
14  _folder = folder;
15  _qname = name;
17  }
18 
19  virtual void fill(int x) { _me->Fill(x); }
20 
21  virtual void book(DQMStore::IBooker &ib, std::string subsystem = "Hcal", std::string aux = "") {
22  ib.setCurrentFolder(subsystem + "/" + _folder + aux);
23  _me = ib.bookInt(_qname);
24  }
25 
26  protected:
28  };
29 } // namespace hcaldqm
30 
31 #endif
void initialize(std::string const &folder, std::string const &name, int debug=0) override
Definition: ContainerI.h:13
MonitorElement * _me
Definition: ContainerI.h:27
~ContainerI() override
Definition: ContainerI.h:11
void Fill(long long x)
void set(std::string const &name, int debug=0)
Definition: Logger.h:29
virtual void book(DQMStore::IBooker &ib, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerI.h:21
virtual void fill(int x)
Definition: ContainerI.h:19
std::string _folder
Definition: Container.h:37
#define debug
Definition: HDRShower.cc:19
std::string _qname
Definition: Container.h:38
float x
ContainerI(std::string const &folder, std::string const &name)
Definition: ContainerI.h:10
ib
Definition: cuy.py:661