IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 28331cdf authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

convert_from_PDG() for nuclei

parent d867e35a
No related branches found
No related tags found
1 merge request!468Resolve "Add FLUKA"
......@@ -132,6 +132,11 @@ namespace corsika {
if (std::abs(k) <= maxPDG) {
return particle::detail::conversionArray[k + maxPDG];
} else {
if (1000000000 <= k && k <= 1009999990) { // nucleus (no L or I)
int const Z = (k - 1000000000) / 10000;
int const A = (k - 1000000000 - 10000 * Z) / 10;
return get_nucleus_code(A, Z);
}
return particle::detail::conversionMap.at(p);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment