#include <TrackingTools/TrackFitters/plugins/KFTrajectoryFitterESProducer.h>
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_ |
Definition at line 18 of file KFTrajectoryFitterESProducer.h.
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] |
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 }
boost::shared_ptr<TrajectoryFitter> KFTrajectoryFitterESProducer::_fitter [private] |
Definition at line 25 of file KFTrajectoryFitterESProducer.h.
Referenced by KFTrajectoryFitterESProducer(), and produce().