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
b26d2081
Commit
b26d2081
authored
9 months ago
by
Felix Riehn
Browse files
Options
Downloads
Patches
Plain Diff
make test more verbose
parent
bdfe33ee
No related branches found
No related tags found
1 merge request
!549
Draft: "Use Pythia for interactions"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/modules/testPythia8Interaction.inl
+9
-4
9 additions, 4 deletions
tests/modules/testPythia8Interaction.inl
with
9 additions
and
4 deletions
tests/modules/testPythia8Interaction.inl
+
9
−
4
View file @
b26d2081
...
@@ -14,9 +14,13 @@
...
@@ -14,9 +14,13 @@
in testPytha8.cpp eg #include "tests/modules/testPythia8Interaction.inl"
in testPytha8.cpp eg #include "tests/modules/testPythia8Interaction.inl"
*/
*/
#include
"corsika/framework/core/EnergyMomentumOperations.hpp"
#include
"corsika/framework/core/EnergyMomentumOperations.hpp"
#include
"corsika/framework/core/Logging.hpp"
#include
"corsika/framework/core/PhysicalUnits.hpp"
#include
"corsika/framework/core/PhysicalUnits.hpp"
SECTION
(
"pythia interaction"
)
{
SECTION
(
"pythia interaction"
)
{
logging
::
set_level
(
logging
::
level
::
debug
);
// this will be a p-p collision at sqrts=3.5TeV -> no problem for pythia
// this will be a p-p collision at sqrts=3.5TeV -> no problem for pythia
auto
[
stackPtr
,
secViewPtr
]
=
setup
::
testing
::
setup_stack
(
auto
[
stackPtr
,
secViewPtr
]
=
setup
::
testing
::
setup_stack
(
Code
::
Proton
,
7
_TeV
,
(
DummyEnvironment
::
BaseNodeType
*
const
)
nodePtr
,
*
csPtr
);
Code
::
Proton
,
7
_TeV
,
(
DummyEnvironment
::
BaseNodeType
*
const
)
nodePtr
,
*
csPtr
);
...
@@ -33,11 +37,12 @@ SECTION("pythia interaction") {
...
@@ -33,11 +37,12 @@ SECTION("pythia interaction") {
REQUIRE_FALSE
(
collision
.
canInteract
(
Code
::
Electron
));
REQUIRE_FALSE
(
collision
.
canInteract
(
Code
::
Electron
));
// test some combinations of valid target and projectile particles
// test some combinations of valid target and projectile particles
Code
const
target
=
// so far only hadron-hadron and hadron-Nucleus is allowed
GENERATE
(
Code
::
Proton
,
Code
::
Neutron
,
Code
::
Nitrogen
,
Code
::
Oxygen
,
Code
::
Argon
);
Code
const
target
=
GENERATE
(
Code
::
Proton
,
Code
::
Nitrogen
,
Code
::
Oxygen
,
Code
::
Argon
);
Code
const
projectile
=
Code
const
projectile
=
GENERATE
(
Code
::
Proton
,
Code
::
Neutron
,
Code
::
PiPlus
,
Code
::
Oxygen
,
Code
::
Iron
);
GENERATE
(
Code
::
Proton
,
Code
::
AntiProton
,
Code
::
Neutron
,
Code
::
PiPlus
,
Code
::
KPlus
);
corsika
::
units
::
si
::
HEPMomentumType
P0
=
100
_GeV
;
corsika
::
units
::
si
::
HEPMomentumType
P0
=
400
_TeV
;
CORSIKA_LOG_INFO
(
"testing: {}-{}"
,
projectile
,
target
);
REQUIRE
(
REQUIRE
(
collision
.
getCrossSection
(
collision
.
getCrossSection
(
projectile
,
target
,
projectile
,
target
,
...
...
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