Skip to content

Commit 7d9bcd8

Browse files
committed
ITS: fix seeding vertex labels
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 2f7ce66 commit 7d9bcd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,6 @@ void VertexerTraits::computeVertices(const int iteration)
482482
}
483483
}
484484
for (int rofId{0}; rofId < mTimeFrame->getNrof(); ++rofId) {
485-
vertices.clear();
486485
std::sort(mTimeFrame->getTrackletClusters(rofId).begin(), mTimeFrame->getTrackletClusters(rofId).end(),
487486
[](ClusterLines& cluster1, ClusterLines& cluster2) { return cluster1.getSize() > cluster2.getSize(); }); // ensure clusters are ordered by contributors, so that we can cat after the first.
488487
#ifdef VTX_DEBUG
@@ -541,6 +540,8 @@ void VertexerTraits::computeVertices(const int iteration)
541540
if (vertices.empty() && !(iteration && (int)mTimeFrame->getPrimaryVertices(rofId).size() > mVrtParams[iteration].vertPerRofThreshold)) {
542541
mTimeFrame->getNoVertexROF()++;
543542
}
543+
vertices.clear();
544+
polls.clear();
544545
}
545546
#ifdef VTX_DEBUG
546547
TFile* dbg_file = TFile::Open("artefacts_tf.root", "update");

0 commit comments

Comments
 (0)