CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Chi2SwitchingEstimator.cc
Go to the documentation of this file.
4 
5 std::pair<bool,double>
7  const TransientTrackingRecHit& aHit) const {
8  if(//aHit.isMatched() ||
9  aHit.detUnit()->type().isTrackerPixel()) {
10  return localEstimator().estimate(aTsos, aHit);
11  } else {
12  return stripEstimator().estimate(aTsos, aHit);
13  }
14 }
const Chi2StripEstimator & stripEstimator() const
estimator for 1D hits (non-matched strips)
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &aTsos, const TransientTrackingRecHit &aHit) const
implementation of MeasurementEstimator::estimate
const Chi2MeasurementEstimator & localEstimator() const
estimator for 2D hits (matched or pixel)
virtual const GeomDetType & type() const =0
bool isTrackerPixel() const
Definition: GeomDetType.cc:30
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const
virtual const GeomDetUnit * detUnit() const