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
56d103b6
Commit
56d103b6
authored
6 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
limit trajectory after end-point determination for later purposes
parent
0093a324
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
Framework/Cascade/Cascade.h
+3
-1
3 additions, 1 deletion
Framework/Cascade/Cascade.h
with
3 additions
and
1 deletion
Framework/Cascade/Cascade.h
+
3
−
1
View file @
56d103b6
...
@@ -113,6 +113,8 @@ namespace corsika::cascade {
...
@@ -113,6 +113,8 @@ namespace corsika::cascade {
// std::visit(corsika::setup::ParticleUpdate<Particle>{particle}, step);
// std::visit(corsika::setup::ParticleUpdate<Particle>{particle}, step);
particle
.
SetPosition
(
step
.
PositionFromArclength
(
min_distance
));
particle
.
SetPosition
(
step
.
PositionFromArclength
(
min_distance
));
// .... also update time, momentum, direction, ...
// .... also update time, momentum, direction, ...
step
.
LimitEndTo
(
min_distance
);
// apply all continuous processes on particle + track
// apply all continuous processes on particle + track
corsika
::
process
::
EProcessReturn
status
=
corsika
::
process
::
EProcessReturn
status
=
...
@@ -129,7 +131,7 @@ namespace corsika::cascade {
...
@@ -129,7 +131,7 @@ namespace corsika::cascade {
<<
((
min_distance
<
distance_max
)
?
"yes"
:
"no"
)
<<
std
::
endl
;
<<
((
min_distance
<
distance_max
)
?
"yes"
:
"no"
)
<<
std
::
endl
;
if
(
min_distance
<
distance_max
)
{
// interaction to happen within geometric limit
if
(
min_distance
<
distance_max
)
{
// interaction to happen within geometric limit
// check we
a
ther decay or interaction limits this step
// check w
h
ether decay or interaction limits this step
if
(
min_distance
==
distance_interact
)
{
if
(
min_distance
==
distance_interact
)
{
std
::
cout
<<
"collide"
<<
std
::
endl
;
std
::
cout
<<
"collide"
<<
std
::
endl
;
...
...
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