CMS 3D CMS Logo

SiPixelFakeCPEGenericErrorParmESSource.cc
Go to the documentation of this file.
3 
4 SiPixelFakeCPEGenericErrorParmESSource::SiPixelFakeCPEGenericErrorParmESSource(const edm::ParameterSet& conf_) : fp_(conf_.getParameter<edm::FileInPath>("file")), version_(conf_.getParameter<double>("version"))
5 {
6  edm::LogInfo("SiPixelFakeCPEGenericErrorParmESSource::SiPixelFakeCPEGenericErrorParmESSource");
7  //the following line is needed to tell the framework what
8  // data is being produced
9  setWhatProduced(this);
10  findingRecord<SiPixelCPEGenericErrorParmRcd>();
11 }
12 
14 {
15 }
16 
17 std::unique_ptr<SiPixelCPEGenericErrorParm> SiPixelFakeCPEGenericErrorParmESSource::produce(const SiPixelCPEGenericErrorParmRcd & )
18 {
19  using namespace edm::es;
22  //std::cout << *obj << std::endl;
23 
24  return std::unique_ptr<SiPixelCPEGenericErrorParm>(obj);
25 }
26 
28  const edm::IOVSyncValue& iosv,
29  edm::ValidityInterval& oValidity ) {
31  oValidity = infinity;
32 }
virtual std::unique_ptr< SiPixelCPEGenericErrorParm > produce(const SiPixelCPEGenericErrorParmRcd &)
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
void fillCPEGenericErrorParm(double version, std::string file)
Function to fill the db object given a filename.
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
static const IOVSyncValue & beginOfTime()
const double infinity
HLT enums.
std::string fullPath() const
Definition: FileInPath.cc:184