00001 #ifndef CalibTracker_SiPixelGainESProducers_SiPixelFakeGainOfflineESSource_h 00002 #define CalibTracker_SiPixelGainESProducers_SiPixelFakeGainOfflineESSource_h 00003 // -*- C++ -*- 00004 // 00005 // Package: SiPixelFakeGainESSource 00006 // Class: SiPixelFakeGainOfflineESSource 00007 // 00015 // 00016 // Original Author: Vincenzo Chiochia 00017 // Created: Tue 8 12:31:25 CEST 2007 00018 // $Id: SiPixelFakeGainOfflineESSource.h,v 1.1 2008/02/11 15:23:30 friis Exp $ 00019 // 00020 // 00021 00022 00023 // system include files 00024 #include <memory> 00025 #include "boost/shared_ptr.hpp" 00026 00027 // user include files 00028 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00029 #include "FWCore/Framework/interface/ESProducer.h" 00030 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h" 00031 #include "CondFormats/SiPixelObjects/interface/SiPixelGainCalibrationOffline.h" 00032 #include "CondFormats/DataRecord/interface/SiPixelGainCalibrationOfflineRcd.h" 00033 // 00034 // class decleration 00035 // 00036 00037 class SiPixelFakeGainOfflineESSource : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder { 00038 00039 public: 00040 SiPixelFakeGainOfflineESSource(const edm::ParameterSet &); 00041 ~SiPixelFakeGainOfflineESSource(); 00042 00043 // typedef edm::ESProducts<> ReturnType; 00044 00045 virtual std::auto_ptr<SiPixelGainCalibrationOffline> produce(const SiPixelGainCalibrationOfflineRcd &); 00046 00047 protected: 00048 00049 virtual void setIntervalFor( const edm::eventsetup::EventSetupRecordKey&, 00050 const edm::IOVSyncValue&, 00051 edm::ValidityInterval& ); 00052 00053 00054 private: 00055 00056 edm::FileInPath fp_; 00057 00058 }; 00059 #endif