39 float myR = gp.
perp();
51 float rhPhi = gp.
phi();
54 float phiDiff = tsPhi - rhPhi;
55 if (phiDiff >
pi) phiDiff -= twopi;
56 if (phiDiff < -
pi) phiDiff += twopi;
61 if ( phiDiff < thePhiMax && phiDiff >
thePhiMin &&
62 zDiff < myZmax && zDiff > myZmin) {
64 return std::pair<bool,double>(
true,1.);
67 return std::pair<bool,double>(
false,0.);
80 float tsPhi = ts.
phi();
81 float myR = gp.
perp();
84 float myZmax = theZMax;
85 float myZmin = theZMin;
93 float rhPhi = gp.
phi() ;
94 float zDiff = gp.
z()-ts.
z() ;
97 if ( phiDiff < thePhiMax && phiDiff > thePhiMin && zDiff < myZmax && zDiff > myZmin)
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
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)
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
volatile std::atomic< bool > shutdown_flag false
virtual LocalPoint localPosition() const =0
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const