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
89deba43
Commit
89deba43
authored
4 years ago
by
Felix Riehn
Committed by
ralfulrich
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
removed fmt and reintroduce isInvisible
parent
77e941d6
No related branches found
No related tags found
1 merge request
!303
Resolve "advanced ParticleCut process"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/modules/ParticleCut.inl
+6
-2
6 additions, 2 deletions
corsika/detail/modules/ParticleCut.inl
corsika/modules/ParticleCut.hpp
+3
-0
3 additions, 0 deletions
corsika/modules/ParticleCut.hpp
with
9 additions
and
2 deletions
corsika/detail/modules/ParticleCut.inl
+
6
−
2
View file @
89deba43
...
...
@@ -104,14 +104,18 @@ namespace corsika {
}
}
bool
ParticleCut
::
isInvisible
(
Code
const
&
vCode
)
const
{
return
is_neutrino
(
vCode
);
}
template
<
typename
TParticle
>
bool
ParticleCut
::
checkCutParticle
(
const
TParticle
&
particle
)
{
const
Code
pid
=
particle
.
getPID
();
HEPEnergyType
energy
=
particle
.
getEnergy
();
CORSIKA_LOG_DEBUG
(
fmt
::
format
(
"ParticleCut: checking {}, E= {} GeV, EcutTot={} GeV"
,
CORSIKA_LOG_DEBUG
(
"ParticleCut: checking {}, E= {} GeV, EcutTot={} GeV"
,
pid
,
energy
/
1
_GeV
,
(
em_energy_
+
inv_energy_
+
energy_
)
/
1
_GeV
)
)
;
(
em_energy_
+
inv_energy_
+
energy_
)
/
1
_GeV
);
if
(
doCutEm_
&&
is_em
(
pid
))
{
CORSIKA_LOG_DEBUG
(
"removing em. particle..."
);
em_energy_
+=
energy
;
...
...
This diff is collapsed.
Click to expand it.
corsika/modules/ParticleCut.hpp
+
3
−
0
View file @
89deba43
...
...
@@ -78,6 +78,9 @@ namespace corsika {
template
<
typename
TParticle
>
bool
isBelowEnergyCut
(
TParticle
const
&
)
const
;
//! defines which particles are invisible, by default only neutrinos
bool
isInvisible
(
Code
const
&
)
const
;
private
:
bool
doCutEm_
;
bool
doCutInv_
;
...
...
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