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
2cbed941
Commit
2cbed941
authored
6 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
better comments
parent
25f670c7
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
Framework/ParticleStack/StackOne.h
+7
-4
7 additions, 4 deletions
Framework/ParticleStack/StackOne.h
with
7 additions
and
4 deletions
Framework/ParticleStack/StackOne.h
+
7
−
4
View file @
2cbed941
...
...
@@ -33,12 +33,13 @@ namespace stack {
/**
Defini
tion of
on
e most simple particle stack object.
Memory implementa
tion of
th
e most simple particle stack object.
*/
class
StackOneImpl
{
private:
/// the actual memory to store particle data
std
::
vector
<
int
>
fId
;
std
::
vector
<
double
>
fData
;
...
...
@@ -47,14 +48,16 @@ namespace stack {
int
GetSize
()
const
{
return
fData
.
size
();
}
int
GetCapacity
()
const
{
return
fData
.
size
();
}
void
SetId
(
const
int
i
,
const
int
id
)
{
fId
[
i
]
=
id
;
}
void
SetEnergy
(
const
int
i
,
const
double
e
)
{
fData
[
i
]
=
e
;
}
const
int
GetId
(
const
int
i
)
const
{
return
fId
[
i
];
}
const
double
GetEnergy
(
const
int
i
)
const
{
return
fData
[
i
];
}
/**
Function to copy particle at location i2 in stack to i1
*/
void
Copy
(
const
int
i1
,
const
int
i2
)
{
fData
[
i2
]
=
fData
[
i1
];
fId
[
i2
]
=
fId
[
i1
];
...
...
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