CMS 3D CMS Logo

CkfTrajectoryBuilderESProducer Class Reference

#include <RecoTracker/CkfPattern/plugins/CkfTrajectoryBuilderESProducer.h>

Inheritance diagram for CkfTrajectoryBuilderESProducer:

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

List of all members.

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_


Detailed Description

Definition at line 10 of file CkfTrajectoryBuilderESProducer.h.


Constructor & Destructor Documentation

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]

Definition at line 33 of file CkfTrajectoryBuilderESProducer.cc.

00033 {}


Member Function Documentation

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 }


Member Data Documentation

boost::shared_ptr<TrajectoryBuilder> CkfTrajectoryBuilderESProducer::_trajectoryBuilder [private]

Definition at line 16 of file CkfTrajectoryBuilderESProducer.h.

Referenced by produce().

edm::ParameterSet CkfTrajectoryBuilderESProducer::pset_ [private]

Definition at line 17 of file CkfTrajectoryBuilderESProducer.h.

Referenced by CkfTrajectoryBuilderESProducer(), and produce().


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