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
85325f8f
Commit
85325f8f
authored
5 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
set secondaries onshell
parent
d36ec1ca
No related branches found
No related tags found
1 merge request
!116
Some improvements here and there
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Processes/UrQMD/UrQMD.cc
+3
-1
3 additions, 1 deletion
Processes/UrQMD/UrQMD.cc
with
3 additions
and
1 deletion
Processes/UrQMD/UrQMD.cc
+
3
−
1
View file @
85325f8f
...
...
@@ -182,12 +182,14 @@ corsika::process::EProcessReturn UrQMD::DoInteraction(SetupProjectile& vProjecti
for
(
int
i
=
0
;
i
<
sys_
.
npart
;
++
i
)
{
auto
const
code
=
ConvertFromUrQMD
(
isys_
.
ityp
[
i
],
isys_
.
iso3
[
i
]);
auto
const
energy
=
coor_
.
p0
[
i
]
*
1
_GeV
;
// "coor_.p0[i] * 1_GeV" is likely off-shell as UrQMD doesn't preserve masses well
auto
momentum
=
geometry
::
Vector
(
zAxisFrame
,
geometry
::
QuantityVector
<
dimensionless_d
>
{
coor_
.
px
[
i
],
coor_
.
py
[
i
],
coor_
.
pz
[
i
]}
*
1
_GeV
);
auto
const
energy
=
sqrt
(
momentum
.
squaredNorm
()
+
square
(
particles
::
GetMass
(
code
)));
momentum
.
rebase
(
originalCS
);
// transform back into standard lab frame
std
::
cout
<<
i
<<
" "
<<
code
<<
" "
<<
momentum
.
GetComponents
()
<<
std
::
endl
;
...
...
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