Skip to content

Commit

Permalink
reorder output and adapt check
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel authored and andresailer committed Nov 8, 2023
1 parent b02a325 commit 36cd729
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ConformalTracking.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2988,13 +2988,13 @@ void ConformalTracking::runStep(SharedKDClusters& kdClusters, UKDTree& nearestNe
buildNewTracks(conformalTracks, kdClusters, nearestNeighbours, thisParameters, parameters._radialSearch,
parameters._vertexToTracker);
} catch (TooManyTracksException& e) {
streamlog_out(MESSAGE) << "caught too many tracks, tightening parameters" << std::endl;
caughtException = true;
thisParameters.tighten();
if (not m_retryTooManyTracks || thisParameters._tightenStep > 10) {
if (not m_retryTooManyTracks || thisParameters._tightenStep >= 10) {
streamlog_out(ERROR) << "Skipping event" << std::endl;
throw;
}
streamlog_out(MESSAGE) << "caught too many tracks, tightening parameters" << std::endl;
thisParameters.tighten();
caughtException = true;
}
} while (caughtException);

Expand Down

0 comments on commit 36cd729

Please sign in to comment.