#include <TransientTrackBuilderESProducer.h>
Public Member Functions | |
boost::shared_ptr < TransientTrackBuilder > | produce (const TransientTrackRecord &) |
TransientTrackBuilderESProducer (const edm::ParameterSet &p) | |
virtual | ~TransientTrackBuilderESProducer () |
Private Attributes | |
boost::shared_ptr < TransientTrackBuilder > | _builder |
edm::ParameterSet | pset_ |
Definition at line 13 of file TransientTrackBuilderESProducer.h.
TransientTrackBuilderESProducer::TransientTrackBuilderESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 14 of file TransientTrackBuilderESProducer.cc.
References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_ParallelJobs::p.
{ std::string myname = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myname); }
TransientTrackBuilderESProducer::~TransientTrackBuilderESProducer | ( | ) | [virtual] |
Definition at line 21 of file TransientTrackBuilderESProducer.cc.
{}
boost::shared_ptr< TransientTrackBuilder > TransientTrackBuilderESProducer::produce | ( | const TransientTrackRecord & | iRecord | ) |
Definition at line 24 of file TransientTrackBuilderESProducer.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), autoMagneticFieldProducer_cfi::magfield, and edm::ESHandle< T >::product().
{ edm::ESHandle<MagneticField> magfield; iRecord.getRecord<IdealMagneticFieldRecord>().get( magfield ); edm::ESHandle<GlobalTrackingGeometry> theTrackingGeometry; iRecord.getRecord<GlobalTrackingGeometryRecord>().get(theTrackingGeometry); _builder = boost::shared_ptr<TransientTrackBuilder>( new TransientTrackBuilder(magfield.product(), theTrackingGeometry )); return _builder; }
boost::shared_ptr<TransientTrackBuilder> TransientTrackBuilderESProducer::_builder [private] |
Definition at line 19 of file TransientTrackBuilderESProducer.h.
Definition at line 20 of file TransientTrackBuilderESProducer.h.