#include <RecoTracker/RoadMapESSource/interface/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().
00025 : 00026 fileName_((iConfig.getParameter<edm::FileInPath>("InputFileName")).fullPath()) 00027 { 00028 00029 std::string componentName = iConfig.getParameter<std::string>("ComponentName"); 00030 setWhatProduced(this, componentName); 00031 00032 ringsLabel_ = iConfig.getParameter<std::string>("RingsLabel"); 00033 00034 findingRecord<RoadMapRecord>(); 00035 00036 roads_ = 0; 00037 }
RoadMapESSource::~RoadMapESSource | ( | ) |
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(), RingMakerESProducer_cfi::rings, ringsLabel_, RoadMapMakerESProducer_cfi::roads, and roads_.
00046 { 00047 00048 // get rings 00049 edm::ESHandle<Rings> ringHandle; 00050 iRecord.getRecord<RingRecord>().get(ringsLabel_, ringHandle); 00051 const Rings *rings = ringHandle.product(); 00052 00053 roads_ = new Roads(fileName_,rings); 00054 00055 std::auto_ptr<Roads> roads(roads_); 00056 00057 return roads ; 00058 }
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().
00060 { 00061 oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(),edm::IOVSyncValue::endOfTime()); 00062 }
std::string RoadMapESSource::fileName_ [private] |
std::string RoadMapESSource::ringsLabel_ [private] |
Roads* RoadMapESSource::roads_ [private] |