IAP GITLAB

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

make test more verbose

parent bdfe33ee
No related branches found
No related tags found
1 merge request!549Draft: "Use Pythia for interactions"
...@@ -14,9 +14,13 @@ ...@@ -14,9 +14,13 @@
in testPytha8.cpp eg #include "tests/modules/testPythia8Interaction.inl" in testPytha8.cpp eg #include "tests/modules/testPythia8Interaction.inl"
*/ */
#include "corsika/framework/core/EnergyMomentumOperations.hpp" #include "corsika/framework/core/EnergyMomentumOperations.hpp"
#include "corsika/framework/core/Logging.hpp"
#include "corsika/framework/core/PhysicalUnits.hpp" #include "corsika/framework/core/PhysicalUnits.hpp"
SECTION("pythia interaction") { SECTION("pythia interaction") {
logging::set_level(logging::level::debug);
// this will be a p-p collision at sqrts=3.5TeV -> no problem for pythia // this will be a p-p collision at sqrts=3.5TeV -> no problem for pythia
auto [stackPtr, secViewPtr] = setup::testing::setup_stack( auto [stackPtr, secViewPtr] = setup::testing::setup_stack(
Code::Proton, 7_TeV, (DummyEnvironment::BaseNodeType* const)nodePtr, *csPtr); Code::Proton, 7_TeV, (DummyEnvironment::BaseNodeType* const)nodePtr, *csPtr);
...@@ -33,11 +37,12 @@ SECTION("pythia interaction") { ...@@ -33,11 +37,12 @@ SECTION("pythia interaction") {
REQUIRE_FALSE(collision.canInteract(Code::Electron)); REQUIRE_FALSE(collision.canInteract(Code::Electron));
// test some combinations of valid target and projectile particles // test some combinations of valid target and projectile particles
Code const target = // so far only hadron-hadron and hadron-Nucleus is allowed
GENERATE(Code::Proton, Code::Neutron, Code::Nitrogen, Code::Oxygen, Code::Argon); Code const target = GENERATE(Code::Proton, Code::Nitrogen, Code::Oxygen, Code::Argon);
Code const projectile = Code const projectile =
GENERATE(Code::Proton, Code::Neutron, Code::PiPlus, Code::Oxygen, Code::Iron); GENERATE(Code::Proton, Code::AntiProton, Code::Neutron, Code::PiPlus, Code::KPlus);
corsika::units::si::HEPMomentumType P0 = 100_GeV; corsika::units::si::HEPMomentumType P0 = 400_TeV;
CORSIKA_LOG_INFO("testing: {}-{}", projectile, target);
REQUIRE( REQUIRE(
collision.getCrossSection( collision.getCrossSection(
projectile, target, projectile, target,
......
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