39 float rhPhi = gp.
phi();
40 float rhR = gp.
perp();
55 float phiDiff = tsPhi - rhPhi;
56 if (phiDiff >
pi) phiDiff -= twopi;
57 if (phiDiff < -
pi) phiDiff += twopi;
59 float rDiff = tsR - rhR;
61 if ( phiDiff < myPhimax && phiDiff > myPhimin &&
62 rDiff < rMax && rDiff > rMin) {
63 return std::pair<bool,double>(
true,1.);
65 return std::pair<bool,double>(
false,0.);
77 float tsR = ts.
perp();
78 float tsPhi = ts.
phi();
80 float rhPhi = gp.
phi();
81 float rhR = gp.
perp();
87 float myPhimin = thePhiMin;
88 float myPhimax = thePhiMax;
97 float rDiff = rhR - tsR;
99 if ( phiDiff < myPhimax && phiDiff > myPhimin && rDiff < rMax && rDiff > rMin)
100 {
return std::pair<bool,double>(
true,1.) ; }
102 {
return std::pair<bool,double>(
false,0.) ; }
109 typedef std::pair<float,float>
Range ;
117 Range trajRRange(trajPos.perp() -
r1, trajPos.perp() +
r2);
118 Range trajPhiRange(trajPos.phi() -
std::abs(thePhiMin), trajPos.phi() +
std::abs(thePhiMax));
132 float nSigmaCut = 3.;
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &hit) const
Geom::Phi< T > phi() const
Vector2DBase< float, LocalTag > Local2DVector
virtual const GeomDet * det() const =0
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
const Plane & surface() const
The nominal surface of the GeomDet.
LocalError positionError() const
RealType normalized_phi(RealType phi)
bool rangesIntersect(const Range &a, const Range &b)
const LocalTrajectoryError & localError() const
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
GlobalPoint position() const
PixelRecoRange< float > Range
const GlobalTrajectoryParameters & globalParameters() const
virtual LocalPoint localPosition() const =0