1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef ContainerS_h
#define ContainerS_h
#include "DQM/HcalCommon/interface/Constants.h"
#include "DQM/HcalCommon/interface/Container.h"
namespace hcaldqm {
class ContainerS : public Container {
public:
ContainerS() : Container() {}
ContainerS(std::string const &folder, std::string const &name) : Container(folder, name) {}
~ContainerS() override {}
void initialize(std::string const &folder, std::string const &name, int debug = 0) override {
_folder = folder;
_qname = name;
_logger.set(_qname, debug);
}
virtual void fill(std::string const &x) { _me->Fill((std::string &)x); }
virtual void book(DQMStore::IBooker &ib, std::string subsystem = "Hcal", std::string aux = "") {
ib.setCurrentFolder(subsystem + "/" + _folder + aux);
_me = ib.bookString(_qname, "NameToStart");
}
protected:
MonitorElement *_me;
};
} // namespace hcaldqm
#endif
|