#include <TrackingTools/KalmanUpdators/interface/TrackingRecHitPropagatorESProducer.h>
Public Member Functions | |
boost::shared_ptr < TrackingRecHitPropagator > | produce (const TrackingComponentsRecord &) |
TrackingRecHitPropagatorESProducer (const edm::ParameterSet &p) | |
virtual | ~TrackingRecHitPropagatorESProducer () |
Private Attributes | |
edm::ParameterSet | pset_ |
boost::shared_ptr < TrackingRecHitPropagator > | theHitPropagator |
Definition at line 11 of file TrackingRecHitPropagatorESProducer.h.
TrackingRecHitPropagatorESProducer::TrackingRecHitPropagatorESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 14 of file TrackingRecHitPropagatorESProducer.cc.
References edm::ParameterSet::getParameter(), pset_, and edm::ESProducer::setWhatProduced().
00015 { 00016 std::string myname = p.getParameter<std::string>("ComponentName"); 00017 pset_ = p; 00018 setWhatProduced(this,myname); 00019 }
TrackingRecHitPropagatorESProducer::~TrackingRecHitPropagatorESProducer | ( | ) | [virtual] |
boost::shared_ptr< TrackingRecHitPropagator > TrackingRecHitPropagatorESProducer::produce | ( | const TrackingComponentsRecord & | iRecord | ) |
Definition at line 24 of file TrackingRecHitPropagatorESProducer.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), volumeBasedMagneticField_1103l_cfi::magfield, edm::ESHandle< T >::product(), and theHitPropagator.
00024 { 00025 ESHandle<MagneticField> magfield; 00026 iRecord.getRecord<IdealMagneticFieldRecord>().get(magfield ); 00027 theHitPropagator= boost::shared_ptr<TrackingRecHitPropagator>(new TrackingRecHitPropagator(magfield.product())); 00028 return theHitPropagator; 00029 }
Definition at line 18 of file TrackingRecHitPropagatorESProducer.h.
Referenced by TrackingRecHitPropagatorESProducer().
boost::shared_ptr<TrackingRecHitPropagator> TrackingRecHitPropagatorESProducer::theHitPropagator [private] |