Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:27

0001 #ifndef Container_h
0002 #define Container_h
0003 
0004 /*
0005  *      file:           Container.h
0006  *      Author:         Viktor Khristenko
0007  *
0008  *      Description:
0009  *              Container Base class
0010  *
0011  *
0012  */
0013 
0014 #include "DQM/HcalCommon/interface/HcalCommonHeaders.h"
0015 #include "DQM/HcalCommon/interface/Logger.h"
0016 
0017 #include <string>
0018 #include <vector>
0019 
0020 namespace hcaldqm {
0021   class Container {
0022   public:
0023     typedef dqm::legacy::DQMStore DQMStore;
0024     typedef dqm::legacy::MonitorElement MonitorElement;
0025 
0026     Container() : _folder("HcalInfo"), _qname("SomeQuantity") {}
0027     Container(std::string const &folder, std::string const &qname) : _folder(folder), _qname(qname) {}
0028     virtual ~Container() {}
0029 
0030     virtual void initialize(std::string const &folder, std::string const &qname, int debug = 0) {
0031       _folder = folder;
0032       _qname = qname;
0033       _logger.set(_qname, debug);
0034     }
0035 
0036   protected:
0037     std::string _folder;
0038     std::string _qname;
0039     Logger _logger;
0040   };
0041 }  // namespace hcaldqm
0042 
0043 #endif