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
f07d4e20
Commit
f07d4e20
authored
5 years ago
by
ralfulrich
Committed by
Ralf Ulrich
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CS
parent
f9381e0f
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
Processes/QGSJetII/QGSJetIIStack.h
+4
-5
4 additions, 5 deletions
Processes/QGSJetII/QGSJetIIStack.h
with
4 additions
and
5 deletions
Processes/QGSJetII/QGSJetIIStack.h
+
4
−
5
View file @
f07d4e20
...
@@ -55,13 +55,12 @@ namespace corsika::process::qgsjetII {
...
@@ -55,13 +55,12 @@ namespace corsika::process::qgsjetII {
using
namespace
corsika
::
units
::
si
;
using
namespace
corsika
::
units
::
si
;
return
qgarr14_
.
esp
[
i
][
0
]
*
1
_GeV
;
return
qgarr14_
.
esp
[
i
][
0
]
*
1
_GeV
;
}
}
MomentumVector
GetMomentum
(
const
unsigned
int
i
,
const
corsika
::
geometry
::
CoordinateSystem
&
coordinateSystem
)
const
{
MomentumVector
GetMomentum
(
const
unsigned
int
i
,
const
corsika
::
geometry
::
CoordinateSystem
&
CS
)
const
{
using
corsika
::
geometry
::
QuantityVector
;
using
namespace
corsika
::
units
::
si
;
using
namespace
corsika
::
units
::
si
;
QuantityVector
<
hepmomentum_d
>
components
=
{
qgarr14_
.
esp
[
i
][
2
]
*
1
_GeV
,
geometry
::
QuantityVector
<
hepmomentum_d
>
components
=
{
qgarr14_
.
esp
[
i
][
2
]
*
1
_GeV
,
qgarr14_
.
esp
[
i
][
3
]
*
1
_GeV
,
qgarr14_
.
esp
[
i
][
3
]
*
1
_GeV
,
qgarr14_
.
esp
[
i
][
1
]
*
1
_GeV
};
qgarr14_
.
esp
[
i
][
1
]
*
1
_GeV
};
return
MomentumVector
(
coordinateSystem
,
components
);
return
MomentumVector
(
CS
,
components
);
}
}
void
Copy
(
const
unsigned
int
i1
,
const
unsigned
int
i2
)
{
void
Copy
(
const
unsigned
int
i1
,
const
unsigned
int
i2
)
{
...
@@ -122,7 +121,7 @@ namespace corsika::process::qgsjetII {
...
@@ -122,7 +121,7 @@ namespace corsika::process::qgsjetII {
GetStackData
().
GetId
(
GetIndex
()));
GetStackData
().
GetId
(
GetIndex
()));
}
}
MomentumVector
GetMomentum
(
const
corsika
::
geometry
::
CoordinateSystem
&
coordinateSystem
)
const
{
return
GetStackData
().
GetMomentum
(
GetIndex
(),
coordinateSystem
);
}
MomentumVector
GetMomentum
(
const
corsika
::
geometry
::
CoordinateSystem
&
CS
)
const
{
return
GetStackData
().
GetMomentum
(
GetIndex
(),
CS
);
}
void
SetMomentum
(
const
MomentumVector
&
v
)
{
void
SetMomentum
(
const
MomentumVector
&
v
)
{
GetStackData
().
SetMomentum
(
GetIndex
(),
v
);
GetStackData
().
SetMomentum
(
GetIndex
(),
v
);
...
...
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