From 9c35341a62e9048519f1472d5aeb0a7fbc3fedff Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Thu, 26 Jun 2025 10:20:36 +0200 Subject: [PATCH] ITS: fix seeding vertex labels Signed-off-by: Felix Schlepper --- Detectors/ITSMFT/ITS/tracking/src/VertexerTraits.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Detectors/ITSMFT/ITS/tracking/src/VertexerTraits.cxx b/Detectors/ITSMFT/ITS/tracking/src/VertexerTraits.cxx index 51cd98aa1366d..c43d8fd4e2ed7 100644 --- a/Detectors/ITSMFT/ITS/tracking/src/VertexerTraits.cxx +++ b/Detectors/ITSMFT/ITS/tracking/src/VertexerTraits.cxx @@ -482,7 +482,6 @@ void VertexerTraits::computeVertices(const int iteration) } } for (int rofId{0}; rofId < mTimeFrame->getNrof(); ++rofId) { - vertices.clear(); std::sort(mTimeFrame->getTrackletClusters(rofId).begin(), mTimeFrame->getTrackletClusters(rofId).end(), [](ClusterLines& cluster1, ClusterLines& cluster2) { return cluster1.getSize() > cluster2.getSize(); }); // ensure clusters are ordered by contributors, so that we can cat after the first. #ifdef VTX_DEBUG @@ -541,6 +540,8 @@ void VertexerTraits::computeVertices(const int iteration) if (vertices.empty() && !(iteration && (int)mTimeFrame->getPrimaryVertices(rofId).size() > mVrtParams[iteration].vertPerRofThreshold)) { mTimeFrame->getNoVertexROF()++; } + vertices.clear(); + polls.clear(); } #ifdef VTX_DEBUG TFile* dbg_file = TFile::Open("artefacts_tf.root", "update");