#include <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(), and AlCaHLTBitMon_ParallelJobs::p.
{ std::string myname = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myname); }
TrackingRecHitPropagatorESProducer::~TrackingRecHitPropagatorESProducer | ( | ) | [virtual] |
Definition at line 21 of file TrackingRecHitPropagatorESProducer.cc.
{}
boost::shared_ptr< TrackingRecHitPropagator > TrackingRecHitPropagatorESProducer::produce | ( | const TrackingComponentsRecord & | iRecord | ) |
Definition at line 24 of file TrackingRecHitPropagatorESProducer.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HLT_ES_cff::magfield, and edm::ESHandle< T >::product().
{ ESHandle<MagneticField> magfield; iRecord.getRecord<IdealMagneticFieldRecord>().get(magfield ); theHitPropagator= boost::shared_ptr<TrackingRecHitPropagator>(new TrackingRecHitPropagator(magfield.product())); return theHitPropagator; }
Definition at line 18 of file TrackingRecHitPropagatorESProducer.h.
boost::shared_ptr<TrackingRecHitPropagator> TrackingRecHitPropagatorESProducer::theHitPropagator [private] |
Definition at line 17 of file TrackingRecHitPropagatorESProducer.h.