We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e358016 commit 1613545Copy full SHA for 1613545
Generators/src/GeneratorPythia8.cxx
@@ -654,14 +654,12 @@ Bool_t
654
// first particle is system
655
auto particle = event[iparticle];
656
auto pdg = particle.id();
657
-#if PYTHIA_VERSION_INTEGER >= 8313
658
// Select nuclei (A PDG id code for nuclei is on the form 100ZZZAAAI)
659
if (std::abs(pdg) > 1000000000) {
660
- // Ignore isospin
661
- pdg /= 10;
662
- pdg *= 10;
+ // Ignore isospin if equal to 9
+ auto pdgNoI = (pdg/10)*10;
+ if (std::abs(pdg-pdgNoI) == 9) pdg=pdgNoI;
663
}
664
-#endif
665
auto st = o2::mcgenstatus::MCGenStatusEncoding(particle.statusHepMC(), //
666
particle.status()) //
667
.fullEncoding;
0 commit comments