CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:
10  ContainerI(std::string const &folder, std::string const &name) : Container(folder, name) {}
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
int ib
Definition: cuy.py:661
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
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
MonitorElement * bookInt(TString const &name, FUNC onbooking=NOOP())
Definition: DQMStore.h:73
std::string _qname
Definition: Container.h:38
ContainerI(std::string const &folder, std::string const &name)
Definition: ContainerI.h:10