CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
float xx() const
Definition: LocalError.h:22
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
const Bounds & bounds() const
Definition: Surface.h:87
Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const final
LocalError positionError() const
Definition: Plane.h:16
float yy() const
Definition: LocalError.h:24
T sqrt(T t)
Definition: SSEVec.h:19
Vector2DBase< float, LocalTag > Local2DVector
T min(T a, T b)
Definition: MathUtil.h:58
const LocalTrajectoryError & localError() const
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &) const override=0