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
Merge requests
!594
Neutrino interactions with pythia 8310
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Neutrino interactions with pythia 8310
neutrino-interactions-with-pythia-8245
into
master
Overview
21
Commits
18
Pipelines
14
Changes
1
Merged
Felix Riehn
requested to merge
neutrino-interactions-with-pythia-8245
into
master
1 year ago
Overview
21
Commits
18
Pipelines
14
Changes
1
Expand
Never mind the branch name. This uses the latest pythia 8.310.
Edited
1 year ago
by
Felix Riehn
0
0
Merge request reports
Viewing commit
5340f3d8
Prev
Next
Show latest version
1 file
+
32
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5340f3d8
add test
· 5340f3d8
Felix Riehn
authored
1 year ago
tests/modules/testPythia8.cpp
+
32
−
0
Options
@@ -302,4 +302,36 @@ TEST_CASE("Pythia8Interface", "modules") {
{
Proton
::
mass
,
{
rootCS
,
{
0
_eV
,
0
_eV
,
0
_eV
}}})
==
std
::
make_tuple
(
CrossSectionType
::
zero
(),
CrossSectionType
::
zero
()));
}
SECTION
(
"pythia neutrino interaction"
)
{
// this will be a nu-p collision at sqrts=3.5TeV -> no problem for pythia
auto
[
stackPtr
,
secViewPtr
]
=
setup
::
testing
::
setup_stack
(
Code
::
NuE
,
7
_TeV
,
(
DummyEnvironment
::
BaseNodeType
*
const
)
nodePtr
,
*
csPtr
);
auto
&
view
=
*
secViewPtr
;
corsika
::
pythia8
::
NeutrinoInteraction
collision
(
100
_TeV
,
true
);
REQUIRE
(
collision
.
isValid
(
Code
::
NuE
,
Code
::
Proton
,
{
calculate_total_energy
(
100
_TeV
,
NuE
::
mass
),
{
rootCS
,
{
0
_eV
,
0
_eV
,
100
_TeV
}}},
{
Nitrogen
::
mass
,
{
rootCS
,
{
0
_eV
,
0
_eV
,
0
_eV
}}}));
REQUIRE
(
collision
.
getCrossSection
(
Code
::
NuE
,
Code
::
Proton
,
{
100
_GeV
,
{
rootCS
,
{
0
_eV
,
0
_eV
,
100
_GeV
}}},
{
Proton
::
mass
,
{
rootCS
,
{
0
_eV
,
0
_eV
,
0
_eV
}}})
!=
CrossSectionType
::
zero
());
collision
.
doInteraction
(
view
,
Code
::
NuE
,
Code
::
Nitrogen
,
{
calculate_total_energy
(
100
_TeV
,
NuE
::
mass
),
{
rootCS
,
{
0
_eV
,
0
_eV
,
100
_TeV
}}},
{
Nitrogen
::
mass
,
{
rootCS
,
{
0
_eV
,
0
_eV
,
0
_eV
}}});
REQUIRE
(
view
.
getSize
()
>=
2
);
// no interaction for protons
REQUIRE
(
collision
.
getCrossSection
(
Code
::
Proton
,
Code
::
Proton
,
{
100
_GeV
,
{
rootCS
,
{
0
_eV
,
0
_eV
,
100
_GeV
}}},
{
Proton
::
mass
,
{
rootCS
,
{
0
_eV
,
0
_eV
,
0
_eV
}}})
==
CrossSectionType
::
zero
());
}
}
Loading