Skip to content

Commit e3dfff4

Browse files
mpucciosawenzel
authored andcommitted
Treat cases with first daughter index negative
@jgrosseo @sawenzel
1 parent 91cab65 commit e3dfff4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,9 @@ void AODProducerWorkflowDPL::fillMCParticlesTable(o2::steer::MCKinematicsReader&
728728
item = mToStore.find(Triplet_t(source, event, mcDaughterL));
729729
if (item != mToStore.end()) {
730730
daughters[1] = item->second;
731+
if (daughters[0] < 0) {
732+
daughters[0] = daughters[1]; /// Treat the case of first negative label (pruned in the kinematics)
733+
}
731734
} else {
732735
daughters[1] = daughters[0];
733736
}

0 commit comments

Comments
 (0)