Skip to content

Commit 2bc608e

Browse files
committed
ITS: deltaRof
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 32cd535 commit 2bc608e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,13 +863,16 @@ void TrackerTraits<nLayers>::findRoads(const int iteration)
863863
}
864864
}
865865
}
866-
if (rofs[2] != INT_MAX) {
866+
if (rofs[2] != INT_MAX) { // should not possible to be in 3 rofs
867867
continue;
868868
}
869869
track.setUserField(0);
870870
track.getParamOut().setUserField(0);
871871
if (rofs[1] != INT_MAX) {
872872
track.setNextROFbit();
873+
if (std::abs(rofs[0] - rofs[1]) > 1) { // if there was second rof, it should be exactly one away
874+
continue;
875+
}
873876
}
874877
mTimeFrame->getTracks(o2::gpu::CAMath::Min(rofs[0], rofs[1])).emplace_back(track);
875878
}

0 commit comments

Comments
 (0)