IAP GITLAB

Commit a9add3f4 authored by Ralf Ulrich's avatar Ralf Ulrich

slightly more informative output in initial config printout

git-svn-id: https://devel-ik.fzk.de/svn/mc/crmc/trunk@4969 c7a5e08c-de06-0410-9364-b41cf42a0b17
parent a2786a11
......@@ -299,6 +299,8 @@ const
case 208 : return "Pb"; break; // no pdg
case 2212 : return "p"; break;
case -2212: return "antip"; break;
case 2112: return "n"; break; // not so useful
case -2112: return "antin"; break; // not so useful
default:
{
ostringstream ss;
......@@ -347,6 +349,11 @@ CRMCoptions::DumpConfig() const
const int Z = fProjectileId/10000;
const int A = (fProjectileId%10000) / 10;
cout << " (A=" << A << ", Z=" << Z << ")";
} else {
const string pname = ParticleName(fProjectileId);
if (pname.find("pdg")!=0) {
cout << " (" << pname << ")";
}
}
cout << "\n"
<< " projectile momentum: " << fProjectileMomentum << "\n"
......@@ -355,6 +362,11 @@ CRMCoptions::DumpConfig() const
const int Z = fTargetId/10000;
const int A = (fTargetId%10000) / 10;
cout << " (A=" << A << ", Z=" << Z <<")";
} else {
const string pname = ParticleName(fTargetId);
if (pname.find("pdg")!=0) {
cout << " (" << pname << ")";
}
}
cout << "\n"
<< " target momentum: " << fTargetMomentum << "\n\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment