IAP GITLAB

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

clang

parent 40ed6cf5
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
...@@ -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_;
......
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