From 43dacbfd146ab296796e08fb42d158b02090833d Mon Sep 17 00:00:00 2001
From: Felix Riehn <felix@matilda>
Date: Tue, 21 May 2019 17:44:49 +0100
Subject: [PATCH] removed CoM energy from energy cut

---
 Processes/ParticleCut/ParticleCut.cc | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/Processes/ParticleCut/ParticleCut.cc b/Processes/ParticleCut/ParticleCut.cc
index 8a350f259..28e7013d0 100644
--- a/Processes/ParticleCut/ParticleCut.cc
+++ b/Processes/ParticleCut/ParticleCut.cc
@@ -27,13 +27,11 @@ namespace corsika::process {
       auto const energyLab = vP.GetEnergy();
       // nuclei
       if (vP.GetPID() == particles::Code::Nucleus) {
+	// calculate energy per nucleon
         auto const ElabNuc = energyLab / vP.GetNuclearA();
-        auto const EcmNN = sqrt(2. * units::constants::nucleonMass * ElabNuc);
-        return (ElabNuc < fECut || EcmNN < 10_GeV);
+        return (ElabNuc < fECut);
       } else {
-        // TODO: center-of-mass energy hard coded
-        const HEPEnergyType Ecm = sqrt(2. * units::constants::nucleonMass * energyLab);
-        return (energyLab < fECut || Ecm < 10_GeV);
+        return (energyLab < fECut);
       }
     }
 
-- 
GitLab