From 40101515fa0e40f81234bdd122428ddd88630baa Mon Sep 17 00:00:00 2001 From: Wahid Redjeb Date: Mon, 1 Aug 2022 16:11:31 +0200 Subject: [PATCH] bug fix in PatternRecognition by FastJet --- RecoHGCal/TICL/plugins/PatternRecognitionbyFastJet.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RecoHGCal/TICL/plugins/PatternRecognitionbyFastJet.cc b/RecoHGCal/TICL/plugins/PatternRecognitionbyFastJet.cc index 21eba683e5ab2..7b041b6279a67 100644 --- a/RecoHGCal/TICL/plugins/PatternRecognitionbyFastJet.cc +++ b/RecoHGCal/TICL/plugins/PatternRecognitionbyFastJet.cc @@ -53,7 +53,11 @@ void PatternRecognitionbyFastJet::buildJetAndTracksters(std::vector static_cast(minNumLayerCluster_); + }); + result.resize(trackster_idx + jetsSize); + for (const auto &pj : jets) { if (pj.constituents().size() > static_cast(minNumLayerCluster_)) { for (const auto &component : pj.constituents()) {