#include <TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimatorESProducer.h>
Public Member Functions | |
Chi2MeasurementEstimatorESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < Chi2MeasurementEstimatorBase > | produce (const TrackingComponentsRecord &) |
virtual | ~Chi2MeasurementEstimatorESProducer () |
Private Attributes | |
boost::shared_ptr < Chi2MeasurementEstimatorBase > | _estimator |
edm::ParameterSet | pset_ |
Definition at line 18 of file Chi2MeasurementEstimatorESProducer.h.
Chi2MeasurementEstimatorESProducer::Chi2MeasurementEstimatorESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 15 of file Chi2MeasurementEstimatorESProducer.cc.
References edm::ParameterSet::getParameter(), pset_, and edm::ESProducer::setWhatProduced().
00016 { 00017 std::string myname = p.getParameter<std::string>("ComponentName"); 00018 pset_ = p; 00019 setWhatProduced(this,myname); 00020 }
Chi2MeasurementEstimatorESProducer::~Chi2MeasurementEstimatorESProducer | ( | ) | [virtual] |
boost::shared_ptr< Chi2MeasurementEstimatorBase > Chi2MeasurementEstimatorESProducer::produce | ( | const TrackingComponentsRecord & | iRecord | ) |
Definition at line 25 of file Chi2MeasurementEstimatorESProducer.cc.
References _estimator, Chi2MeasurementEstimatorESProducer_cfi::Chi2MeasurementEstimator, edm::ParameterSet::getParameter(), HLT_VtxMuL3::nSigma, and pset_.
00025 { 00026 // if (_updator){ 00027 // delete _updator; 00028 // _updator = 0; 00029 // } 00030 double maxChi2 = pset_.getParameter<double>("MaxChi2"); 00031 double nSigma = pset_.getParameter<double>("nSigma"); 00032 00033 00034 _estimator = boost::shared_ptr<Chi2MeasurementEstimatorBase>(new Chi2MeasurementEstimator(maxChi2,nSigma)); 00035 return _estimator; 00036 }
boost::shared_ptr<Chi2MeasurementEstimatorBase> Chi2MeasurementEstimatorESProducer::_estimator [private] |
Definition at line 25 of file Chi2MeasurementEstimatorESProducer.h.
Referenced by Chi2MeasurementEstimatorESProducer(), and produce().