Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:10

0001 #ifndef CondToolsHcalHcalTPChannelParametersHandler_h
0002 #define CondToolsHcalHcalTPChannelParametersHandler_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 // user include files
0016 #include "CondFormats/HcalObjects/interface/HcalTPChannelParameters.h"
0017 #include "CondFormats/DataRecord/interface/HcalTPChannelParametersRcd.h"
0018 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
0019 
0020 class HcalTPChannelParametersHandler : public popcon::PopConSourceHandler<HcalTPChannelParameters> {
0021 public:
0022   void getNewObjects() override;
0023   std::string id() const override { return m_name; }
0024   ~HcalTPChannelParametersHandler() override;
0025   HcalTPChannelParametersHandler(edm::ParameterSet const&);
0026 
0027   void initObject(HcalTPChannelParameters*);
0028 
0029 private:
0030   unsigned int sinceTime;
0031   edm::FileInPath fFile;
0032   HcalTPChannelParameters* myDBObject;
0033   std::string m_name;
0034 };
0035 #endif