CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Chi2Switching1DEstimator.h
Go to the documentation of this file.
1 #ifndef Chi2Switching1DEstimator_H_
2 #define Chi2Switching1DEstimator_H_
3 
16 
18 
19 public:
20 
21  explicit Chi2Switching1DEstimator(double aMaxChi2, double nSigma = 3.) :
22  Chi2MeasurementEstimatorBase(aMaxChi2,nSigma),
23  theLocalEstimator(aMaxChi2,nSigma),
24  theStripEstimator(aMaxChi2,nSigma) {}
25 
27  virtual std::pair<bool, double> estimate(const TrajectoryStateOnSurface& aTsos,
28  const TrackingRecHit& aHit) const;
29 
30  virtual Chi2Switching1DEstimator* clone() const
31  {
32  return new Chi2Switching1DEstimator(*this);
33  }
34 
35 private:
38  return theLocalEstimator;
39  }
42  return theStripEstimator;
43  }
44 
45 private:
48 
49 };
50 #endif //Chi2Switching1DEstimator_H_
51 
52 
53 
#define GCC11_FINAL
const Chi2MeasurementEstimator theLocalEstimator
const Chi2Strip1DEstimator & stripEstimator() const
estimator for 1D hits (non-matched strips)
Chi2Switching1DEstimator(double aMaxChi2, double nSigma=3.)
virtual Chi2Switching1DEstimator * clone() const
const Chi2Strip1DEstimator theStripEstimator
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &aTsos, const TrackingRecHit &aHit) const
implementation of MeasurementEstimator::estimate
const Chi2MeasurementEstimator & localEstimator() const
estimator for 2D hits (matched or pixel)