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
d1437a3b
Commit
d1437a3b
authored
6 years ago
by
ralfulrich
Browse files
Options
Downloads
Plain Diff
rebase with MR 76
parents
5f34a359
8fb7bfe5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Documentation/Examples/CMakeLists.txt
+0
-1
0 additions, 1 deletion
Documentation/Examples/CMakeLists.txt
Framework/Cascade/Cascade.h
+12
-1
12 additions, 1 deletion
Framework/Cascade/Cascade.h
Framework/ProcessSequence/ProcessSequence.h
+14
-0
14 additions, 0 deletions
Framework/ProcessSequence/ProcessSequence.h
with
26 additions
and
2 deletions
Documentation/Examples/CMakeLists.txt
+
0
−
1
View file @
d1437a3b
...
...
@@ -108,7 +108,6 @@ target_link_libraries (vertical_EAS SuperStupidStack CORSIKAunits
install
(
TARGETS vertical_EAS DESTINATION share/examples
)
CORSIKA_ADD_TEST
(
vertical_EAS
)
add_executable
(
staticsequence_example staticsequence_example.cc
)
target_compile_options
(
staticsequence_example PRIVATE -g
)
# do not skip asserts
target_link_libraries
(
staticsequence_example
...
...
This diff is collapsed.
Click to expand it.
Framework/Cascade/Cascade.h
+
12
−
1
View file @
d1437a3b
...
...
@@ -54,7 +54,6 @@ namespace corsika::cascade {
* <code>auto GetTrack(Particle const& p)</auto>,
* with the return type <code>geometry::Trajectory<corsika::geometry::Line>
* </code>
*
* <b>TProcessList</b> must be a ProcessSequence. *
* <b>Stack</b> is the storage object for particle data, i.e. with
* Particle class type <code>Stack::ParticleType</code>
...
...
@@ -221,6 +220,18 @@ namespace corsika::cascade {
setup
::
StackView
secondaries
(
vParticle
);
[[
maybe_unused
]]
auto
projectile
=
secondaries
.
GetProjectile
();
/*
Create SecondaryView object on Stack. The data container
remains untouched and identical, and 'projectil' is identical
to 'vParticle' above this line. However,
projectil.AddSecondaries populate the SecondaryView, which can
then be used afterwards for further processing. Thus: it is
important to use projectle (and not vParticle) for Interaction,
and Decay!
*/
setup
::
StackView
secondaries
(
vParticle
);
[[
maybe_unused
]]
auto
projectile
=
secondaries
.
GetProjectile
();
if
(
min_distance
<
distance_max
)
{
// interaction to happen within geometric limit
// check whether decay or interaction limits this step
...
...
This diff is collapsed.
Click to expand it.
Framework/ProcessSequence/ProcessSequence.h
+
14
−
0
View file @
d1437a3b
...
...
@@ -118,6 +118,20 @@ namespace corsika::process {
return
ret
;
}
template
<
typename
TSecondaries
>
EProcessReturn
DoSecondaries
(
TSecondaries
&
vS
)
{
EProcessReturn
ret
=
EProcessReturn
::
eOk
;
if
constexpr
(
std
::
is_base_of
<
SecondariesProcess
<
T1type
>
,
T1type
>::
value
||
is_process_sequence
<
T1
>::
value
)
{
ret
|=
A
.
DoSecondaries
(
vS
);
}
if
constexpr
(
std
::
is_base_of
<
SecondariesProcess
<
T2type
>
,
T2type
>::
value
||
is_process_sequence
<
T2
>::
value
)
{
ret
|=
B
.
DoSecondaries
(
vS
);
}
return
ret
;
}
template
<
typename
TParticle
,
typename
TTrack
>
corsika
::
units
::
si
::
LengthType
MaxStepLength
(
TParticle
&
vP
,
TTrack
&
vTrack
)
{
corsika
::
units
::
si
::
LengthType
...
...
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