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