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
b4f5d5b1
Commit
b4f5d5b1
authored
5 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
K0Long to K0 K0Bar conversion in event generation
parent
bd44dc4d
No related branches found
No related tags found
1 merge request
!124
Resolve "Neutral kaon mixing for UrQMD"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Processes/UrQMD/UrQMD.cc
+8
-1
8 additions, 1 deletion
Processes/UrQMD/UrQMD.cc
with
8 additions
and
1 deletion
Processes/UrQMD/UrQMD.cc
+
8
−
1
View file @
b4f5d5b1
...
...
@@ -109,7 +109,7 @@ GrammageType UrQMD::GetInteractionLength(SetupParticle& vParticle) const {
corsika
::
process
::
EProcessReturn
UrQMD
::
DoInteraction
(
SetupProjectile
&
vProjectile
)
{
using
namespace
units
::
si
;
auto
const
projectileCode
=
vProjectile
.
GetPID
();
auto
projectileCode
=
vProjectile
.
GetPID
();
auto
const
projectileEnergyLab
=
vProjectile
.
GetEnergy
();
auto
const
&
projectileMomentumLab
=
vProjectile
.
GetMomentum
();
auto
const
&
projectilePosition
=
vProjectile
.
GetPosition
();
...
...
@@ -159,6 +159,13 @@ corsika::process::EProcessReturn UrQMD::DoInteraction(SetupProjectile& vProjecti
rsys_
.
bdist
=
nucrad_
(
targetA
)
+
nucrad_
(
1
)
+
2
*
options_
.
CTParam
[
30
-
1
];
rsys_
.
ebeam
=
(
projectileEnergyLab
-
vProjectile
.
GetMass
())
*
(
1
/
1
_GeV
);
if
(
projectileCode
==
particles
::
Code
::
K0Long
)
{
std
::
uniform_int_distribution
dist
(
0
,
1
);
projectileCode
=
(
dist
(
fRNG
)
==
1
)
?
particles
::
Code
::
K0
:
particles
::
Code
::
K0Bar
;
}
else
if
(
projectileCode
==
particles
::
Code
::
K0Short
)
{
throw
std
::
runtime_error
(
"K0Short should not interact"
);
}
auto
const
[
ityp
,
iso3
]
=
ConvertToUrQMD
(
projectileCode
);
// todo: conversion of K_long/short into strong eigenstates;
inputs_
.
spityp
[
0
]
=
ityp
;
...
...
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