00001 #ifndef HcalLutMetadataHandler_h 00002 #define HcalLutMetadataHandler_h 00003 00004 /* 00005 \class HcalLutMetadataHandler 00006 \author Gena Kukartsev 21 Sep 2009 00007 PopCon handler for the HCAL LUT metadata condition 00008 */ 00009 00010 00011 #include <string> 00012 #include <iostream> 00013 #include <typeinfo> 00014 #include <fstream> 00015 00016 #include "FWCore/Framework/interface/MakerMacros.h" 00017 #include "CondCore/PopCon/interface/PopConSourceHandler.h" 00018 00019 #include "FWCore/Framework/interface/ESHandle.h" 00020 #include "FWCore/Framework/interface/Event.h" 00021 #include "DataFormats/Common/interface/Handle.h" 00022 #include "FWCore/Framework/interface/EventSetup.h" 00023 // user include files 00024 #include "CondFormats/HcalObjects/interface/HcalLutMetadata.h" 00025 #include "CondFormats/DataRecord/interface/HcalLutMetadataRcd.h" 00026 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h" 00027 00028 00029 class HcalLutMetadataHandler : public popcon::PopConSourceHandler<HcalLutMetadata> 00030 { 00031 public: 00032 void getNewObjects(); 00033 std::string id() const { return m_name;} 00034 ~HcalLutMetadataHandler(); 00035 HcalLutMetadataHandler(edm::ParameterSet const &); 00036 00037 void initObject(HcalLutMetadata*); 00038 00039 private: 00040 unsigned int sinceTime; 00041 edm::FileInPath fFile; 00042 HcalLutMetadata* myDBObject; 00043 std::string m_name; 00044 00045 }; 00046 #endif