CMS 3D CMS Logo

KFTrajectoryFitterESProducer Class Reference

ESProducer for the KFTrajectoryFitter. More...

#include <TrackingTools/TrackFitters/plugins/KFTrajectoryFitterESProducer.h>

Inheritance diagram for KFTrajectoryFitterESProducer:

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

List of all members.

Public Member Functions

 KFTrajectoryFitterESProducer (const edm::ParameterSet &p)
boost::shared_ptr
< TrajectoryFitter
produce (const TrackingComponentsRecord &)
virtual ~KFTrajectoryFitterESProducer ()

Private Attributes

boost::shared_ptr
< TrajectoryFitter
_fitter
edm::ParameterSet pset_


Detailed Description

ESProducer for the KFTrajectoryFitter.

Date
2007/05/09 14:17:58
Revision
1.2
Author:
cerati

Definition at line 18 of file KFTrajectoryFitterESProducer.h.


Constructor & Destructor Documentation

KFTrajectoryFitterESProducer::KFTrajectoryFitterESProducer ( const edm::ParameterSet p  ) 

Definition at line 20 of file KFTrajectoryFitterESProducer.cc.

References edm::ParameterSet::getParameter(), pset_, and edm::ESProducer::setWhatProduced().

00021 {
00022   std::string myname = p.getParameter<std::string>("ComponentName");
00023   pset_ = p;
00024   setWhatProduced(this,myname);
00025 }

KFTrajectoryFitterESProducer::~KFTrajectoryFitterESProducer (  )  [virtual]

Definition at line 27 of file KFTrajectoryFitterESProducer.cc.

00027 {}


Member Function Documentation

boost::shared_ptr< TrajectoryFitter > KFTrajectoryFitterESProducer::produce ( const TrackingComponentsRecord iRecord  ) 

Definition at line 30 of file KFTrajectoryFitterESProducer.cc.

References _fitter, edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::ParameterSet::getParameter(), KFTrajectoryFitterESProducer_cfi::KFTrajectoryFitter, HLT_VtxMuL3::minHits, edm::ESHandle< T >::product(), and pset_.

00030                                                                              { 
00031 
00032   std::string pname = pset_.getParameter<std::string>("Propagator");
00033   std::string uname = pset_.getParameter<std::string>("Updator");
00034   std::string ename = pset_.getParameter<std::string>("Estimator");
00035   int minHits = pset_.getParameter<int>("minHits");
00036 
00037   edm::ESHandle<Propagator> prop;
00038   edm::ESHandle<TrajectoryStateUpdator> upd;
00039   edm::ESHandle<Chi2MeasurementEstimatorBase> est;
00040 
00041   iRecord.get(pname, prop);
00042   iRecord.get(uname, upd);
00043   iRecord.get(ename, est);
00044 
00045   _fitter  = boost::shared_ptr<TrajectoryFitter>(new KFTrajectoryFitter(prop.product(),
00046                                                                         upd.product(),
00047                                                                         est.product(),
00048                                                                         minHits));
00049   return _fitter;
00050 }


Member Data Documentation

boost::shared_ptr<TrajectoryFitter> KFTrajectoryFitterESProducer::_fitter [private]

Definition at line 24 of file KFTrajectoryFitterESProducer.h.

Referenced by produce().

edm::ParameterSet KFTrajectoryFitterESProducer::pset_ [private]

Definition at line 25 of file KFTrajectoryFitterESProducer.h.

Referenced by KFTrajectoryFitterESProducer(), and produce().


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