#include <RoadMapESSource.h>
Public Types | |
typedef std::auto_ptr< Roads > | ReturnType |
Public Member Functions | |
ReturnType | produce (const RoadMapRecord &) |
RoadMapESSource (const edm::ParameterSet &) | |
~RoadMapESSource () | |
Protected Member Functions | |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Private Attributes | |
std::string | fileName_ |
std::string | ringsLabel_ |
Roads * | roads_ |
Definition at line 33 of file RoadMapESSource.h.
typedef std::auto_ptr<Roads> RoadMapESSource::ReturnType |
Definition at line 40 of file RoadMapESSource.h.
RoadMapESSource::RoadMapESSource | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 25 of file RoadMapESSource.cc.
References edm::ParameterSet::getParameter(), ringsLabel_, roads_, and edm::ESProducer::setWhatProduced().
: fileName_((iConfig.getParameter<edm::FileInPath>("InputFileName")).fullPath()) { std::string componentName = iConfig.getParameter<std::string>("ComponentName"); setWhatProduced(this, componentName); ringsLabel_ = iConfig.getParameter<std::string>("RingsLabel"); findingRecord<RoadMapRecord>(); roads_ = 0; }
RoadMapESSource::~RoadMapESSource | ( | ) |
Definition at line 40 of file RoadMapESSource.cc.
{ }
RoadMapESSource::ReturnType RoadMapESSource::produce | ( | const RoadMapRecord & | iRecord | ) |
Definition at line 45 of file RoadMapESSource.cc.
References fileName_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), edm::ESHandle< T >::product(), RingESSource_cfi::rings, ringsLabel_, RoadMapESSource_cfi::roads, and roads_.
{ // get rings edm::ESHandle<Rings> ringHandle; iRecord.getRecord<RingRecord>().get(ringsLabel_, ringHandle); const Rings *rings = ringHandle.product(); roads_ = new Roads(fileName_,rings); std::auto_ptr<Roads> roads(roads_); return roads ; }
void RoadMapESSource::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | , |
const edm::IOVSyncValue & | , | ||
edm::ValidityInterval & | oValidity | ||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 60 of file RoadMapESSource.cc.
References edm::IOVSyncValue::beginOfTime(), and edm::IOVSyncValue::endOfTime().
{ oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(),edm::IOVSyncValue::endOfTime()); }
std::string RoadMapESSource::fileName_ [private] |
Definition at line 50 of file RoadMapESSource.h.
Referenced by produce().
std::string RoadMapESSource::ringsLabel_ [private] |
Definition at line 52 of file RoadMapESSource.h.
Referenced by produce(), and RoadMapESSource().
Roads* RoadMapESSource::roads_ [private] |
Definition at line 54 of file RoadMapESSource.h.
Referenced by produce(), and RoadMapESSource().