24 const CKFToSVDState::stateCache& fromStateCache = fromState.
getStateCache();
25 const CKFToSVDState::stateCache& toStateCache = toState.
getStateCache();
27 B2ASSERT(
"You have filled the wrong states into this!", toStateCache.isHitState);
29 float phiDiff = fromStateCache.phi - toStateCache.phi;
30 while (phiDiff > M_PI) phiDiff -= 2. * M_PI;
31 while (phiDiff < -M_PI) phiDiff += 2. * M_PI;
33 if (not fromStateCache.isHitState) {
35 if (std::abs(phiDiff) < 0.2f and std::abs(fromStateCache.theta - toStateCache.theta) < 0.2f) {
43 if (fromStateCache.geoLayer == toStateCache.geoLayer and
50 if (std::abs(phiDiff) < 0.2f) {