IAP GITLAB

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

clang

parent 7b3620e9
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"
Pipeline #1367 failed
......@@ -40,9 +40,7 @@ TEST_CASE("OnShellCheck", "[processes]") {
const HEPEnergyType E = 10_GeV;
// list of arbitrary particles
std::array<particles::Code, 4> particleList = {
particles::Code::PiPlus,
particles::Code::PiMinus,
particles::Code::Helium,
particles::Code::PiPlus, particles::Code::PiMinus, particles::Code::Helium,
particles::Code::Gamma};
std::array<double, 4> mass_shifts = {1.1, 1.001, 1.0, 1.0};
......@@ -61,7 +59,7 @@ TEST_CASE("OnShellCheck", "[processes]") {
corsika::stack::MomentumVector(rootCS, {0_GeV, 0_GeV, 0_GeV}),
geometry::Point(rootCS, 0_m, 0_m, 0_m), 0_ns});
// view on secondary particles
corsika::stack::SecondaryView view(particle);
corsika::stack::SecondaryView view(part./ icle);
// ref. to primary particle through the secondary view.
// only this way the secondary view is populated
auto projectile = view.GetProjectile();
......@@ -88,7 +86,6 @@ TEST_CASE("OnShellCheck", "[processes]") {
REQUIRE(m_kinetic / particles::PiPlus::GetMass() == Approx(1));
else if (i == 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