Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef RUNINFO_HANDLER_H
0002 #define RUNINFO_HANDLER_H
0003 
0004 #include <string>
0005 
0006 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0007 #include "CondFormats/RunInfo/interface/RunInfo.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009 
0010 class RunInfoHandler : public popcon::PopConSourceHandler<RunInfo> {
0011 public:
0012   void getNewObjects() override;
0013   std::string id() const override { return m_name; }
0014   ~RunInfoHandler() override;
0015   RunInfoHandler(const edm::ParameterSet& pset);
0016 
0017 private:
0018   unsigned long long m_since;
0019   std::string m_name;
0020 
0021   // for reading from omds
0022   std::string m_runinfo_schema;
0023   std::string m_dcsenv_schema;
0024   std::string m_connectionString;
0025   edm::ParameterSet m_connectionPset;
0026 };
0027 
0028 #endif