Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:10:06

0001 #ifndef ContainerS_h
0002 #define ContainerS_h
0003 
0004 #include "DQM/HcalCommon/interface/Constants.h"
0005 #include "DQM/HcalCommon/interface/Container.h"
0006 
0007 namespace hcaldqm {
0008   class ContainerS : public Container {
0009   public:
0010     ContainerS() : Container() {}
0011     ContainerS(std::string const &folder, std::string const &name) : Container(folder, name) {}
0012     ~ContainerS() override {}
0013 
0014     void initialize(std::string const &folder, std::string const &name, int debug = 0) override {
0015       _folder = folder;
0016       _qname = name;
0017       _logger.set(_qname, debug);
0018     }
0019 
0020     virtual void fill(std::string const &x) { _me->Fill((std::string &)x); }
0021 
0022     virtual void book(DQMStore::IBooker &ib, std::string subsystem = "Hcal", std::string aux = "") {
0023       ib.setCurrentFolder(subsystem + "/" + _folder + aux);
0024       _me = ib.bookString(_qname, "NameToStart");
0025     }
0026 
0027   protected:
0028     MonitorElement *_me;
0029   };
0030 }  // namespace hcaldqm
0031 
0032 #endif