IAP GITLAB

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

extend testProposal

parent 29ec2618
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,11 @@ public:
MomentumVector(csPrime, {0_GeV, 0_GeV, 0_GeV}).normalized()));
}
}
bool constexpr isValid(Code const, Code const, HEPEnergyType const) const {
return true;
bool constexpr isValid(Code const, Code const, HEPEnergyType const sqrsNN) const {
if (sqrsNN < 10_GeV)
return false;
else
return true;
};
};
......@@ -60,6 +63,12 @@ TEST_CASE("ProposalInterface", "modules") {
RNGManager<>::getInstance().registerRandomStream("proposal");
SECTION("InteractionInterface - hadronic photon model threshold") {
DummyHadronicModel hadModel;
HEPEnergyType heThresholdLab1 = 10_GeV;
CHECK_THROWS(corsika::proposal::InteractionModel(*env, hadModel, heThresholdLab1));
}
DummyHadronicModel hadModel;
HEPEnergyType heThresholdLab = 80_GeV;
corsika::proposal::InteractionModel emModel(*env, hadModel, heThresholdLab);
......
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