Skip to content

Commit 1826aac

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

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
@@ -132,6 +132,7 @@ Bool_t importParticles() override
132132

133133
/// adjust the particle mother and daughter indices
134134
if(particle.GetFirstMother() >= 0) particle.SetFirstMother(particle.GetFirstMother() + originalSize);
135+
if(particle.GetSecondMother() >= 0) particle.SetLastMother(particle.GetSecondMother() + originalSize);
135136
if(particle.GetFirstDaughter() >= 0) particle.SetFirstDaughter(particle.GetFirstDaughter() + originalSize);
136137
if(particle.GetLastDaughter() >= 0) particle.SetLastDaughter(particle.GetLastDaughter() + originalSize);
137138

0 commit comments

Comments
 (0)