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 }
const LocalTrajectoryError & localError() const
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
LocalError positionError() const
Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const final
Definition: Plane.h:16
float yy() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:23
Vector2DBase< float, LocalTag > Local2DVector
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &) const override=0
float xx() const
Definition: LocalError.h:22
const Bounds & bounds() const
Definition: Surface.h:87