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