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
1 merge request!430Resolve "Connection between PROPOSAL and hadronic interaction models"
...@@ -41,8 +41,11 @@ public: ...@@ -41,8 +41,11 @@ public:
MomentumVector(csPrime, {0_GeV, 0_GeV, 0_GeV}).normalized())); MomentumVector(csPrime, {0_GeV, 0_GeV, 0_GeV}).normalized()));
} }
} }
bool constexpr isValid(Code const, Code const, HEPEnergyType const) const { bool constexpr isValid(Code const, Code const, HEPEnergyType const sqrsNN) const {
return true; if (sqrsNN < 10_GeV)
return false;
else
return true;
}; };
}; };
...@@ -60,6 +63,12 @@ TEST_CASE("ProposalInterface", "modules") { ...@@ -60,6 +63,12 @@ TEST_CASE("ProposalInterface", "modules") {
RNGManager<>::getInstance().registerRandomStream("proposal"); 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; DummyHadronicModel hadModel;
HEPEnergyType heThresholdLab = 80_GeV; HEPEnergyType heThresholdLab = 80_GeV;
corsika::proposal::InteractionModel emModel(*env, hadModel, heThresholdLab); 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