IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 032cd829 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

fixed p/n joke

parent be17d655
No related branches found
No related tags found
No related merge requests found
...@@ -236,9 +236,9 @@ int main(int argc, char** argv) { ...@@ -236,9 +236,9 @@ int main(int argc, char** argv) {
beamCode = convert_from_PDG(PDGCode(app["--pdg"]->as<int>())); beamCode = convert_from_PDG(PDGCode(app["--pdg"]->as<int>()));
} else { } else {
// check manually for proton and neutrons // check manually for proton and neutrons
if ((A == 0) && (Z == 1)) if ((A == 1) && (Z == 1))
beamCode = Code::Proton; beamCode = Code::Proton;
else if ((A == 1) && (Z == 1)) else if ((A == 1) && (Z == 0))
beamCode = Code::Neutron; beamCode = Code::Neutron;
else else
beamCode = get_nucleus_code(A, Z); beamCode = get_nucleus_code(A, Z);
......
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