CMS 3D CMS Logo

SiPixelFakeCPEGenericErrorParmESSource.cc
Go to the documentation of this file.
3 
5  : fp_(conf_.getParameter<edm::FileInPath>("file")), version_(conf_.getParameter<double>("version")) {
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 std::unique_ptr<SiPixelCPEGenericErrorParm> SiPixelFakeCPEGenericErrorParmESSource::produce(
17  using namespace edm::es;
19  obj->fillCPEGenericErrorParm(version_, fp_.fullPath());
20  //std::cout << *obj << std::endl;
21 
22  return std::unique_ptr<SiPixelCPEGenericErrorParm>(obj);
23 }
24 
26  const edm::IOVSyncValue& iosv,
27  edm::ValidityInterval& oValidity) {
29  oValidity = infinity;
30 }
SiPixelCPEGenericErrorParm
Definition: SiPixelCPEGenericErrorParm.h:15
MessageLogger.h
SiPixelCPEGenericErrorParmRcd
Definition: SiPixelCPEGenericErrorParmRcd.h:24
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ValidityInterval
Definition: ValidityInterval.h:28
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
infinity
const double infinity
Definition: CSCChamberFitter.cc:10
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
SiPixelFakeCPEGenericErrorParmESSource::version_
double version_
Definition: SiPixelFakeCPEGenericErrorParmESSource.h:26
SiPixelFakeCPEGenericErrorParmESSource.h
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
SiPixelFakeCPEGenericErrorParmESSource::produce
virtual std::unique_ptr< SiPixelCPEGenericErrorParm > produce(const SiPixelCPEGenericErrorParmRcd &)
Definition: SiPixelFakeCPEGenericErrorParmESSource.cc:15
edm::ParameterSet
Definition: ParameterSet.h:47
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
SiPixelFakeCPEGenericErrorParmESSource::~SiPixelFakeCPEGenericErrorParmESSource
~SiPixelFakeCPEGenericErrorParmESSource() override
Definition: SiPixelFakeCPEGenericErrorParmESSource.cc:13
SiPixelFakeCPEGenericErrorParmESSource::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition: SiPixelFakeCPEGenericErrorParmESSource.cc:25
SiPixelFakeCPEGenericErrorParmESSource::fp_
edm::FileInPath fp_
Definition: SiPixelFakeCPEGenericErrorParmESSource.h:25
edm::es
Definition: es_Label.h:33
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
SiPixelFakeCPEGenericErrorParmESSource::SiPixelFakeCPEGenericErrorParmESSource
SiPixelFakeCPEGenericErrorParmESSource(const edm::ParameterSet &)
Definition: SiPixelFakeCPEGenericErrorParmESSource.cc:4
edm::FileInPath::fullPath
std::string fullPath() const
Definition: FileInPath.cc:161