diff --git a/Framework/Particles/ParticleProperties.h b/Framework/Particles/ParticleProperties.h index 2f5365eb0525183b2810da96e3c7b85fe9766570..7b2b6f7e5594efa6aa4c5014f002bcc78d328701 100644 --- a/Framework/Particles/ParticleProperties.h +++ b/Framework/Particles/ParticleProperties.h @@ -23,13 +23,12 @@ #include <iosfwd> #include <type_traits> -#include <corsika/units/PhysicalConstants.h> #include <corsika/units/PhysicalUnits.h> /** * * The properties of all elementary particles is stored here. The data - * is taken from the Pythia ParticleData.xml file. + * are taken from the Pythia ParticleData.xml file. * */ diff --git a/Framework/Particles/testParticles.cc b/Framework/Particles/testParticles.cc index 0603ea03575cb7668bed8e3e276b5c81f60e27c3..cba91b476f42e6ee540ebfbf64b5990c4e03ea81 100644 --- a/Framework/Particles/testParticles.cc +++ b/Framework/Particles/testParticles.cc @@ -34,6 +34,8 @@ TEST_CASE("ParticleProperties", "[Particles]") { SECTION("Masses") { REQUIRE(Electron::GetMass() / (511_keV) == Approx(1)); REQUIRE(Electron::GetMass() / GetMass(Code::Electron) == Approx(1)); + + REQUIRE((Proton::GetMass() + Neutron::GetMass()) / corsika::units::constants::nucleonMass == Approx(2)); } SECTION("Charges") { diff --git a/Framework/Units/PhysicalConstants.h b/Framework/Units/PhysicalConstants.h index 38c59992fe928228754e3a16658043308e71ab68..1bf9872a03ed3abee9bcb03ef93fd24250f14a50 100644 --- a/Framework/Units/PhysicalConstants.h +++ b/Framework/Units/PhysicalConstants.h @@ -61,7 +61,9 @@ namespace corsika::units::constants { // unified atomic mass unit constexpr quantity<mass_d> u{Rep(1.6605402e-27L) * kilogram}; - + + auto constexpr nucleonMass = 0.5 * (0.93827 + 0.93957) * 1e9 * electronvolt; + // etc. } // namespace corsika::units::constants