#include <KFTrajectoryFitterESProducer.h>
Public Member Functions | |
KFTrajectoryFitterESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < TrajectoryFitter > | produce (const TrajectoryFitterRecord &) |
virtual | ~KFTrajectoryFitterESProducer () |
Private Attributes | |
boost::shared_ptr < TrajectoryFitter > | _fitter |
edm::ParameterSet | pset_ |
ESProducer for the KFTrajectoryFitter.
Definition at line 19 of file KFTrajectoryFitterESProducer.h.
KFTrajectoryFitterESProducer::KFTrajectoryFitterESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 20 of file KFTrajectoryFitterESProducer.cc.
References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_ParallelJobs::p.
{ std::string myname = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myname); }
KFTrajectoryFitterESProducer::~KFTrajectoryFitterESProducer | ( | ) | [virtual] |
Definition at line 27 of file KFTrajectoryFitterESProducer.cc.
{}
boost::shared_ptr< TrajectoryFitter > KFTrajectoryFitterESProducer::produce | ( | const TrajectoryFitterRecord & | iRecord | ) |
Definition at line 30 of file KFTrajectoryFitterESProducer.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), KFTrajectoryFitterESProducer_cfi::KFTrajectoryFitter, and edm::ESHandle< T >::product().
{ std::string pname = pset_.getParameter<std::string>("Propagator"); std::string uname = pset_.getParameter<std::string>("Updator"); std::string ename = pset_.getParameter<std::string>("Estimator"); std::string gname = pset_.getParameter<std::string>("RecoGeometry"); int minHits = pset_.getParameter<int>("minHits"); edm::ESHandle<Propagator> prop; edm::ESHandle<TrajectoryStateUpdator> upd; edm::ESHandle<Chi2MeasurementEstimatorBase> est; edm::ESHandle<DetLayerGeometry> geo; iRecord.getRecord<TrackingComponentsRecord>().get(pname, prop); iRecord.getRecord<TrackingComponentsRecord>().get(uname, upd); iRecord.getRecord<TrackingComponentsRecord>().get(ename, est); iRecord.getRecord<RecoGeometryRecord>().get(gname,geo); _fitter = boost::shared_ptr<TrajectoryFitter>(new KFTrajectoryFitter(prop.product(), upd.product(), est.product(), minHits, geo.product() )); return _fitter; }
boost::shared_ptr<TrajectoryFitter> KFTrajectoryFitterESProducer::_fitter [private] |
Definition at line 25 of file KFTrajectoryFitterESProducer.h.
Definition at line 26 of file KFTrajectoryFitterESProducer.h.