1 #ifndef RecoTracker_TkTrackingRegions_OuterHitCompatibility_H 2 #define RecoTracker_TkTrackingRegions_OuterHitCompatibility_H 20 template <
typename Algo>
24 : thePhiPrediction(phiPrediction), theRZCompatibility(rzCompatibility) {}
28 auto hitR = hitPos.
perp();
30 auto hitZ = hitPos.z();
31 if (!theRZCompatibility(hitR, hitZ))
34 auto hitPhi = unsafe_atan2f<9>(hitPos.y(), hitPos.x());
36 return checkPhi(hitPhi, hitR);
40 auto hitPhiRange = thePhiPrediction(r);
virtual GlobalPoint globalPosition() const
bool phiLess(float phi1, float phi2)
bool operator()(const TrackingRecHit &hit) const
bool checkPhi(float phi, float r) const
OuterHitPhiPrediction thePhiPrediction
OuterHitCompatibility(const OuterHitPhiPrediction &phiPrediction, const Algo &rzCompatibility)