CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Chi2MeasurementEstimatorESProducer.cc
Go to the documentation of this file.
4 
9 
10 #include <string>
11 #include <memory>
12 
13 using namespace edm;
14 
16 {
17  std::string myname = p.getParameter<std::string>("ComponentName");
18  pset_ = p;
19  setWhatProduced(this,myname);
20 }
21 
23 
24 boost::shared_ptr<Chi2MeasurementEstimatorBase>
26 // if (_updator){
27 // delete _updator;
28 // _updator = 0;
29 // }
30  double maxChi2 = pset_.getParameter<double>("MaxChi2");
31  double nSigma = pset_.getParameter<double>("nSigma");
32 
33 
34  _estimator = boost::shared_ptr<Chi2MeasurementEstimatorBase>(new Chi2MeasurementEstimator(maxChi2,nSigma));
35  return _estimator;
36 }
37 
38 
T getParameter(std::string const &) const
Chi2MeasurementEstimatorESProducer(const edm::ParameterSet &p)
boost::shared_ptr< Chi2MeasurementEstimatorBase > produce(const TrackingComponentsRecord &)