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
6
Merged
Felix Riehn
requested to merge
neutrino-interactions-with-pythia-8245
into
master
1 year ago
Overview
21
Commits
18
Pipelines
14
Changes
3
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
Compare
version 5
version 6
75e5f72c
1 year ago
version 5
396168cf
1 year ago
version 4
f954d470
1 year ago
version 3
1b0ac263
1 year ago
version 2
f148a86d
1 year ago
version 1
c64839e8
1 year ago
master (base)
and
latest version
latest version
9410a5f7
18 commits,
1 year ago
version 6
75e5f72c
18 commits,
1 year ago
version 5
396168cf
17 commits,
1 year ago
version 4
f954d470
16 commits,
1 year ago
version 3
1b0ac263
15 commits,
1 year ago
version 2
f148a86d
14 commits,
1 year ago
version 1
c64839e8
13 commits,
1 year ago
Show latest version
3 files
+
83
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
corsika/modules/pythia8/NeutrinoInteraction.hpp
+
8
−
3
Options
@@ -41,6 +41,10 @@ namespace corsika::pythia8 {
*
* @return inelastic cross section
*/
/* NOTE: the cross section for neutrino interactions is fixed to an arbitrary small
* value. This is needed just so the interaction process is not skipped in the process
* loop when the interaction is forced. If needed the exact value could be made
* accessible. */
CrossSectionType
getCrossSection
(
Code
const
projectile
,
Code
const
target
,
FourMomentum
const
&
projectileP4
,
FourMomentum
const
&
targetP4
)
const
{
@@ -51,11 +55,12 @@ namespace corsika::pythia8 {
};
bool
isValid
(
Code
const
projectileId
,
[[
maybe_unused
]]
Code
const
targetId
,
[[
maybe_unused
]]
FourMomentum
const
&
projectileP4
,
[[
maybe_unused
]]
FourMomentum
const
&
targetP4
)
const
{
FourMomentum
const
&
projectileP4
,
FourMomentum
const
&
targetP4
)
const
{
auto
const
S
=
(
projectileP4
+
targetP4
).
getNormSqr
();
return
is_neutrino
(
projectileId
)
&&
(
is_nucleus
(
targetId
)
||
targetId
==
Code
::
Proton
||
targetId
==
Code
::
Neutron
);
targetId
==
Code
::
Neutron
)
&&
S
>=
minQ2_
;
};
/**
Loading