#include <TrackingTools/TransientTrack/plugins/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(), pset_, and edm::ESProducer::setWhatProduced().
00015 { 00016 std::string myname = p.getParameter<std::string>("ComponentName"); 00017 pset_ = p; 00018 setWhatProduced(this,myname); 00019 }
TransientTrackBuilderESProducer::~TransientTrackBuilderESProducer | ( | ) | [virtual] |
boost::shared_ptr< TransientTrackBuilder > TransientTrackBuilderESProducer::produce | ( | const TransientTrackRecord & | iRecord | ) |
Definition at line 24 of file TransientTrackBuilderESProducer.cc.
References _builder, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), volumeBasedMagneticField_1103l_cfi::magfield, and edm::ESHandle< T >::product().
00024 { 00025 00026 edm::ESHandle<MagneticField> magfield; 00027 iRecord.getRecord<IdealMagneticFieldRecord>().get( magfield ); 00028 edm::ESHandle<GlobalTrackingGeometry> theTrackingGeometry; 00029 iRecord.getRecord<GlobalTrackingGeometryRecord>().get(theTrackingGeometry); 00030 00031 _builder = boost::shared_ptr<TransientTrackBuilder>( 00032 new TransientTrackBuilder(magfield.product(), theTrackingGeometry )); 00033 return _builder; 00034 00035 }
boost::shared_ptr<TransientTrackBuilder> TransientTrackBuilderESProducer::_builder [private] |
Definition at line 20 of file TransientTrackBuilderESProducer.h.
Referenced by TransientTrackBuilderESProducer().