Skip to content

Commit 8f3d9ee

Browse files
authored
Keep the original PDG code for versions older than 8313
1 parent 8910717 commit 8f3d9ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Generators/src/GeneratorPythia8.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,12 +654,14 @@ Bool_t
654654
// first particle is system
655655
auto particle = event[iparticle];
656656
auto pdg = particle.id();
657+
#if PYTHIA_VERSION_INTEGER >= 8313
657658
// Select nuclei (A PDG id code for nuclei is on the form 100ZZZAAAI)
658659
if (std::abs(pdg) > 1000000000) {
659660
// Ignore isospin
660661
pdg /= 10;
661662
pdg *= 10;
662663
}
664+
#endif
663665
auto st = o2::mcgenstatus::MCGenStatusEncoding(particle.statusHepMC(), //
664666
particle.status()) //
665667
.fullEncoding;

0 commit comments

Comments
 (0)