Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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