#include <RecoTracker/DebugTools/interface/CkfDebugTrajectoryBuilderESProducer.h>
Public Member Functions | |
CkfDebugTrajectoryBuilderESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < TrajectoryBuilder > | produce (const CkfComponentsRecord &) |
virtual | ~CkfDebugTrajectoryBuilderESProducer () |
Private Attributes | |
boost::shared_ptr < TrajectoryBuilder > | _trajectoryBuilder |
edm::ParameterSet | pset_ |
Definition at line 10 of file CkfDebugTrajectoryBuilderESProducer.h.
CkfDebugTrajectoryBuilderESProducer::CkfDebugTrajectoryBuilderESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 25 of file CkfDebugTrajectoryBuilderESProducer.cc.
References edm::ParameterSet::getParameter(), pset_, and edm::ESProducer::setWhatProduced().
00026 { 00027 std::string myName = p.getParameter<std::string>("ComponentName"); 00028 pset_ = p; 00029 setWhatProduced(this,myName); 00030 }
CkfDebugTrajectoryBuilderESProducer::~CkfDebugTrajectoryBuilderESProducer | ( | ) | [virtual] |
boost::shared_ptr< TrajectoryBuilder > CkfDebugTrajectoryBuilderESProducer::produce | ( | const CkfComponentsRecord & | iRecord | ) |
Definition at line 35 of file CkfDebugTrajectoryBuilderESProducer.cc.
References _trajectoryBuilder, edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::ParameterSet::getParameter(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), edm::ESHandle< T >::product(), and pset_.
00036 { 00037 std::string updatorName = pset_.getParameter<std::string>("updator"); 00038 std::string propagatorAlongName = pset_.getParameter<std::string>("propagatorAlong"); 00039 std::string propagatorOppositeName = pset_.getParameter<std::string>("propagatorOpposite"); 00040 std::string estimatorName = pset_.getParameter<std::string>("estimator"); 00041 std::string recHitBuilderName = pset_.getParameter<std::string>("TTRHBuilder"); 00042 00043 edm::ESHandle<TrajectoryStateUpdator> updatorHandle; 00044 edm::ESHandle<Propagator> propagatorAlongHandle; 00045 edm::ESHandle<Propagator> propagatorOppositeHandle; 00046 edm::ESHandle<Chi2MeasurementEstimatorBase> estimatorHandle; 00047 edm::ESHandle<TransientTrackingRecHitBuilder> recHitBuilderHandle; 00048 edm::ESHandle<MeasurementTracker> measurementTrackerHandle; 00049 00050 iRecord.getRecord<TrackingComponentsRecord>().get(updatorName,updatorHandle); 00051 iRecord.getRecord<TrackingComponentsRecord>().get(propagatorAlongName,propagatorAlongHandle); 00052 iRecord.getRecord<TrackingComponentsRecord>().get(propagatorOppositeName,propagatorOppositeHandle); 00053 iRecord.getRecord<TrackingComponentsRecord>().get(estimatorName,estimatorHandle); 00054 iRecord.getRecord<TransientRecHitRecord>().get(recHitBuilderName,recHitBuilderHandle); 00055 iRecord.get(measurementTrackerHandle); 00056 00057 _trajectoryBuilder = 00058 boost::shared_ptr<TrajectoryBuilder>(new CkfDebugTrajectoryBuilder(pset_, 00059 updatorHandle.product(), 00060 propagatorAlongHandle.product(), 00061 propagatorOppositeHandle.product(), 00062 estimatorHandle.product(), 00063 recHitBuilderHandle.product(), 00064 measurementTrackerHandle.product()) ); 00065 // CkfDebugger dbg( es, theMeasurementTracker); 00066 // _trajectoryBuilder->setDebugger( dbg); 00067 return _trajectoryBuilder; 00068 }
boost::shared_ptr<TrajectoryBuilder> CkfDebugTrajectoryBuilderESProducer::_trajectoryBuilder [private] |
Definition at line 17 of file CkfDebugTrajectoryBuilderESProducer.h.
Referenced by CkfDebugTrajectoryBuilderESProducer(), and produce().