File indexing completed on 2023-10-25 09:37:58
0001 #ifndef CastorPedestalWidthsHandler_h
0002 #define CastorPedestalWidthsHandler_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/CastorPedestalWidths.h"
0020 #include "CondFormats/DataRecord/interface/CastorPedestalWidthsRcd.h"
0021 #include "CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h"
0022
0023 class CastorPedestalWidthsHandler : public popcon::PopConSourceHandler<CastorPedestalWidths> {
0024 public:
0025 void getNewObjects() override;
0026 std::string id() const override { return m_name; }
0027 ~CastorPedestalWidthsHandler() override;
0028 CastorPedestalWidthsHandler(edm::ParameterSet const&);
0029
0030 void initObject(CastorPedestalWidths*);
0031
0032 private:
0033 unsigned int sinceTime;
0034 edm::FileInPath fFile;
0035 CastorPedestalWidths* myDBObject;
0036 std::string m_name;
0037 };
0038 #endif