IAP GITLAB

Skip to content
Snippets Groups Projects
Commit add4ca92 authored by Ralf M Ulrich's avatar Ralf M Ulrich
Browse files

make use of new unknown type in example

parent a0270927
No related branches found
No related tags found
No related merge requests found
......@@ -47,13 +47,17 @@ int main() {
? to_string(corsika::process::sibyll::GetSibyllMass(p) / 1_GeV)
: "--");
auto const qgs_id =
static_cast<int>(corsika::process::qgsjetII::ConvertToQgsjetII(p));
corsika::process::qgsjetII::ConvertToQgsjetII(p);
cout << std::setw(20) << std::setfill(' ') << p << " | " << std::setw(10)
<< static_cast<int>(GetPDG(p)) << " | " << std::setw(10)
<< (sib_id != corsika::process::sibyll::SibyllCode::Unknown
? to_string(static_cast<int>(sib_id))
: "--")
<< " | " << std::setw(10) << (qgs_id != 0 ? to_string(qgs_id) : "--") << " | "
<< " | " << std::setw(10)
<< (qgs_id != corsika::process::qgsjetII::QgsjetIICode::Unknown
? to_string(static_cast<int>(qgs_id))
: "--")
<< " | "
<< std::setw(18) << std::setprecision(5) << GetMass(p) / 1_GeV << " | "
<< std::setw(18) << std::setprecision(5) << sib_mass << " | " << endl;
}
......
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