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  using namespace constants;
10  class ContainerS : public Container
11  {
12  public:
14  Container()
15  {}
17  Container(folder, name)
18  {}
19  ~ContainerS() override {}
20 
22  std::string const& name, int debug=0) override
23  {
24  _folder = folder;
25  _qname = name;
26  _logger.set(_qname, debug);
27  }
28 
29  virtual void fill(std::string const& x)
30  {
31  _me->Fill((std::string&)x);
32  }
33 
34  virtual void book(DQMStore::IBooker &ib,
35  std::string subsystem="Hcal", std::string aux="")
36  {
37  ib.setCurrentFolder(subsystem+"/"+_folder+aux);
38  _me = ib.bookString(_qname, "NameToStart");
39  }
40 
41  protected:
43  };
44 }
45 
46 #endif
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
MonitorElement * bookString(Args &&...args)
Definition: DQMStore.h:97
virtual void fill(std::string const &x)
Definition: ContainerS.h:29
MonitorElement * _me
Definition: ContainerS.h:42
virtual void book(DQMStore::IBooker &ib, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerS.h:34
~ContainerS() override
Definition: ContainerS.h:19
#define debug
Definition: HDRShower.cc:19
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
ContainerS(std::string const &folder, std::string const &name)
Definition: ContainerS.h:16
void initialize(std::string const &folder, std::string const &name, int debug=0) override
Definition: ContainerS.h:21
ib
Definition: cuy.py:660