IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 9baf1e64 authored by Felix Riehn's avatar Felix Riehn Committed by ralfulrich
Browse files

adjusted testParticleCut, muons are not invisible anymore

parent 9530b4f5
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ TEST_CASE("ParticleCut", "[processes]") { ...@@ -46,7 +46,7 @@ TEST_CASE("ParticleCut", "[processes]") {
particles::Code::Electron, particles::Code::MuPlus, particles::Code::NuE, particles::Code::Electron, particles::Code::MuPlus, particles::Code::NuE,
particles::Code::Neutron}; particles::Code::Neutron};
SECTION("cut invisible") { SECTION("cut invisible and em") {
ParticleCut cut(20_GeV); ParticleCut cut(20_GeV);
...@@ -73,7 +73,7 @@ TEST_CASE("ParticleCut", "[processes]") { ...@@ -73,7 +73,7 @@ TEST_CASE("ParticleCut", "[processes]") {
cut.DoSecondaries(view); cut.DoSecondaries(view);
REQUIRE(view.GetSize() == 6); REQUIRE(view.GetSize() == 7);
} }
SECTION("cut low energy") { SECTION("cut low energy") {
...@@ -92,7 +92,6 @@ TEST_CASE("ParticleCut", "[processes]") { ...@@ -92,7 +92,6 @@ TEST_CASE("ParticleCut", "[processes]") {
// only this way the secondary view is populated // only this way the secondary view is populated
auto projectile = view.GetProjectile(); auto projectile = view.GetProjectile();
// add secondaries, all with energies below the threshold // add secondaries, all with energies below the threshold
// only cut is by species
for (auto proType : particleList) for (auto proType : particleList)
projectile.AddSecondary(std::tuple<particles::Code, units::si::HEPEnergyType, projectile.AddSecondary(std::tuple<particles::Code, units::si::HEPEnergyType,
corsika::stack::MomentumVector, geometry::Point, corsika::stack::MomentumVector, geometry::Point,
......
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