Skip to content

Commit

Permalink
Bugfix in MCParticle::get_indices_MotherByIndex.
Browse files Browse the repository at this point in the history
In some cases with identical particles in the decay chain requested, decays could be selected that did not correspond to the one requested.
  • Loading branch information
EmanuelPerez committed Oct 6, 2023
1 parent b969668 commit 660a4a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions analyzers/dataframe/src/MCParticle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ ROOT::VecOps::RVec<int> get_indices_MotherByIndex ( int imother,
// careful, there can be several particles with the same PDG !
if (std::find(found.begin(), found.end(), idx_d) == found.end()) { // idx_d has NOT already been "used"
found.push_back( idx_d );
break;
}
}
}
Expand Down

0 comments on commit 660a4a7

Please sign in to comment.