00001 #ifndef CalibTracker_SiPixelESProducers_SiPixelFakeQualityESSource_h 00002 #define CalibTracker_SiPixelESProducers_SiPixelFakeQualityESSource_h 00003 // -*- C++ -*- 00004 // 00005 // Package: SiPixelFakeQualityESSource 00006 // Class: SiPixelFakeQualityESSource 00007 // 00015 // 00016 // Original Author: Bernadette Heyburn 00017 // Created: Oct. 21st, 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/SiPixelQuality.h" 00031 #include "CondFormats/DataRecord/interface/SiPixelQualityFromDbRcd.h" 00032 // #include "CondTools/SiPixel/interface/SiPixelGainCalibrationService.h" 00033 // 00034 // class decleration 00035 // 00036 00037 class SiPixelFakeQualityESSource : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder { 00038 00039 public: 00040 SiPixelFakeQualityESSource(const edm::ParameterSet &); 00041 ~SiPixelFakeQualityESSource(); 00042 00043 // typedef edm::ESProducts<> ReturnType; 00044 00045 virtual std::auto_ptr<SiPixelQuality> produce(const SiPixelQualityFromDbRcd &); 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