IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 07762640 authored by Felix Riehn's avatar Felix Riehn Committed by Maximilian Reininghaus
Browse files

added test case for invalid interaction

parent 6beecfbc
No related branches found
No related tags found
1 merge request!465Resolve "SOPHIA for low energy photo-hadronic interaction"
Pipeline #9639 passed
...@@ -118,6 +118,7 @@ TEST_CASE("SophiaInterface", "modules") { ...@@ -118,6 +118,7 @@ TEST_CASE("SophiaInterface", "modules") {
FourMomentum const aP4(100_GeV, {cs, 99_GeV, 0_GeV, 0_GeV}); FourMomentum const aP4(100_GeV, {cs, 99_GeV, 0_GeV, 0_GeV});
FourMomentum const bP4(1_GeV, {cs, 0_GeV, 0_GeV, 0_GeV}); FourMomentum const bP4(1_GeV, {cs, 0_GeV, 0_GeV, 0_GeV});
CHECK(0_mb == model.getCrossSection(Code::Photon, Code::Proton, aP4, bP4)); CHECK(0_mb == model.getCrossSection(Code::Photon, Code::Proton, aP4, bP4));
CHECK_THROWS(model.doInteraction(view, Code::Electron, Code::Proton, aP4, bP4));
} }
SECTION("InteractionInterface - interaction") { SECTION("InteractionInterface - interaction") {
......
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