IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 4b975c10 authored by ralfulrich's avatar ralfulrich
Browse files

fixed typo in comment

parent 6f724ddf
No related branches found
No related tags found
1 merge request!83Resolve "Add energy loss process"
Pipeline #363 passed
...@@ -78,7 +78,7 @@ namespace corsika::particles { ...@@ -78,7 +78,7 @@ namespace corsika::particles {
*/ */
int16_t constexpr GetChargeNumber(Code const p) { int16_t constexpr GetChargeNumber(Code const p) {
if (p == Code::Nucleus) if (p == Code::Nucleus)
throw std::runtime_error("Cannot GetMass() of particle::Nucleus -> unspecified"); throw std::runtime_error("Cannot GetChargeNumber() of particle::Nucleus -> unspecified");
// electric_charges stores charges in units of (e/3), e.g. 3 for a proton // electric_charges stores charges in units of (e/3), e.g. 3 for a proton
return detail::electric_charges[static_cast<CodeIntType>(p)] / 3; return detail::electric_charges[static_cast<CodeIntType>(p)] / 3;
} }
...@@ -88,7 +88,7 @@ namespace corsika::particles { ...@@ -88,7 +88,7 @@ namespace corsika::particles {
*/ */
corsika::units::si::ElectricChargeType constexpr GetCharge(Code const p) { corsika::units::si::ElectricChargeType constexpr GetCharge(Code const p) {
if (p == Code::Nucleus) if (p == Code::Nucleus)
throw std::runtime_error("Cannot GetMass() of particle::Nucleus -> unspecified"); throw std::runtime_error("Cannot GetCharge() of particle::Nucleus -> unspecified");
return GetChargeNumber(p) * (corsika::units::constants::e); return GetChargeNumber(p) * (corsika::units::constants::e);
} }
......
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