diff --git a/corsika/detail/modules/energy_loss/BetheBlochPDG.inl b/corsika/detail/modules/energy_loss/BetheBlochPDG.inl index a1f36ea07fbef7f0c4e9f0ed1c5cd79789928865..add5d8bcda73674be89e4d0a6a050bef90876f5a 100644 --- a/corsika/detail/modules/energy_loss/BetheBlochPDG.inl +++ b/corsika/detail/modules/energy_loss/BetheBlochPDG.inl @@ -70,7 +70,7 @@ namespace corsika::energy_loss { double const gamma = E / m; int const Z = p.GetChargeNumber(); int const Z2 = Z * Z; - HEPMassType constexpr me = corsika::Electron::mass(); + HEPMassType constexpr me = corsika::Electron::mass; auto const m2 = m * m; auto constexpr me2 = me * me; double const gamma2 = gamma * gamma; diff --git a/corsika/detail/modules/qgsjetII/Interaction.inl b/corsika/detail/modules/qgsjetII/Interaction.inl index 0f5a5559164c7eed6c9954bba9063e1d761eca03..2acf1e55d16b73386d28132a7035d6b7a8af6174 100644 --- a/corsika/detail/modules/qgsjetII/Interaction.inl +++ b/corsika/detail/modules/qgsjetII/Interaction.inl @@ -291,8 +291,8 @@ namespace corsika::qgsjetII { auto momentum = corsika::Vector( zAxisFrame, corsika::QuantityVector<hepmomentum_d>{ 0.0_GeV, 0.0_GeV, - sqrt((projectileEnergyLab + corsika::Proton::mass()) * - (projectileEnergyLab - corsika::Proton::mass()))}); + sqrt((projectileEnergyLab + corsika::Proton::mass) * + (projectileEnergyLab - corsika::Proton::mass))}); auto const energy = sqrt(momentum.squaredNorm() + square(corsika::mass(idFragm))); diff --git a/corsika/framework/core/ParticleProperties.hpp b/corsika/framework/core/ParticleProperties.hpp index 041424e79679bd842d4f5f0c9371014beeeacf69..a6ef84a7c50eae90270575a2522c95079f807a9d 100644 --- a/corsika/framework/core/ParticleProperties.hpp +++ b/corsika/framework/core/ParticleProperties.hpp @@ -7,7 +7,7 @@ */ /** - @file Particles.h + @file ParticleProperties.hpp Interface to particle properties */ @@ -56,8 +56,9 @@ namespace corsika { bool constexpr is_neutrino(Code); //!< true iff particle is (anti-) neutrino int constexpr nucleus_A(Code); //!< returns A for hard-coded nucleus, otherwise 0 int constexpr nucleus_Z(Code); //!< returns Z for hard-coded nucleus, otherwise 0 - inline HEPMassType nucleus_mass( - int, int); //! returns mass of (A,Z) nucleus, disregarding binding energy + + //! returns mass of (A,Z) nucleus, disregarding binding energy + inline HEPMassType nucleus_mass(int, int); } // namespace corsika // data arrays, etc. diff --git a/tests/modules/testPythia8.cpp b/tests/modules/testPythia8.cpp index ea0f3c4c611d954a1c2707bc15811a608234608d..59eb2d1d6bec62559de1aa586fecf9b94f2271aa 100644 --- a/tests/modules/testPythia8.cpp +++ b/tests/modules/testPythia8.cpp @@ -111,7 +111,7 @@ TEST_CASE("pythia process") { setup::Stack stack; const HEPEnergyType E0 = 10_GeV; HEPMomentumType P0 = - sqrt(E0 * E0 - corsika::PiPlus::mass() * corsika::PiPlus::mass()); + sqrt(E0 * E0 - corsika::PiPlus::mass * corsika::PiPlus::mass); auto plab = corsika::MomentumVector(cs, {0_GeV, 0_GeV, -P0}); corsika::Point pos(cs, 0_m, 0_m, 0_m); auto particle = stack.AddParticle( @@ -139,7 +139,7 @@ TEST_CASE("pythia process") { setup::Stack stack; const HEPEnergyType E0 = 100_GeV; HEPMomentumType P0 = - sqrt(E0 * E0 - corsika::PiPlus::mass() * corsika::PiPlus::mass()); + sqrt(E0 * E0 - corsika::PiPlus::mass * corsika::PiPlus::mass); auto plab = corsika::MomentumVector(cs, {0_GeV, 0_GeV, -P0}); corsika::Point pos(cs, 0_m, 0_m, 0_m); auto particle = stack.AddParticle( diff --git a/tests/modules/testQGSJetII.cpp b/tests/modules/testQGSJetII.cpp index e145b73d1c5436c41a5f56fd20af6946d1467499..d138930d854871faae7dbce79ce17d6c4625b4d9 100644 --- a/tests/modules/testQGSJetII.cpp +++ b/tests/modules/testQGSJetII.cpp @@ -95,7 +95,7 @@ TEST_CASE("QgsjetIIInterface", "[processes]") { setup::Stack stack; const HEPEnergyType E0 = 100_GeV; HEPMomentumType P0 = - sqrt(E0 * E0 - corsika::Proton::mass() * corsika::Proton::mass()); + sqrt(E0 * E0 - corsika::Proton::mass * corsika::Proton::mass); auto plab = corsika::MomentumVector(cs, {0_GeV, 0_GeV, -P0}); corsika::Point pos(cs, 0_m, 0_m, 0_m); auto particle = stack.AddParticle( diff --git a/tests/modules/testSibyll.cpp b/tests/modules/testSibyll.cpp index c6666ab41844505182f05a0e18bd347f511bc180..4c49aabf93478f77441683ee4f6e0a64a9b2eb7f 100644 --- a/tests/modules/testSibyll.cpp +++ b/tests/modules/testSibyll.cpp @@ -101,7 +101,7 @@ TEST_CASE("SibyllInterface", "[processes]") { corsika::setup::Stack stack; const HEPEnergyType E0 = 100_GeV; - HEPMomentumType P0 = sqrt(E0 * E0 - Proton::mass() * Proton::mass()); + HEPMomentumType P0 = sqrt(E0 * E0 - Proton::mass * Proton::mass); auto plab = corsika::MomentumVector(cs, {0_GeV, 0_GeV, -P0}); corsika::Point pos(cs, 0_m, 0_m, 0_m); auto particle = stack.AddParticle( @@ -123,7 +123,7 @@ TEST_CASE("SibyllInterface", "[processes]") { setup::Stack stack; const HEPEnergyType E0 = 400_GeV; - HEPMomentumType P0 = sqrt(E0 * E0 - Proton::mass() * Proton::mass()); + HEPMomentumType P0 = sqrt(E0 * E0 - Proton::mass * Proton::mass); auto plab = corsika::MomentumVector(cs, {0_GeV, 0_GeV, -P0}); corsika::Point pos(cs, 0_m, 0_m, 0_m); @@ -147,7 +147,7 @@ TEST_CASE("SibyllInterface", "[processes]") { setup::Stack stack; const HEPEnergyType E0 = 10_GeV; - HEPMomentumType P0 = sqrt(E0 * E0 - Proton::mass() * Proton::mass()); + HEPMomentumType P0 = sqrt(E0 * E0 - Proton::mass * Proton::mass); auto plab = corsika::MomentumVector(cs, {0_GeV, 0_GeV, -P0}); corsika::Point pos(cs, 0_m, 0_m, 0_m); auto particle = stack.AddParticle(