From add4ca929631027197bb129d3f11882e5578f59e Mon Sep 17 00:00:00 2001 From: rulrich <ralf.m.ulrich@kit.edu> Date: Fri, 1 May 2020 14:29:36 +0200 Subject: [PATCH] make use of new unknown type in example --- Documentation/Examples/particle_list_example.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/Examples/particle_list_example.cc b/Documentation/Examples/particle_list_example.cc index 8a84319b5..659b0d0e0 100644 --- a/Documentation/Examples/particle_list_example.cc +++ b/Documentation/Examples/particle_list_example.cc @@ -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; } -- GitLab