CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::auto_ptr<SiPixelCPEGenericErrorParm> SiPixelFakeCPEGenericErrorParmESSource::produce(const SiPixelCPEGenericErrorParmRcd & )
18 {
19  using namespace edm::es;
21  obj->fillCPEGenericErrorParm(version_, fp_.fullPath());
22  //std::cout << *obj << std::endl;
23 
24  return std::auto_ptr<SiPixelCPEGenericErrorParm>(obj);
25 }
26 
28  const edm::IOVSyncValue& iosv,
29  edm::ValidityInterval& oValidity ) {
31  oValidity = infinity;
32 }
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
virtual std::auto_ptr< SiPixelCPEGenericErrorParm > produce(const SiPixelCPEGenericErrorParmRcd &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
static const IOVSyncValue & beginOfTime()
const double infinity
std::string fullPath() const
Definition: FileInPath.cc:170