From 063f8edfaa7e0247dfd5376878b956f6bed1bcff Mon Sep 17 00:00:00 2001 From: Maximilian Sackel <maximilian.sackel@tu-dortmund.de> Date: Mon, 29 Jun 2020 08:38:15 +0000 Subject: [PATCH] make propagation of em particle possible. protect them from the cut. --- Processes/ParticleCut/ParticleCut.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Processes/ParticleCut/ParticleCut.cc b/Processes/ParticleCut/ParticleCut.cc index defa0c101..d9194614d 100644 --- a/Processes/ParticleCut/ParticleCut.cc +++ b/Processes/ParticleCut/ParticleCut.cc @@ -65,12 +65,13 @@ namespace corsika::process { cout << "ProcessCut: DoSecondaries: " << pid << " E= " << energy << ", EcutTot=" << (fEmEnergy + fInvEnergy + fEnergy) / 1_GeV << " GeV" << endl; - if (ParticleIsEmParticle(pid)) { - cout << "removing em. particle..." << endl; - fEmEnergy += energy; - fEmCount += 1; - p.Delete(); - } else if (ParticleIsInvisible(pid)) { + /* if (ParticleIsEmParticle(pid)) { */ + /* cout << "removing em. particle..." << endl; */ + /* fEmEnergy += energy; */ + /* fEmCount += 1; */ + /* p.Delete(); */ + /* } else */ + if (ParticleIsInvisible(pid)) { cout << "removing inv. particle..." << endl; fInvEnergy += energy; fInvCount += 1; -- GitLab