Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:20

0001 #ifndef CondTools_RPC_RPCLBLinkMapHandler_h
0002 #define CondTools_RPC_RPCLBLinkMapHandler_h
0003 
0004 #include <string>
0005 
0006 #include "CondCore/CondDB/interface/ConnectionPool.h"
0007 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0008 #include "CondFormats/Common/interface/Time.h"
0009 
0010 #include "CondFormats/RPCObjects/interface/RPCLBLinkMap.h"
0011 
0012 namespace edm {
0013   class ParameterSet;
0014   class ConfigurationDescriptions;
0015 }  // namespace edm
0016 
0017 class RPCLBLinkMapHandler : public popcon::PopConSourceHandler<RPCLBLinkMap> {
0018 public:
0019   static RPCDetId getRPCDetId(
0020       int region, int disk_or_wheel, int layer, int sector, std::string subsector_string, std::string partition);
0021 
0022 public:
0023   RPCLBLinkMapHandler(edm::ParameterSet const& config);
0024   ~RPCLBLinkMapHandler() override;
0025 
0026   void getNewObjects() override;
0027   std::string id() const override;
0028 
0029 protected:
0030   std::string id_;
0031   std::string data_tag_;
0032   cond::Time_t since_run_;
0033 
0034   std::string txt_file_;
0035 
0036   std::string connect_;
0037   cond::persistency::ConnectionPool connection_;
0038 };
0039 
0040 #endif  // CondTools_RPC_RPCLBLinkMapHandler_h