00001 #ifndef CalibTracker_SiPixelESProducers_SiPixelFakeLorentzAngleESSource_h 00002 #define CalibTracker_SiPixelESProducers_SiPixelFakeLorentzAngleESSource_h 00003 // -*- C++ -*- 00004 // 00005 // Package: SiPixelFakeLorentzAngleESSource 00006 // Class: SiPixelFakeLorentzAngleESSource 00007 // 00015 // 00016 // Original Author: Lotte Wilke 00017 // Created: Jan. 31st, 2008 00018 // 00019 // 00020 00021 00022 // system include files 00023 #include <memory> 00024 #include "boost/shared_ptr.hpp" 00025 00026 // user include files 00027 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00028 #include "FWCore/Framework/interface/ESProducer.h" 00029 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h" 00030 #include "CondFormats/SiPixelObjects/interface/SiPixelLorentzAngle.h" 00031 #include "CondFormats/DataRecord/interface/SiPixelLorentzAngleRcd.h" 00032 // #include "CondTools/SiPixel/interface/SiPixelGainCalibrationService.h" 00033 // 00034 // class decleration 00035 // 00036 00037 class SiPixelFakeLorentzAngleESSource : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder { 00038 00039 public: 00040 SiPixelFakeLorentzAngleESSource(const edm::ParameterSet &); 00041 ~SiPixelFakeLorentzAngleESSource(); 00042 00043 // typedef edm::ESProducts<> ReturnType; 00044 00045 virtual std::auto_ptr<SiPixelLorentzAngle> produce(const SiPixelLorentzAngleRcd &); 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