Skip to content

Commit

Permalink
bug fix in PatternRecognition by FastJet
Browse files Browse the repository at this point in the history
  • Loading branch information
waredjeb committed Aug 1, 2022
1 parent d103406 commit 4010151
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RecoHGCal/TICL/plugins/PatternRecognitionbyFastJet.cc
Expand Up @@ -53,7 +53,11 @@ void PatternRecognitionbyFastJet<TILES>::buildJetAndTracksters(std::vector<Pseud
}

auto trackster_idx = result.size();
result.resize(trackster_idx + jets.size());
auto jetsSize = std::count_if(jets.begin(), jets.end(), [=](fastjet::PseudoJet jet) {
return jet.constituents().size() > static_cast<unsigned int>(minNumLayerCluster_);
});
result.resize(trackster_idx + jetsSize);

for (const auto &pj : jets) {
if (pj.constituents().size() > static_cast<unsigned int>(minNumLayerCluster_)) {
for (const auto &component : pj.constituents()) {
Expand Down

0 comments on commit 4010151

Please sign in to comment.