Skip to content

Commit 1956185

Browse files
committed
ITS: fix seeding vertex labels
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 4ccba81 commit 1956185

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ void VertexerTraits::computeVertices(const int iteration)
514514
}
515515
}
516516
for (int rofId{0}; rofId < mTimeFrame->getNrof(); ++rofId) {
517-
vertices.clear();
518517
std::sort(mTimeFrame->getTrackletClusters(rofId).begin(), mTimeFrame->getTrackletClusters(rofId).end(),
519518
[](ClusterLines& cluster1, ClusterLines& cluster2) { return cluster1.getSize() > cluster2.getSize(); }); // ensure clusters are ordered by contributors, so that we can cat after the first.
520519
#ifdef VTX_DEBUG
@@ -582,6 +581,8 @@ void VertexerTraits::computeVertices(const int iteration)
582581
if (vertices.empty() && !(iteration && (int)mTimeFrame->getPrimaryVertices(rofId).size() > mVrtParams[iteration].vertPerRofThreshold)) {
583582
mTimeFrame->getNoVertexROF()++;
584583
}
584+
vertices.clear();
585+
polls.clear();
585586
}
586587
#ifdef VTX_DEBUG
587588
TFile* dbg_file = TFile::Open("artefacts_tf.root", "update");

0 commit comments

Comments
 (0)