CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/CalibTracker/SiPixelESProducers/interface/SiPixelFakeGainESSource.h

Go to the documentation of this file.
00001 #ifndef CalibTracker_SiPixelGainESProducers_SiPixelFakeGainESSource_h
00002 #define CalibTracker_SiPixelGainESProducers_SiPixelFakeGainESSource_h
00003 // -*- C++ -*-
00004 //
00005 // Package:    SiPixelFakeGainESSource
00006 // Class:      SiPixelFakeGainESSource
00007 // 
00015 //
00016 // Original Author:  Vincenzo Chiochia
00017 //         Created:  Tue 8 12:31:25 CEST 2007
00018 // $Id: SiPixelFakeGainESSource.h,v 1.4 2008/02/11 15:23:28 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/SiPixelGainCalibration.h"
00032 #include "CondFormats/DataRecord/interface/SiPixelGainCalibrationRcd.h"
00033 //
00034 // class decleration
00035 //
00036 
00037 class SiPixelFakeGainESSource : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder  {
00038 
00039  public:
00040   SiPixelFakeGainESSource(const edm::ParameterSet &);
00041   ~SiPixelFakeGainESSource();
00042   
00043   //      typedef edm::ESProducts<> ReturnType;
00044   
00045   virtual std::auto_ptr<SiPixelGainCalibration>  produce(const SiPixelGainCalibrationRcd &);
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