36 float rhR = gp.
perp();
37 float rDiff = tsR - rhR;
45 if( rDiff >= rMax || rDiff <= rMin )
return std::pair<bool,double>(
false,0.);
48 float rhPhi = gp.
phi();
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.);
85 float tsPhi = ts.
phi();
86 float rhPhi = gp.
phi();
88 float myPhimin = thePhiMin;
89 float myPhimax = thePhiMax;
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 ;
111 Range trajRRange(trajPos.perp() -
r1, trajPos.perp() +
r2);
112 Range trajPhiRange(trajPos.phi() -
std::abs(thePhiMin), trajPos.phi() +
std::abs(thePhiMax));
126 float nSigmaCut = 3.;
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
PixelRecoRange< float > Range
Geom::Phi< T > phi() const
Vector2DBase< float, LocalTag > Local2DVector
const Plane & surface() const
The nominal surface of the GeomDet.
LocalError positionError() const
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
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
GlobalPoint position() const
const GlobalTrajectoryParameters & globalParameters() const
volatile std::atomic< bool > shutdown_flag false
virtual LocalPoint localPosition() const =0