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() ;
81 float myZmax = theZMax;
82 float myZmin = theZMin;
90 if( zDiff >= myZmax || zDiff <= myZmin )
return std::pair<bool,double>(
false,0.);
96 if ( (phiDiff < thePhiMax) & (phiDiff > thePhiMin) )
97 {
return std::pair<bool,double>(
true,1.) ; }
99 {
return std::pair<bool,double>(
false,0.) ; }
106 typedef std::pair<float,float>
Range;
111 Range trajZRange(trajPos.z() -
std::abs(theZMin), trajPos.z() +
std::abs(theZMax));
112 Range trajPhiRange(trajPos.phi() -
std::abs(thePhiMin), trajPos.phi() +
std::abs(thePhiMax));
139 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