IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Pranav Sampathkumar
corsika
Commits
36b2d310
Commit
36b2d310
authored
3 years ago
by
Felix Riehn
Committed by
Remy Prechelt
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
clang
parent
213ec0cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corsika/detail/modules/sibyll/Decay.inl
+6
-4
6 additions, 4 deletions
corsika/detail/modules/sibyll/Decay.inl
with
6 additions
and
4 deletions
corsika/detail/modules/sibyll/Decay.inl
+
6
−
4
View file @
36b2d310
...
@@ -187,16 +187,18 @@ namespace corsika::sibyll {
...
@@ -187,16 +187,18 @@ namespace corsika::sibyll {
int
inputSibPID
=
sibyll
::
convertToSibyllRaw
(
pCode
);
int
inputSibPID
=
sibyll
::
convertToSibyllRaw
(
pCode
);
// particle momentum format: px, py, pz, e, mass. units: GeV
// particle momentum format: px, py, pz, e, mass. units: GeV
double
inputMomentum
[
5
];
double
inputMomentum
[
5
];
QuantityVector
<
hepmomentum_d
>
input_components
=
projectile
.
getMomentum
().
getComponents
();
QuantityVector
<
hepmomentum_d
>
input_components
=
projectile
.
getMomentum
().
getComponents
();
for
(
int
idx
=
0
;
idx
<
3
;
++
idx
)
inputMomentum
[
idx
]
=
input_components
[
idx
]
/
1
_GeV
;
for
(
int
idx
=
0
;
idx
<
3
;
++
idx
)
inputMomentum
[
idx
]
=
input_components
[
idx
]
/
1
_GeV
;
inputMomentum
[
3
]
=
projectile
.
getEnergy
()
/
1
_GeV
;
inputMomentum
[
3
]
=
projectile
.
getEnergy
()
/
1
_GeV
;
inputMomentum
[
4
]
=
get_mass
(
pCode
)
/
1
_GeV
;
inputMomentum
[
4
]
=
get_mass
(
pCode
)
/
1
_GeV
;
int
nFinalParticles
;
int
nFinalParticles
;
//double* outputMomentum = new double [10*5];
//
double* outputMomentum = new double [10*5];
double
outputMomentum
[
5
*
10
];
double
outputMomentum
[
5
*
10
];
int
outputSibPID
[
10
];
int
outputSibPID
[
10
];
// run decay routine
// run decay routine
decpar_
(
inputSibPID
,
inputMomentum
,
nFinalParticles
,
outputSibPID
,
&
outputMomentum
[
0
]);
decpar_
(
inputSibPID
,
inputMomentum
,
nFinalParticles
,
outputSibPID
,
&
outputMomentum
[
0
]);
CORSIKA_LOG_TRACE
(
"Sibyll::Decay: number of final state particles: {}"
,
CORSIKA_LOG_TRACE
(
"Sibyll::Decay: number of final state particles: {}"
,
nFinalParticles
);
nFinalParticles
);
...
...
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