CMS 3D CMS Logo

TransientTrackBuilderESProducer Class Reference

#include <TrackingTools/TransientTrack/plugins/TransientTrackBuilderESProducer.h>

Inheritance diagram for TransientTrackBuilderESProducer:

edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

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_


Detailed Description

Definition at line 13 of file TransientTrackBuilderESProducer.h.


Constructor & Destructor Documentation

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]

Definition at line 21 of file TransientTrackBuilderESProducer.cc.

00021 {}


Member Function Documentation

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 }


Member Data Documentation

boost::shared_ptr<TransientTrackBuilder> TransientTrackBuilderESProducer::_builder [private]

Definition at line 19 of file TransientTrackBuilderESProducer.h.

Referenced by produce().

edm::ParameterSet TransientTrackBuilderESProducer::pset_ [private]

Definition at line 20 of file TransientTrackBuilderESProducer.h.

Referenced by TransientTrackBuilderESProducer().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:24 2009 for CMSSW by  doxygen 1.5.4