IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 2e4e5eb0 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by ralfulrich
Browse files

coding conventions

parent f7a61f96
No related branches found
No related tags found
1 merge request!280Refactory 2020
...@@ -33,7 +33,7 @@ namespace corsika { ...@@ -33,7 +33,7 @@ namespace corsika {
return get_charge_number(code) * constants::e; return get_charge_number(code) * constants::e;
} }
constexpr std::string_view get_name(Code const code) { std::string_view constexpr get_name(Code const code) {
return particle::detail::names[static_cast<CodeIntType>(code)]; return particle::detail::names[static_cast<CodeIntType>(code)];
} }
......
...@@ -47,7 +47,7 @@ namespace corsika { ...@@ -47,7 +47,7 @@ namespace corsika {
//! Particle code according to PDG, "Monte Carlo Particle Numbering Scheme" //! Particle code according to PDG, "Monte Carlo Particle Numbering Scheme"
PDGCode constexpr get_PDG(Code); PDGCode constexpr get_PDG(Code);
constexpr std::string_view get_name(Code); //!< name of the particle as string std::string_view constexpr get_name(Code); //!< name of the particle as string
TimeType constexpr get_lifetime(Code); //!< lifetime TimeType constexpr get_lifetime(Code); //!< lifetime
//! true iff the particle is a hard-coded nucleus or Code::Nucleus //! true iff the particle is a hard-coded nucleus or Code::Nucleus
......
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