1 #ifndef RecoTracker_TkTrackingRegions_OuterHitCompatibility_H
2 #define RecoTracker_TkTrackingRegions_OuterHitCompatibility_H
22 template<
typename Algo>
28 const Algo & rzCompatibility)
29 : thePhiPrediction(phiPrediction),
30 theRZCompatibility(rzCompatibility) {}
35 auto hitR = hitPos.
perp();
37 auto hitZ = hitPos.z();
38 if ( !theRZCompatibility(hitR,hitZ) )
return false;
40 auto hitPhi = unsafe_atan2f<9>(hitPos.y(),hitPos.x());
42 return checkPhi(hitPhi, hitR);
47 auto hitPhiRange = thePhiPrediction(r);
49 bool phiOK = less(hitPhiRange.min(),
phi) && less(phi,hitPhiRange.max());
virtual GlobalPoint globalPosition() const
bool checkPhi(float phi, float r) const
OuterHitPhiPrediction thePhiPrediction
OuterHitCompatibility(const OuterHitPhiPrediction &phiPrediction, const Algo &rzCompatibility)