diff --git a/Processes/ParticleCut/ParticleCut.cc b/Processes/ParticleCut/ParticleCut.cc index d10dbf74b9e28a5872e617dd8e28394ad822cd19..23a860bd6d052760f59f189de825bb11c88b8957 100644 --- a/Processes/ParticleCut/ParticleCut.cc +++ b/Processes/ParticleCut/ParticleCut.cc @@ -91,13 +91,14 @@ namespace corsika::process { return EProcessReturn::eOk; } - void ParticleCut::Init() { + ParticleCut::ParticleCut(const units::si::HEPEnergyType vCut) + : fECut(vCut) { + fEmEnergy = 0._GeV; fEmCount = 0; fInvEnergy = 0._GeV; fInvCount = 0; fEnergy = 0._GeV; - // defineEmParticles(); } void ParticleCut::ShowResults() { diff --git a/Processes/ParticleCut/ParticleCut.h b/Processes/ParticleCut/ParticleCut.h index 8ecf7917a7230aef67889cde73ba125a5438de98..53571551c445852648e1e86a4a713ee22bd7f64e 100644 --- a/Processes/ParticleCut/ParticleCut.h +++ b/Processes/ParticleCut/ParticleCut.h @@ -26,8 +26,7 @@ namespace corsika::process { unsigned int fInvCount = 0; public: - ParticleCut(const units::si::HEPEnergyType vCut) - : fECut(vCut) {} + ParticleCut(const units::si::HEPEnergyType vCut); bool ParticleIsInvisible(particles::Code) const; EProcessReturn DoSecondaries(corsika::setup::StackView&); @@ -37,7 +36,6 @@ namespace corsika::process { bool ParticleIsEmParticle(particles::Code) const; - void Init(); void ShowResults(); units::si::HEPEnergyType GetInvEnergy() const { return fInvEnergy; }