File indexing completed on 2024-04-26 22:51:16
0001 #ifndef CondTools_Ecal_EcalTimeCalibHandler_h
0002 #define CondTools_Ecal_EcalTimeCalibHandler_h
0003
0004 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0005 #include "CondFormats/EcalObjects/interface/EcalTimeCalibConstants.h"
0006 #include "CondTools/Ecal/interface/EcalCondHeader.h"
0007
0008 #include "FWCore/Framework/interface/Event.h"
0009 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0010 #include "FWCore/ServiceRegistry/interface/Service.h"
0011
0012 #include "OnlineDB/EcalCondDB/interface/all_monitoring_types.h"
0013 #include "OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h"
0014
0015 #include <string>
0016
0017 namespace popcon {
0018 class EcalTimeCalibHandler : public popcon::PopConSourceHandler<EcalTimeCalibConstants> {
0019 public:
0020 EcalTimeCalibHandler(edm::ParameterSet const&);
0021 ~EcalTimeCalibHandler() override = default;
0022
0023 void getNewObjects() override;
0024 void readXML(const std::string& filename, EcalFloatCondObjectContainer& record);
0025 void readTXT(const std::string& filename, EcalFloatCondObjectContainer& record);
0026
0027 std::string id() const override { return m_name; }
0028 EcalCondDBInterface* econn;
0029
0030 private:
0031 const std::string m_name;
0032 const unsigned int m_firstRun;
0033 const std::string m_file_name;
0034 const std::string m_file_type;
0035 };
0036 }
0037 #endif