10 #include <tracking/ckf/pxd/filters/relations/DistancePXDPairFilter.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 CKFToPXDState::stateCache& fromStateCache = fromState.
getStateCache();
25 const CKFToPXDState::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 (abs(phiDiff) < 0.2) {
42 if (fromStateCache.geoLayer == toStateCache.geoLayer and
43 fromStateCache.sensorID.getSensorNumber() == toStateCache.sensorID.getSensorNumber()) {
49 if (abs(phiDiff) < 0.05) {