IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d90e2804 authored by Felix Riehn's avatar Felix Riehn Committed by ralfulrich
Browse files

removed obsolete functions

parent 2cca0697
No related branches found
No related tags found
1 merge request!303Resolve "advanced ParticleCut process"
......@@ -35,31 +35,6 @@ namespace corsika {
}
}
bool ParticleCut::isEmParticle(Code vCode) const {
// FOR NOW: switch
switch (vCode) {
case Code::Gamma:
case Code::Electron:
case Code::Positron:
return true;
default:
return false;
}
}
bool ParticleCut::isInvisible(Code vCode) const {
switch (vCode) {
case Code::NuE:
case Code::NuEBar:
case Code::NuMu:
case Code::NuMuBar:
return true;
default:
return false;
}
}
template <typename TParticle>
bool ParticleCut::checkCutParticle(const TParticle& particle) {
......@@ -68,12 +43,12 @@ namespace corsika {
CORSIKA_LOG_DEBUG(fmt::format("ParticleCut: checking {}, E= {} GeV, EcutTot={} GeV",
pid, energy / 1_GeV,
(em_energy_ + inv_energy_ + energy_) / 1_GeV));
if (doCutEm_ && isEmParticle(pid)) {
if (doCutEm_ && is_em(pid)) {
CORSIKA_LOG_DEBUG("removing em. particle...");
em_energy_ += energy;
em_count_ += 1;
return true;
} else if (doCutInv_ && isInvisible(pid)) {
} else if (doCutInv_ && is_neutrino(pid)) {
CORSIKA_LOG_DEBUG("removing inv. particle...");
inv_energy_ += energy;
inv_count_ += 1;
......
......@@ -48,8 +48,6 @@ namespace corsika {
template <typename TParticle>
bool isBelowEnergyCut(TParticle const&) const;
bool isEmParticle(Code) const;
bool isInvisible(Code) const;
private:
HEPEnergyType energy_cut_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment