25 const CKFToSVDState::stateCache& fromStateCache = fromState.
getStateCache();
26 const CKFToSVDState::stateCache& toStateCache = toState.
getStateCache();
28 B2ASSERT(
"You have filled the wrong states into this!", toStateCache.isHitState);
30 if (not fromStateCache.isHitState) {
33 float phiDiff = fromStateCache.phi - toStateCache.sensorCenterPhi;
34 while (phiDiff > M_PI) phiDiff -= 2. * M_PI;
35 while (phiDiff < -M_PI) phiDiff += 2. * M_PI;
47 if (fromStateCache.geoLayer == toStateCache.geoLayer and
56 const int sensorNumberDifference =
58 const int layerNumberDifference =
59 static_cast<int>(fromStateCache.geoLayer) -
static_cast<int>(toStateCache.geoLayer);
61 if ((abs(sensorNumberDifference) > 1 and layerNumberDifference == 1) or (abs(sensorNumberDifference) > 2)) {
65 float phiDiff = fromStateCache.sensorCenterPhi - toStateCache.sensorCenterPhi;
66 while (phiDiff > M_PI) phiDiff -= 2. * M_PI;
67 while (phiDiff < -M_PI) phiDiff += 2. * M_PI;