From 36cd729764554e0be6520a0f3f4ad9c3e1bdd8c9 Mon Sep 17 00:00:00 2001 From: Leonhard Reichenbach Date: Tue, 7 Nov 2023 16:43:45 +0100 Subject: [PATCH] reorder output and adapt check --- src/ConformalTracking.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ConformalTracking.cc b/src/ConformalTracking.cc index 095eab8..cf6c2c9 100644 --- a/src/ConformalTracking.cc +++ b/src/ConformalTracking.cc @@ -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);