40 float myR = gp.
perp();
51 if( zDiff >= myZmax || zDiff <= myZmin )
return std::pair<bool,double>(
false,0.);
55 float rhPhi = gp.
phi();
57 float phiDiff = tsPhi - rhPhi;
58 if (phiDiff >
pi) phiDiff -= twopi;
59 if (phiDiff < -
pi) phiDiff += twopi;
61 if ( phiDiff < thePhiMax && phiDiff >
thePhiMin ) {
63 return std::pair<bool,double>(
true,1.);
66 return std::pair<bool,double>(
false,0.);
79 float myR = gp.
perp();
81 float zDiff = myZ -ts.
z() ;
82 float myZmax = theZMax;
83 float myZmin = theZMin;
91 if( zDiff >= myZmax || zDiff <= myZmin )
return std::pair<bool,double>(
false,0.);
93 float rhPhi = gp.
phi() ;
94 float tsPhi = ts.
phi();
97 if ( phiDiff < thePhiMax && phiDiff > thePhiMin )
98 {
return std::pair<bool,double>(
true,1.) ; }
100 {
return std::pair<bool,double>(
false,0.) ; }
107 typedef std::pair<float,float>
Range;
113 Range trajZRange(trajPos.z() -
std::abs(theZMin), trajPos.z() +
std::abs(theZMax));
114 Range trajPhiRange(trajPos.phi() -
std::abs(thePhiMin), trajPos.phi() +
std::abs(thePhiMax));
141 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
GlobalPoint position() const
const GlobalTrajectoryParameters & globalParameters() const
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const
volatile std::atomic< bool > shutdown_flag false
virtual LocalPoint localPosition() const =0
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const