Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:07

0001 #ifndef CondTools_Hcal_HcalPFCutsHandler_h
0002 #define CondTools_Hcal_HcalPFCutsHandler_h
0003 
0004 #include <string>
0005 
0006 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
0007 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0008 #include "CondFormats/HcalObjects/interface/HcalPFCuts.h"
0009 #include "FWCore/ParameterSet/interface/FileInPath.h"
0010 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0011 
0012 class HcalPFCutsHandler : public popcon::PopConSourceHandler<HcalPFCuts> {
0013 public:
0014   void getNewObjects() override;
0015   std::string id() const override { return m_name; }
0016   ~HcalPFCutsHandler() override;
0017   HcalPFCutsHandler(edm::ParameterSet const&);
0018 
0019   void initObject(HcalPFCuts*);
0020 
0021 private:
0022   unsigned int sinceTime;
0023   edm::FileInPath fFile;
0024   HcalPFCuts* myDBObject;
0025   std::string m_name;
0026 };
0027 #endif