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
!466
Resolve "Implement thinning algorithms"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Implement thinning algorithms"
445-implement-thinning-algorithms
into
master
Overview
3
Commits
8
Pipelines
15
Changes
2
All threads resolved!
Hide all comments
Merged
Maximilian Reininghaus
requested to merge
445-implement-thinning-algorithms
into
master
2 years ago
Overview
3
Commits
8
Pipelines
15
Changes
2
All threads resolved!
Hide all comments
Expand
Closes
#445 (closed)
0
0
Merge request reports
Viewing commit
c9ce6093
Prev
Next
Show latest version
2 files
+
40
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
c9ce6093
contd.
· c9ce6093
Maximilian Reininghaus
authored
2 years ago
corsika/detail/modules/thinning/EMThinning.inl
0 → 100644
+
29
−
0
Options
/*
* (c) Copyright 2022 CORSIKA Project, corsika-project@lists.kit.edu
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
#include
<corsika/framework/core/PhysicalUnits.hpp>
#include
<corsika/framework/process/SecondariesProcess.hpp>
namespace
corsika
{
EMThinning
::
EMThinning
(
HEPEnergyType
threshold
,
double
maxWeight
)
:
threshold_
{
threshold
},
maxWeight_
{
maxWeight
}
{}
template
<
typename
TStackView
>
void
EMThinning
::
doSecondaries
(
TStackView
&
view
)
{
if
(
view
.
size
()
!=
2
)
return
;
auto
particle1
=
view
.
begin
();
auto
particle2
=
std
::
next
(
particle1
);
if
(.
getCode
())
corsika
::
HEPEnergyType
const
E0
=
}
}
Loading