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
Commits
2f94fb39
Commit
2f94fb39
authored
6 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
deleted walk() example
parent
24bc10e4
No related branches found
No related tags found
1 merge request
!84
Resolve "generalize nuclear cross sections"
Pipeline
#343
passed
6 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documentation/Examples/cascade_example.cc
+0
-18
0 additions, 18 deletions
Documentation/Examples/cascade_example.cc
Environment/VolumeTreeNode.h
+1
-1
1 addition, 1 deletion
Environment/VolumeTreeNode.h
with
1 addition
and
19 deletions
Documentation/Examples/cascade_example.cc
+
0
−
18
View file @
2f94fb39
...
@@ -246,24 +246,6 @@ int main() {
...
@@ -246,24 +246,6 @@ int main() {
universe
.
AddChild
(
std
::
move
(
theMedium
));
universe
.
AddChild
(
std
::
move
(
theMedium
));
auto
const
allElementsInUniverse
=
std
::
invoke
([
&
]()
{
std
::
set
<
particles
::
Code
>
allElementsInUniverse
;
auto
collectElements
=
[
&
](
auto
&
vtn
)
{
if
(
auto
const
mp
=
vtn
.
GetModelPropertiesPtr
();
mp
!=
nullptr
)
{
// do not query Universe it self, it has no ModelProperties
auto
const
&
comp
=
mp
->
GetNuclearComposition
().
GetComponents
();
for
(
auto
const
c
:
comp
)
allElementsInUniverse
.
insert
(
c
);
// std::for_each(comp.cbegin(), comp.cend(),
// [&](particles::Code c) { allElementsInUniverse.insert(c); });
}
};
universe
.
walk
(
collectElements
);
return
allElementsInUniverse
;
});
for
(
auto
elem
:
allElementsInUniverse
)
{
std
::
cout
<<
elem
<<
std
::
endl
;
}
const
CoordinateSystem
&
rootCS
=
env
.
GetCoordinateSystem
();
const
CoordinateSystem
&
rootCS
=
env
.
GetCoordinateSystem
();
// setup processes, decays and interactions
// setup processes, decays and interactions
...
...
This diff is collapsed.
Click to expand it.
Environment/VolumeTreeNode.h
+
1
−
1
View file @
2f94fb39
...
@@ -80,7 +80,7 @@ namespace corsika::environment {
...
@@ -80,7 +80,7 @@ namespace corsika::environment {
}
else
{
}
else
{
std
::
for_each
(
fChildNodes
.
begin
(),
fChildNodes
.
end
(),
std
::
for_each
(
fChildNodes
.
begin
(),
fChildNodes
.
end
(),
[
&
](
auto
&
v
)
{
v
->
walk
(
func
);
});
[
&
](
auto
&
v
)
{
v
->
walk
(
func
);
});
t
(
*
this
);
func
(
*
this
);
}
}
}
}
...
...
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