test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Chi2MeasurementEstimatorBase.cc
Go to the documentation of this file.
4 
6  const Plane& plane) const
7 {
8  if ( ts.hasError()) {
9  return plane.bounds().inside( ts.localPosition(),
11  nSigmaCut());
12  }
13  else return plane.bounds().inside(ts.localPosition());
14 }
15 
18  const Plane& plane) const
19 {
20  const float emax = theMaxDisplacement;
21  if ( ts.hasError()) {
23  return Local2DVector( std::min(emax,std::sqrt(float(le.xx())))*nSigmaCut(), std::min(emax,std::sqrt(float(le.yy())))*nSigmaCut());
24  }
25  else return Local2DVector(emax,emax);
26 }
float xx() const
Definition: LocalError.h:24
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &) const =0
const Bounds & bounds() const
Definition: Surface.h:120
virtual Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const final
LocalError positionError() const
Definition: Plane.h:17
float yy() const
Definition: LocalError.h:26
Vector2DBase< float, LocalTag > Local2DVector
T sqrt(T t)
Definition: SSEVec.h:18
T min(T a, T b)
Definition: MathUtil.h:58
const LocalTrajectoryError & localError() const