File indexing completed on 2024-04-06 12:03:07
0001 #ifndef CondToolsHcalHcalHcalTPParametersHandler_h
0002 #define CondToolsHcalHcalHcalTPParametersHandler_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/HcalTPParameters.h"
0017 #include "CondFormats/DataRecord/interface/HcalTPParametersRcd.h"
0018 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
0019
0020 class HcalTPParametersHandler : public popcon::PopConSourceHandler<HcalTPParameters> {
0021 public:
0022 void getNewObjects() override;
0023 std::string id() const override { return m_name; }
0024 ~HcalTPParametersHandler() override;
0025 HcalTPParametersHandler(edm::ParameterSet const&);
0026
0027 void initObject(HcalTPParameters*);
0028
0029 private:
0030 unsigned int sinceTime;
0031 edm::FileInPath fFile;
0032 HcalTPParameters* myDBObject;
0033 std::string m_name;
0034 };
0035 #endif