CMS 3D CMS Logo

Chi2MeasurementEstimatorBase.cc
Go to the documentation of this file.
4 
6  if (ts.hasError()) {
7  return plane.bounds().inside(ts.localPosition(), ts.localError().positionError(), nSigmaCut());
8  } else
9  return plane.bounds().inside(ts.localPosition());
10 }
11 
13  const TrajectoryStateOnSurface& ts, const Plane& plane) const {
14  const float emax = theMaxDisplacement;
15  if (ts.hasError()) {
17  return Local2DVector(std::min(emax, std::sqrt(float(le.xx()))) * nSigmaCut(),
18  std::min(emax, std::sqrt(float(le.yy()))) * nSigmaCut());
19  } else
20  return Local2DVector(emax, emax);
21 }
Chi2MeasurementEstimatorBase.h
TrajectoryStateOnSurface.h
LocalTrajectoryError::positionError
LocalError positionError() const
Definition: LocalTrajectoryError.h:81
Chi2MeasurementEstimatorBase::nSigmaCut
double nSigmaCut() const
Definition: Chi2MeasurementEstimatorBase.h:37
min
T min(T a, T b)
Definition: MathUtil.h:58
Chi2MeasurementEstimatorBase::estimate
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &) const override=0
MeasurementEstimator::Local2DVector
Vector2DBase< float, LocalTag > Local2DVector
Definition: MeasurementEstimator.h:26
Plane.h
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
Chi2MeasurementEstimatorBase::theMaxDisplacement
const float theMaxDisplacement
Definition: Chi2MeasurementEstimatorBase.h:47
Bounds::inside
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
LocalError::xx
float xx() const
Definition: LocalError.h:22
TrajectoryStateOnSurface::hasError
bool hasError() const
Definition: TrajectoryStateOnSurface.h:56
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
Surface::bounds
const Bounds & bounds() const
Definition: Surface.h:87
Vector2DBase
Definition: Vector2DBase.h:8
TrajectoryStateOnSurface::localPosition
LocalPoint localPosition() const
Definition: TrajectoryStateOnSurface.h:74
LocalError
Definition: LocalError.h:12
Plane
Definition: Plane.h:16
Chi2MeasurementEstimatorBase::maximalLocalDisplacement
Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const final
Definition: Chi2MeasurementEstimatorBase.cc:12
TrajectoryStateOnSurface::localError
const LocalTrajectoryError & localError() const
Definition: TrajectoryStateOnSurface.h:77
LocalError::yy
float yy() const
Definition: LocalError.h:24