#include <RecoTracker/CkfPattern/plugins/CkfTrajectoryBuilderESProducer.h>
Public Member Functions | |
CkfTrajectoryBuilderESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < TrajectoryBuilder > | produce (const CkfComponentsRecord &) |
virtual | ~CkfTrajectoryBuilderESProducer () |
Private Attributes | |
boost::shared_ptr < TrajectoryBuilder > | _trajectoryBuilder |
edm::ParameterSet | pset_ |
Definition at line 10 of file CkfTrajectoryBuilderESProducer.h.
CkfTrajectoryBuilderESProducer::CkfTrajectoryBuilderESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 26 of file CkfTrajectoryBuilderESProducer.cc.
References edm::ParameterSet::getParameter(), pset_, and edm::ESProducer::setWhatProduced().
00027 { 00028 std::string myName = p.getParameter<std::string>("ComponentName"); 00029 pset_ = p; 00030 setWhatProduced(this,myName); 00031 }
CkfTrajectoryBuilderESProducer::~CkfTrajectoryBuilderESProducer | ( | ) | [virtual] |
boost::shared_ptr< TrajectoryBuilder > CkfTrajectoryBuilderESProducer::produce | ( | const CkfComponentsRecord & | iRecord | ) |
Definition at line 36 of file CkfTrajectoryBuilderESProducer.cc.
References _trajectoryBuilder, CkfTrajectoryBuilderESProducer_cfi::CkfTrajectoryBuilder, edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::ParameterSet::getParameter(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HLT_VtxMuL3::measurementTrackerName, edm::ESHandle< T >::product(), and pset_.
00037 { 00038 std::string updatorName = pset_.getParameter<std::string>("updator"); 00039 std::string propagatorAlongName = pset_.getParameter<std::string>("propagatorAlong"); 00040 std::string propagatorOppositeName = pset_.getParameter<std::string>("propagatorOpposite"); 00041 std::string estimatorName = pset_.getParameter<std::string>("estimator"); 00042 std::string recHitBuilderName = pset_.getParameter<std::string>("TTRHBuilder"); 00043 std::string measurementTrackerName = pset_.getParameter<std::string>("MeasurementTrackerName"); 00044 std::string filterName = pset_.getParameter<std::string>("trajectoryFilterName"); 00045 00046 00047 edm::ESHandle<TrajectoryStateUpdator> updatorHandle; 00048 edm::ESHandle<Propagator> propagatorAlongHandle; 00049 edm::ESHandle<Propagator> propagatorOppositeHandle; 00050 edm::ESHandle<Chi2MeasurementEstimatorBase> estimatorHandle; 00051 edm::ESHandle<TransientTrackingRecHitBuilder> recHitBuilderHandle; 00052 edm::ESHandle<MeasurementTracker> measurementTrackerHandle; 00053 edm::ESHandle<TrajectoryFilter> filterHandle; 00054 00055 iRecord.getRecord<TrackingComponentsRecord>().get(updatorName,updatorHandle); 00056 iRecord.getRecord<TrackingComponentsRecord>().get(propagatorAlongName,propagatorAlongHandle); 00057 iRecord.getRecord<TrackingComponentsRecord>().get(propagatorOppositeName,propagatorOppositeHandle); 00058 iRecord.getRecord<TrackingComponentsRecord>().get(estimatorName,estimatorHandle); 00059 iRecord.getRecord<TransientRecHitRecord>().get(recHitBuilderName,recHitBuilderHandle); 00060 iRecord.get(measurementTrackerName, measurementTrackerHandle); 00061 iRecord.getRecord<TrajectoryFilter::Record>().get(filterName, filterHandle); 00062 00063 _trajectoryBuilder = 00064 boost::shared_ptr<TrajectoryBuilder>(new CkfTrajectoryBuilder(pset_, 00065 updatorHandle.product(), 00066 propagatorAlongHandle.product(), 00067 propagatorOppositeHandle.product(), 00068 estimatorHandle.product(), 00069 recHitBuilderHandle.product(), 00070 measurementTrackerHandle.product(), 00071 filterHandle.product()) ); 00072 return _trajectoryBuilder; 00073 }
boost::shared_ptr<TrajectoryBuilder> CkfTrajectoryBuilderESProducer::_trajectoryBuilder [private] |
Definition at line 17 of file CkfTrajectoryBuilderESProducer.h.
Referenced by CkfTrajectoryBuilderESProducer(), and produce().