CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Chi2ChargeMeasurementEstimatorESProducer.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 
27  double maxChi2 = pset_.getParameter<double>("MaxChi2");
28  double nSigma = pset_.getParameter<double>("nSigma");
29  bool cutOnPixelCharge_ = pset_.exists("minGoodPixelCharge");
30  bool cutOnStripCharge_ = pset_.exists("minGoodStripCharge");
31  double minGoodPixelCharge_= (cutOnPixelCharge_ ? pset_.getParameter<double>("minGoodPixelCharge") : 0);
32  double minGoodStripCharge_= (cutOnStripCharge_ ? pset_.getParameter<double>("minGoodStripCharge") : 0);
33  double pTChargeCutThreshold_= (pset_.exists("pTChargeCutThreshold") ? pset_.getParameter<double>("pTChargeCutThreshold") : -1.);
34 
35  _estimator = boost::shared_ptr<Chi2MeasurementEstimatorBase>(
36  new Chi2ChargeMeasurementEstimator(maxChi2,nSigma, cutOnPixelCharge_, cutOnStripCharge_,
37  minGoodPixelCharge_, minGoodStripCharge_, pTChargeCutThreshold_));
38  return _estimator;
39 }
40 
41 
T getParameter(std::string const &) const
boost::shared_ptr< Chi2MeasurementEstimatorBase > produce(const TrackingComponentsRecord &)