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
d24174d6
Commit
d24174d6
authored
2 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
clang-format
parent
c30bff1c
No related branches found
No related tags found
1 merge request
!441
Resolve "gcc12 does not compile boost 1.76.0"
Pipeline
#9860
skipped
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/modules/thinning/EMThinning.inl
+8
-7
8 additions, 7 deletions
corsika/detail/modules/thinning/EMThinning.inl
corsika/modules/thinning/EMThinning.hpp
+2
-1
2 additions, 1 deletion
corsika/modules/thinning/EMThinning.hpp
with
10 additions
and
8 deletions
corsika/detail/modules/thinning/EMThinning.inl
+
8
−
7
View file @
d24174d6
...
...
@@ -13,10 +13,11 @@
namespace
corsika
{
EMThinning
::
EMThinning
(
HEPEnergyType
threshold
,
double
maxWeight
,
bool
const
eraseParticles
)
EMThinning
::
EMThinning
(
HEPEnergyType
threshold
,
double
maxWeight
,
bool
const
eraseParticles
)
:
threshold_
{
threshold
}
,
maxWeight_
{
maxWeight
}
,
eraseParticles_
{
eraseParticles
}
{}
,
eraseParticles_
{
eraseParticles
}
{}
template
<
typename
TStackView
>
void
EMThinning
::
doSecondaries
(
TStackView
&
view
)
{
...
...
@@ -79,11 +80,11 @@ namespace corsika {
// erase discared particles in case of multithinning
if
(
eraseParticles_
)
{
for
(
auto
&
p
:
view
)
{
if
(
auto
const
w
=
p
.
getWeight
();
w
==
0
)
{
p
.
erase
();
}
}
}
else
{
return
;
for
(
auto
&
p
:
view
)
{
if
(
auto
const
w
=
p
.
getWeight
();
w
==
0
)
{
p
.
erase
();
}
}
}
else
{
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
corsika/modules/thinning/EMThinning.hpp
+
2
−
1
View file @
d24174d6
...
...
@@ -28,7 +28,8 @@ namespace corsika {
* @param threshold: thinning applied below this energy
* @param maxWeight: maximum allowed weight
*/
EMThinning
(
HEPEnergyType
threshold
,
double
maxWeight
,
bool
const
eraseParticles
=
true
);
EMThinning
(
HEPEnergyType
threshold
,
double
maxWeight
,
bool
const
eraseParticles
=
true
);
/**
* Apply thinning to secondaries. Only EM primaries with two EM secondaries are
...
...
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