From 0836933faad08f397065e9b3ccc22e9fcf5851fa Mon Sep 17 00:00:00 2001 From: Felix Riehn <felix@matilda> Date: Sat, 25 May 2019 11:46:13 +0100 Subject: [PATCH] adjusted testParticleCut, muons are not invisible anymore --- Processes/ParticleCut/testParticleCut.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Processes/ParticleCut/testParticleCut.cc b/Processes/ParticleCut/testParticleCut.cc index c6948f27a..072045b0c 100644 --- a/Processes/ParticleCut/testParticleCut.cc +++ b/Processes/ParticleCut/testParticleCut.cc @@ -46,7 +46,7 @@ TEST_CASE("ParticleCut", "[processes]") { particles::Code::Electron, particles::Code::MuPlus, particles::Code::NuE, particles::Code::Neutron}; - SECTION("cut invisible") { + SECTION("cut invisible and em") { ParticleCut cut(20_GeV); @@ -73,7 +73,7 @@ TEST_CASE("ParticleCut", "[processes]") { cut.DoSecondaries(view); - REQUIRE(view.GetSize() == 6); + REQUIRE(view.GetSize() == 7); } SECTION("cut low energy") { @@ -92,7 +92,6 @@ TEST_CASE("ParticleCut", "[processes]") { // only this way the secondary view is populated auto projectile = view.GetProjectile(); // add secondaries, all with energies below the threshold - // only cut is by species for (auto proType : particleList) projectile.AddSecondary(std::tuple<particles::Code, units::si::HEPEnergyType, corsika::stack::MomentumVector, geometry::Point, -- GitLab