36 float rhR = gp.
perp();
37 float rDiff = tsR - rhR;
45 if( rDiff >= rMax || rDiff <= rMin )
return std::pair<bool,double>(
false,0.);
53 float phiDiff = tsPhi - rhPhi;
54 if (phiDiff >
pi) phiDiff -= twopi;
55 if (phiDiff < -
pi) phiDiff += twopi;
57 if ( (phiDiff < myPhimax) & (phiDiff > myPhimin) ) {
58 return std::pair<bool,double>(
true,1.);
60 return std::pair<bool,double>(
false,0.);
72 float rhR = gp.
perp();
73 float tsR = ts.
perp();
74 float rDiff = rhR - tsR;
83 if( (rDiff >= rMax) | (rDiff <= rMin) )
return std::pair<bool,double>(
false,0.);
93 if ( phiDiff < myPhimax && phiDiff > myPhimin )
94 {
return std::pair<bool,double>(
true,1.) ; }
96 {
return std::pair<bool,double>(
false,0.) ; }
103 typedef std::pair<float,float>
Range ;
110 Range trajRRange(trajPos.perp() -
r1, trajPos.perp() +
r2);
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
const Plane & surface() const
The nominal surface of the GeomDet.
LocalError positionError() const
PixelRecoRange< float > Range
Vector2DBase< float, LocalTag > Local2DVector
const GeomDet * det() const
RealType normalized_phi(RealType phi)
bool rangesIntersect(const Range &a, const Range &b)
Abs< T >::type abs(const T &t)
const LocalTrajectoryError & localError() const
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const
virtual LocalPoint localPosition() const =0
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
GlobalPoint position() const
const GlobalTrajectoryParameters & globalParameters() const