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