From b26d2081f380d3e6bfea71afc9ba9a5d0752dba5 Mon Sep 17 00:00:00 2001 From: Felix Riehn <friehn@lip.pt> Date: Tue, 25 Jun 2024 13:48:29 +0200 Subject: [PATCH] make test more verbose --- tests/modules/testPythia8Interaction.inl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/modules/testPythia8Interaction.inl b/tests/modules/testPythia8Interaction.inl index cc848125d..449792723 100644 --- a/tests/modules/testPythia8Interaction.inl +++ b/tests/modules/testPythia8Interaction.inl @@ -14,9 +14,13 @@ in testPytha8.cpp eg #include "tests/modules/testPythia8Interaction.inl" */ #include "corsika/framework/core/EnergyMomentumOperations.hpp" +#include "corsika/framework/core/Logging.hpp" #include "corsika/framework/core/PhysicalUnits.hpp" + SECTION("pythia interaction") { + logging::set_level(logging::level::debug); + // this will be a p-p collision at sqrts=3.5TeV -> no problem for pythia auto [stackPtr, secViewPtr] = setup::testing::setup_stack( Code::Proton, 7_TeV, (DummyEnvironment::BaseNodeType* const)nodePtr, *csPtr); @@ -33,11 +37,12 @@ SECTION("pythia interaction") { REQUIRE_FALSE(collision.canInteract(Code::Electron)); // test some combinations of valid target and projectile particles - Code const target = - GENERATE(Code::Proton, Code::Neutron, Code::Nitrogen, Code::Oxygen, Code::Argon); + // so far only hadron-hadron and hadron-Nucleus is allowed + Code const target = GENERATE(Code::Proton, Code::Nitrogen, Code::Oxygen, Code::Argon); Code const projectile = - GENERATE(Code::Proton, Code::Neutron, Code::PiPlus, Code::Oxygen, Code::Iron); - corsika::units::si::HEPMomentumType P0 = 100_GeV; + GENERATE(Code::Proton, Code::AntiProton, Code::Neutron, Code::PiPlus, Code::KPlus); + corsika::units::si::HEPMomentumType P0 = 400_TeV; + CORSIKA_LOG_INFO("testing: {}-{}", projectile, target); REQUIRE( collision.getCrossSection( projectile, target, -- GitLab