IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
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
Model registry
Operate
Environments
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
Air Shower Physics
corsika
Commits
78d780cc
Commit
78d780cc
authored
2 years ago
by
Felix Riehn
Committed by
Maximilian Reininghaus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
make sibyll tests independent of random number state
parent
f124e5c6
No related branches found
No related tags found
1 merge request
!430
Resolve "Connection between PROPOSAL and hadronic interaction models"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/modules/testSibyll.cpp
+5
-5
5 additions, 5 deletions
tests/modules/testSibyll.cpp
with
5 additions
and
5 deletions
tests/modules/testSibyll.cpp
+
5
−
5
View file @
78d780cc
...
@@ -106,7 +106,7 @@ auto sumMomentum(TStackView const& view, CoordinateSystemPtr const& vCS) {
...
@@ -106,7 +106,7 @@ auto sumMomentum(TStackView const& view, CoordinateSystemPtr const& vCS) {
TEST_CASE
(
"SibyllInterface"
,
"modules"
)
{
TEST_CASE
(
"SibyllInterface"
,
"modules"
)
{
logging
::
set_level
(
logging
::
level
::
trace
);
logging
::
set_level
(
logging
::
level
::
info
);
// the environment and stack should eventually disappear from here
// the environment and stack should eventually disappear from here
auto
[
env
,
csPtr
,
nodePtr
]
=
setup
::
testing
::
setup_environment
(
Code
::
Oxygen
);
auto
[
env
,
csPtr
,
nodePtr
]
=
setup
::
testing
::
setup_environment
(
Code
::
Oxygen
);
...
@@ -266,8 +266,8 @@ TEST_CASE("SibyllInterface", "modules") {
...
@@ -266,8 +266,8 @@ TEST_CASE("SibyllInterface", "modules") {
MomentumVector
(
cs
,
{
0
_eV
,
0
_eV
,
0
_eV
}));
MomentumVector
(
cs
,
{
0
_eV
,
0
_eV
,
0
_eV
}));
model
.
doInteraction
(
view
,
pid
,
Code
::
Oxygen
,
P4
,
targetP4
);
model
.
doInteraction
(
view
,
pid
,
Code
::
Oxygen
,
P4
,
targetP4
);
CrossSectionType
const
cx
=
model
.
getCrossSection
(
pid
,
Code
::
Oxygen
,
P4
,
targetP4
);
CrossSectionType
const
cx
=
model
.
getCrossSection
(
pid
,
Code
::
Oxygen
,
P4
,
targetP4
);
CHECK
(
cx
/
1
_mb
==
Approx
(
1250
).
margin
(
100
));
// this is not physics validation
CHECK
(
cx
/
1
_mb
>
0
);
// this is not physics validation
CHECK
(
view
.
getSize
()
=
=
Approx
(
150
).
margin
(
140
)
);
// this is not physics validation
CHECK
(
view
.
getSize
()
!
=
0
);
// this is not physics validation
// invalid to underlying model
// invalid to underlying model
FourMomentum
P4mu
(
FourMomentum
P4mu
(
...
@@ -321,8 +321,8 @@ TEST_CASE("SibyllDecayInterface", "modules") {
...
@@ -321,8 +321,8 @@ TEST_CASE("SibyllDecayInterface", "modules") {
CHECK
(
time
==
get_lifetime
(
Code
::
Lambda0
)
*
gamma
);
CHECK
(
time
==
get_lifetime
(
Code
::
Lambda0
)
*
gamma
);
model
.
doDecay
(
view
);
model
.
doDecay
(
view
);
// run checks
// run checks
//
lambda decays into proton and pi- or neutron and pi+
//
not physics validation, just check doDecay finished with something
CHECK
(
stack
.
getEntries
()
==
3
);
CHECK
(
stack
.
getEntries
()
>
1
);
}
}
SECTION
(
"DecayInterface - decay not handled"
)
{
SECTION
(
"DecayInterface - decay not handled"
)
{
...
...
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