Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:14:29

0001 #ifndef CalibTracker_SiPixelGainESProducers_SiPixelFakeGainESSource_h
0002 #define CalibTracker_SiPixelGainESProducers_SiPixelFakeGainESSource_h
0003 // -*- C++ -*-
0004 //
0005 // Package:    SiPixelFakeGainESSource
0006 // Class:      SiPixelFakeGainESSource
0007 //
0008 /**\class SiPixelFakeGainESSource SiPixelFakeGainESSource.h CalibTracker/SiPixelGainESProducer/src/SiPixelFakeGainESSource.cc
0009 
0010  Description: <one line class summary>
0011 
0012  Implementation:
0013      <Notes on implementation>
0014 */
0015 //
0016 // Original Author:  Vincenzo Chiochia
0017 //         Created:  Tue 8 12:31:25 CEST 2007
0018 //
0019 //
0020 
0021 // system include files
0022 #include <memory>
0023 
0024 // user include files
0025 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0026 #include "FWCore/Framework/interface/ESProducer.h"
0027 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
0028 #include "CondFormats/SiPixelObjects/interface/SiPixelGainCalibration.h"
0029 #include "CondFormats/DataRecord/interface/SiPixelGainCalibrationRcd.h"
0030 //
0031 // class decleration
0032 //
0033 
0034 class SiPixelFakeGainESSource : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder {
0035 public:
0036   SiPixelFakeGainESSource(const edm::ParameterSet &);
0037   ~SiPixelFakeGainESSource() override;
0038 
0039   //      typedef edm::ESProducts<> ReturnType;
0040 
0041   virtual std::unique_ptr<SiPixelGainCalibration> produce(const SiPixelGainCalibrationRcd &);
0042 
0043 protected:
0044   void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
0045                       const edm::IOVSyncValue &,
0046                       edm::ValidityInterval &) override;
0047 
0048 private:
0049   edm::FileInPath fp_;
0050 };
0051 #endif