40 float myR = gp.
perp();
52 float rhPhi = gp.
phi();
55 float phiDiff = tsPhi - rhPhi;
56 if (phiDiff >
pi) phiDiff -= twopi;
57 if (phiDiff < -
pi) phiDiff += twopi;
62 if ( phiDiff < thePhiMax && phiDiff >
thePhiMin &&
63 zDiff < myZmax && zDiff > myZmin) {
65 return std::pair<bool,double>(
true,1.);
68 return std::pair<bool,double>(
false,0.);
81 float tsPhi = ts.
phi();
82 float myR = gp.
perp();
85 float myZmax = theZMax;
86 float myZmin = theZMin;
94 float rhPhi = gp.
phi() ;
95 float zDiff = gp.
z()-ts.
z() ;
98 if ( phiDiff < thePhiMax && phiDiff > thePhiMin && zDiff < myZmax && zDiff > myZmin)
99 {
return std::pair<bool,double>(
true,1.) ; }
101 {
return std::pair<bool,double>(
false,0.) ; }
108 typedef std::pair<float,float>
Range;
114 Range trajZRange(trajPos.z() -
std::abs(theZMin), trajPos.z() +
std::abs(theZMax));
115 Range trajPhiRange(trajPos.phi() -
std::abs(thePhiMin), trajPos.phi() +
std::abs(thePhiMax));
142 float nSigmaCut = 3. ;
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Geom::Phi< T > phi() const
Vector2DBase< float, LocalTag > Local2DVector
LocalError positionError() const
RealType normalized_phi(RealType phi)
bool rangesIntersect(const Range &a, const Range &b)
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &hit) const
const LocalTrajectoryError & localError() const
GlobalPoint position() const
PixelRecoRange< float > Range
const GlobalTrajectoryParameters & globalParameters() const
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
virtual LocalPoint localPosition() const =0
virtual const BoundPlane & surface() const
The nominal surface of the GeomDet.
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const