38 float rhPhi = gp.
phi();
39 float rhR = gp.
perp();
54 float phiDiff = tsPhi - rhPhi;
55 if (phiDiff >
pi) phiDiff -= twopi;
56 if (phiDiff < -
pi) phiDiff += twopi;
58 float rDiff = tsR - rhR;
60 if ( phiDiff < myPhimax && phiDiff > myPhimin &&
61 rDiff < rMax && rDiff > rMin) {
62 return std::pair<bool,double>(
true,1.);
64 return std::pair<bool,double>(
false,0.);
76 float tsR = ts.
perp();
77 float tsPhi = ts.
phi();
79 float rhPhi = gp.
phi();
80 float rhR = gp.
perp();
86 float myPhimin = thePhiMin;
87 float myPhimax = thePhiMax;
96 float rDiff = rhR - tsR;
98 if ( phiDiff < myPhimax && phiDiff > myPhimin && rDiff < rMax && rDiff > rMin)
99 {
return std::pair<bool,double>(
true,1.) ; }
101 {
return std::pair<bool,double>(
false,0.) ; }
108 typedef std::pair<float,float>
Range ;
116 Range trajRRange(trajPos.perp() -
r1, trajPos.perp() +
r2);
117 Range trajPhiRange(trajPos.phi() -
std::abs(thePhiMin), trajPos.phi() +
std::abs(thePhiMax));
131 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)
Abs< T >::type abs(const T &t)
const LocalTrajectoryError & localError() const
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
GlobalPoint position() const
PixelRecoRange< float > Range
const GlobalTrajectoryParameters & globalParameters() const
volatile std::atomic< bool > shutdown_flag false
virtual LocalPoint localPosition() const =0