diff --git a/Examples/Algorithms/TrackFinding/src/TrackFindingAlgorithm.cpp b/Examples/Algorithms/TrackFinding/src/TrackFindingAlgorithm.cpp index 543b5c82bb7..bf1335dd249 100644 --- a/Examples/Algorithms/TrackFinding/src/TrackFindingAlgorithm.cpp +++ b/Examples/Algorithms/TrackFinding/src/TrackFindingAlgorithm.cpp @@ -200,6 +200,7 @@ ActsExamples::ProcessCode ActsExamples::TrackFindingAlgorithm::execute( continue; } + // number of second tracks found std::size_t nSecond = 0; // Set the seed number, this number decrease by 1 since the seed number @@ -299,6 +300,7 @@ ActsExamples::ProcessCode ActsExamples::TrackFindingAlgorithm::execute( } } + // if no second track was found, we will use only the first track if (nSecond == 0) { auto firstExtrapolationResult = Acts::extrapolateTrackToReferenceSurface(