Skip to content

Commit caeb52c

Browse files
stefanopolitanoalcaliva
authored andcommitted
PWGHF: adjust mother-daughter indexing in generator (#1715)
(cherry picked from commit dc99792)
1 parent 5854378 commit caeb52c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MC/config/PWGHF/external/generator/generator_pythia8_embed_hf.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Bool_t importParticles() override
146146

147147
/// adjust the particle mother and daughter indices
148148
if(particle.GetFirstMother() >= 0) particle.SetFirstMother(particle.GetFirstMother() + originalSize);
149+
if(particle.GetSecondMother() >= 0) particle.SetLastMother(particle.GetSecondMother() + originalSize);
149150
if(particle.GetFirstDaughter() >= 0) particle.SetFirstDaughter(particle.GetFirstDaughter() + originalSize);
150151
if(particle.GetLastDaughter() >= 0) particle.SetLastDaughter(particle.GetLastDaughter() + originalSize);
151152

0 commit comments

Comments
 (0)