39 float myR = gp.
perp();
50 if( zDiff >= myZmax || zDiff <= myZmin )
return std::pair<bool,double>(
false,0.);
54 float rhPhi = gp.
phi();
56 float phiDiff = tsPhi - rhPhi;
57 if (phiDiff >
pi) phiDiff -= twopi;
58 if (phiDiff < -
pi) phiDiff += twopi;
60 if ( phiDiff < thePhiMax && phiDiff >
thePhiMin ) {
62 return std::pair<bool,double>(
true,1.);
65 return std::pair<bool,double>(
false,0.);
78 float myR = gp.
perp();
80 float zDiff = myZ -ts.
z() ;
90 if( zDiff >= myZmax || zDiff <= myZmin )
return std::pair<bool,double>(
false,0.);
97 {
return std::pair<bool,double>(
true,1.) ; }
99 {
return std::pair<bool,double>(
false,0.) ; }
106 typedef std::pair<float,float>
Range;
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Geom::Phi< T > phi() 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)
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const override
Abs< T >::type abs(const T &t)
const LocalTrajectoryError & localError() const
virtual LocalPoint localPosition() const =0
GlobalPoint position() const
const GlobalTrajectoryParameters & globalParameters() const
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const override