Skip to content

Commit

Permalink
fix DaughterTrackId
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSamitz committed Feb 1, 2024
1 parent 3860e7f commit 10fcb4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Detectors/AOD/src/AODMcProducerHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void updateParticle(const ParticleCursor& cursor,
if ((id = mapping(track.getFirstDaughterTrackId())) >= 0) {
daughters[0] = id;
}
if ((id = mapping(track.getFirstDaughterTrackId())) >= 0) {
if ((id = mapping(track.getLastDaughterTrackId())) >= 0) {
daughters[1] = id;
} else {
daughters[1] = daughters[0];
Expand Down

0 comments on commit 10fcb4a

Please sign in to comment.