IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pranav Sampathkumar
corsika
Commits
30cd3e7d
Commit
30cd3e7d
authored
2 years ago
by
Felix Riehn
Committed by
Maximilian Reininghaus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
extend testProposal
parent
29ec2618
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/modules/testProposal.cpp
+11
-2
11 additions, 2 deletions
tests/modules/testProposal.cpp
with
11 additions
and
2 deletions
tests/modules/testProposal.cpp
+
11
−
2
View file @
30cd3e7d
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment