1 #ifndef RecoTracker_TkTrackingRegions_OuterHitCompatibility_H 2 #define RecoTracker_TkTrackingRegions_OuterHitCompatibility_H 21 template<
typename Algo>
27 const Algo & rzCompatibility)
28 : thePhiPrediction(phiPrediction),
29 theRZCompatibility(rzCompatibility) {}
34 auto hitR = hitPos.
perp();
36 auto hitZ = hitPos.z();
37 if ( !theRZCompatibility(hitR,hitZ) )
return false;
39 auto hitPhi = unsafe_atan2f<9>(hitPos.y(),hitPos.x());
41 return checkPhi(hitPhi, hitR);
46 auto hitPhiRange = thePhiPrediction(r);
virtual GlobalPoint globalPosition() const
bool phiLess(float phi1, float phi2)
bool checkPhi(float phi, float r) const
OuterHitPhiPrediction thePhiPrediction
OuterHitCompatibility(const OuterHitPhiPrediction &phiPrediction, const Algo &rzCompatibility)