10 #include <tracking/ckf/svd/filters/relations/DistanceSVDPairFilter.h>
11 #include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
13 #include <tracking/spacePointCreation/SpacePoint.h>
16 using namespace TrackFindingCDC;
18 TrackFindingCDC::Weight
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 double 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 (fabs(phiDiff) < 0.2 and fabs(fromStateCache.theta - toStateCache.theta) < 0.2) {
43 if (fromStateCache.geoLayer == toStateCache.geoLayer and
44 fromStateCache.sensorID.getSensorNumber() == toStateCache.sensorID.getSensorNumber()) {
50 if (abs(phiDiff) < 0.2) {