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
Snippets
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
Antonio Augusto Alves Junior
corsika
Commits
e60e156d
Commit
e60e156d
authored
6 years ago
by
Felix Riehn
Browse files
Options
Downloads
Patches
Plain Diff
added mass to sibstack
parent
fc91d2a2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Processes/Sibyll/SibStack.h
+15
-0
15 additions, 0 deletions
Processes/Sibyll/SibStack.h
with
15 additions
and
0 deletions
Processes/Sibyll/SibStack.h
+
15
−
0
View file @
e60e156d
...
...
@@ -28,6 +28,11 @@ namespace corsika::process::sibyll {
using
namespace
corsika
::
units
::
hep
;
s_plist_
.
p
[
3
][
i
]
=
v
/
1
_GeV
;
}
void
SetMass
(
const
int
i
,
const
corsika
::
units
::
hep
::
MassType
v
)
{
using
namespace
corsika
::
units
::
hep
;
s_plist_
.
p
[
4
][
i
]
=
v
/
1
_GeV
;
}
void
SetMomentum
(
const
int
i
,
const
MomentumVector
&
v
)
{
using
namespace
corsika
::
units
;
using
namespace
corsika
::
units
::
hep
;
...
...
@@ -41,6 +46,10 @@ namespace corsika::process::sibyll {
using
namespace
corsika
::
units
::
hep
;
return
s_plist_
.
p
[
3
][
i
]
*
1
_GeV
;
}
corsika
::
units
::
hep
::
EnergyType
GetMass
(
const
int
i
)
const
{
using
namespace
corsika
::
units
::
hep
;
return
s_plist_
.
p
[
4
][
i
]
*
1
_GeV
;
}
MomentumVector
GetMomentum
(
const
int
i
)
const
{
using
corsika
::
geometry
::
CoordinateSystem
;
...
...
@@ -80,6 +89,12 @@ namespace corsika::process::sibyll {
corsika
::
units
::
hep
::
EnergyType
GetEnergy
()
const
{
return
GetStackData
().
GetEnergy
(
GetIndex
());
}
void
SetMass
(
const
corsika
::
units
::
hep
::
MassType
v
)
{
GetStackData
().
SetMass
(
GetIndex
(),
v
);
}
corsika
::
units
::
hep
::
EnergyType
GetMass
()
const
{
return
GetStackData
().
GetMass
(
GetIndex
());
}
bool
HasDecayed
()
const
{
return
abs
(
GetStackData
().
GetId
(
GetIndex
()))
>
100
?
true
:
false
;
...
...
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