Skip to content

Commit

Permalink
Adding protection in all_invariant_masses computation
Browse files Browse the repository at this point in the history
  • Loading branch information
atishelmanch committed Jan 31, 2024
1 parent bb9370d commit 033d838
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions analyzers/dataframe/src/JetConstituentsUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,8 @@ namespace FCCAnalyses

rv::RVec<double> InvariantMasses;

if(AllJets.size() < 2) return InvariantMasses;

// For each jet, take its invariant mass with the remaining jets. Stop at last jet.
for(int i = 0; i < AllJets.size()-1; ++i) {

Expand Down

0 comments on commit 033d838

Please sign in to comment.