File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments