File indexing completed on 2024-04-06 12:03:07
0001 #ifndef CondToolsHcalHcalSiPMParametersHandler_h
0002 #define CondToolsHcalHcalSiPMParametersHandler_h
0003
0004 #include <string>
0005 #include <iostream>
0006 #include <typeinfo>
0007 #include <fstream>
0008
0009 #include "FWCore/Framework/interface/MakerMacros.h"
0010 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0011
0012 #include "FWCore/Framework/interface/Event.h"
0013 #include "DataFormats/Common/interface/Handle.h"
0014 #include "FWCore/Framework/interface/EventSetup.h"
0015
0016 #include "CondFormats/HcalObjects/interface/HcalSiPMParameters.h"
0017 #include "CondFormats/DataRecord/interface/HcalSiPMParametersRcd.h"
0018 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
0019
0020 class HcalSiPMParametersHandler : public popcon::PopConSourceHandler<HcalSiPMParameters> {
0021 public:
0022 void getNewObjects() override;
0023 std::string id() const override { return m_name; }
0024 ~HcalSiPMParametersHandler() override;
0025 HcalSiPMParametersHandler(edm::ParameterSet const&);
0026
0027 void initObject(HcalSiPMParameters*);
0028
0029 private:
0030 unsigned int sinceTime;
0031 edm::FileInPath fFile;
0032 HcalSiPMParameters* myDBObject;
0033 std::string m_name;
0034 };
0035 #endif