IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 627591e4 authored by Maximilian Sackel's avatar Maximilian Sackel
Browse files

rename ParticleCut cstr. bools because they were misunderstandable and delete delete debug messages

parent 994c9c7b
No related branches found
No related tags found
1 merge request!245Include proposal process rebase
......@@ -88,10 +88,31 @@ namespace corsika::process {
}
EProcessReturn ParticleCut::DoSecondaries(corsika::setup::StackView& vS) {
<<<<<<< HEAD
auto particle = vS.begin();
while (particle != vS.end()) {
if (checkCutParticle(particle)) {
particle.Delete();
=======
auto p = vS.begin();
while (p != vS.end()) {
const Code pid = p.GetPID();
HEPEnergyType energy = p.GetEnergy();
if (discardEm_ && ParticleIsEmParticle(pid)) {
emEnergy_ += energy;
emCount_ += 1;
p.Delete();
} else if (discardInv_ && ParticleIsInvisible(pid)) {
invEnergy_ += energy;
invCount_ += 1;
p.Delete();
} else if (ParticleIsBelowEnergyCut(p)) {
energy_ += energy;
p.Delete();
} else if (p.GetTime() > 10_ms) {
energy_ += energy;
p.Delete();
>>>>>>> dbc61589... rename ParticleCut cstr. bools because they were misunderstandable and delete delete debug messages
} else {
++particle; // next entry in SecondaryView
}
......@@ -99,6 +120,7 @@ namespace corsika::process {
return EProcessReturn::eOk;
}
<<<<<<< HEAD
process::EProcessReturn ParticleCut::DoContinuous(Particle& particle, Track const&) {
C8LOG_TRACE("ParticleCut::DoContinuous");
if (checkCutParticle(particle)) {
......@@ -112,6 +134,12 @@ namespace corsika::process {
: fECut(eCut)
, bCutEm(em)
, bCutInv(inv) {
=======
ParticleCut::ParticleCut(const units::si::HEPEnergyType eCut, bool discardEm, bool discardInv)
: eCut_(eCut)
, discardEm_(cutEm)
, discardInv_(discardInv) {
>>>>>>> dbc61589... rename ParticleCut cstr. bools because they were misunderstandable and delete delete debug messages
fEmEnergy = 0_GeV;
uiEmCount = 0;
......
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