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
Merge requests
!4
Resolve "Define best unit for mass: "eV" or "kg""
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Define best unit for mass: "eV" or "kg""
27-define-best-unit-for-mass-ev-or-kg
into
master
Overview
0
Commits
2
Pipelines
0
Changes
3
Merged
Ralf Ulrich
requested to merge
27-define-best-unit-for-mass-ev-or-kg
into
master
6 years ago
Overview
0
Commits
2
Pipelines
0
Changes
3
Expand
Closes
#27 (closed)
0
0
Merge request reports
Viewing commit
58bd9b99
Prev
Next
Show latest version
3 files
+
42
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
58bd9b99
some small adjustments, made for the talk in Mainz
· 58bd9b99
ralfulrich
authored
6 years ago
Framework/Cascade/Cascade.h
+
14
−
2
Options
@@ -27,8 +27,20 @@ namespace corsika::cascade {
void
Run
()
{
while
(
!
fStack
.
IsEmpty
())
{
while
(
!
fStack
.
IsEmpty
())
{
Particle
&
p
=
*
fStack
.
GetNextParticle
();
Step
(
p
);
//Particle& p = *fStack.GetNextParticle();
EnergyType
Emin
;
typename
Stack
::
StackIterator
pMin
(
fStack
,
0
);
bool
first
=
true
;
for
(
typename
Stack
::
StackIterator
ip
=
fStack
.
begin
();
ip
!=
fStack
.
end
();
++
ip
)
{
if
(
first
||
ip
.
GetEnergy
()
<
Emin
)
{
first
=
false
;
pMin
=
ip
;
Emin
=
pMin
.
GetEnergy
();
}
}
Step
(
pMin
);
}
// do cascade equations, which can put new particles on Stack,
// thus, the double loop
Loading