IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d871aac3 authored by Remy Prechelt's avatar Remy Prechelt Committed by ralfulrich
Browse files

Remove Init() from ParticleCut.

parent a0f0a1dd
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!224Remove Init() methods from Framework and Processes
......@@ -91,13 +91,14 @@ namespace corsika::process {
return EProcessReturn::eOk;
}
void ParticleCut::Init() {
ParticleCut::ParticleCut(const units::si::HEPEnergyType vCut)
  • Developer

    I'm a little bit confused. Shouldn't the parameter be the absolute energy cut (ecut)?

  • Owner

    Yes, it actually is an absolute energy cut. Maybe the variable name is confusing?

  • Please register or sign in to reply
: fECut(vCut) {
fEmEnergy = 0._GeV;
fEmCount = 0;
fInvEnergy = 0._GeV;
fInvCount = 0;
fEnergy = 0._GeV;
// defineEmParticles();
}
void ParticleCut::ShowResults() {
......
......@@ -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; }
......
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