CMS 3D CMS Logo

ContainerS.h
Go to the documentation of this file.
1 #ifndef ContainerS_h
2 #define ContainerS_h
3 
6 
7 namespace hcaldqm
8 {
9  class ContainerS : public Container
10  {
11  public:
14  Container(folder, name)
15  {}
16  ~ContainerS() override {}
17 
19  std::string const& name, int debug=0) override
20  {
21  _folder = folder;
22  _qname = name;
24  }
25 
26  virtual void fill(std::string const& x)
27  {
28  _me->Fill((std::string&)x);
29  }
30 
31  virtual void book(DQMStore::IBooker &ib,
32  std::string subsystem="Hcal", std::string aux="")
33  {
34  ib.setCurrentFolder(subsystem+"/"+_folder+aux);
35  _me = ib.bookString(_qname, "NameToStart");
36  }
37 
38  protected:
40  };
41 }
42 
43 #endif
MonitorElement * bookString(Args &&...args)
Definition: DQMStore.h:103
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 fill(std::string const &x)
Definition: ContainerS.h:26
MonitorElement * _me
Definition: ContainerS.h:39
virtual void book(DQMStore::IBooker &ib, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerS.h:31
std::string _folder
Definition: Container.h:42
~ContainerS() override
Definition: ContainerS.h:16
#define debug
Definition: HDRShower.cc:19
ContainerS(std::string const &folder, std::string const &name)
Definition: ContainerS.h:13
void initialize(std::string const &folder, std::string const &name, int debug=0) override
Definition: ContainerS.h:18
std::string _qname
Definition: Container.h:43
ib
Definition: cuy.py:662