Skip to content

Commit 364c0bc

Browse files
authored
Preparation for Pythia8315 (#14286)
Preparations for Pythia8315 * Ignore nuclei isospin only if equal to 9. * Do not change the PDG code of beam remnants
1 parent d19711a commit 364c0bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Generators/src/GeneratorPythia8.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ Bool_t
657657
auto st = o2::mcgenstatus::MCGenStatusEncoding(particle.statusHepMC(), //
658658
particle.status()) //
659659
.fullEncoding;
660-
mParticles.push_back(TParticle(particle.id(), // Particle type
660+
mParticles.push_back(TParticle(pdg, // Particle type
661661
st, // status
662662
particle.mother1() - 1, // first mother
663663
particle.mother2() - 1, // second mother
@@ -776,7 +776,11 @@ void GeneratorPythia8::updateHeader(o2::dataformats::MCEventHeader* eventHeader)
776776
hiinfo->nAbsProj() + hiinfo->nDiffProj());
777777
eventHeader->putInfo<int>(Key::nPartTarget,
778778
hiinfo->nAbsTarg() + hiinfo->nDiffTarg());
779+
#if PYTHIA_VERSION_INTEGER >= 8313
780+
eventHeader->putInfo<int>(Key::nCollHard, hiinfo->nCollND());
781+
#else
779782
eventHeader->putInfo<int>(Key::nCollHard, hiinfo->nCollNDTot());
783+
#endif
780784
}
781785
}
782786

0 commit comments

Comments
 (0)