IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 5fa15a5d authored by Felix Riehn's avatar Felix Riehn
Browse files

clang

parent c39c7315
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!201Resolve "handling of off-shell particles"
...@@ -40,9 +40,7 @@ TEST_CASE("OnShellCheck", "[processes]") { ...@@ -40,9 +40,7 @@ TEST_CASE("OnShellCheck", "[processes]") {
const HEPEnergyType E = 10_GeV; const HEPEnergyType E = 10_GeV;
// list of arbitrary particles // list of arbitrary particles
std::array<particles::Code, 4> particleList = { std::array<particles::Code, 4> particleList = {
particles::Code::PiPlus, particles::Code::PiPlus, particles::Code::PiMinus, particles::Code::Helium,
particles::Code::PiMinus,
particles::Code::Helium,
particles::Code::Gamma}; particles::Code::Gamma};
std::array<double, 4> mass_shifts = {1.1, 1.001, 1.0, 1.0}; std::array<double, 4> mass_shifts = {1.1, 1.001, 1.0, 1.0};
...@@ -61,7 +59,7 @@ TEST_CASE("OnShellCheck", "[processes]") { ...@@ -61,7 +59,7 @@ TEST_CASE("OnShellCheck", "[processes]") {
corsika::stack::MomentumVector(rootCS, {0_GeV, 0_GeV, 0_GeV}), corsika::stack::MomentumVector(rootCS, {0_GeV, 0_GeV, 0_GeV}),
geometry::Point(rootCS, 0_m, 0_m, 0_m), 0_ns}); geometry::Point(rootCS, 0_m, 0_m, 0_m), 0_ns});
// view on secondary particles // view on secondary particles
corsika::stack::SecondaryView view(particle); corsika::stack::SecondaryView view(part./ icle);
// ref. to primary particle through the secondary view. // ref. to primary particle through the secondary view.
// only this way the secondary view is populated // only this way the secondary view is populated
auto projectile = view.GetProjectile(); auto projectile = view.GetProjectile();
...@@ -88,7 +86,6 @@ TEST_CASE("OnShellCheck", "[processes]") { ...@@ -88,7 +86,6 @@ TEST_CASE("OnShellCheck", "[processes]") {
REQUIRE(m_kinetic / particles::PiPlus::GetMass() == Approx(1)); REQUIRE(m_kinetic / particles::PiPlus::GetMass() == Approx(1));
else if (i == 1) else if (i == 1)
REQUIRE_FALSE(m_kinetic / particles::PiMinus::GetMass() == Approx(1)); REQUIRE_FALSE(m_kinetic / particles::PiMinus::GetMass() == Approx(1));
} }
} }
} }
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