IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 9fed7ec0 authored by Felix Riehn's avatar Felix Riehn
Browse files

removed temporary nucleon stack

parent 70bc86d8
No related branches found
No related tags found
1 merge request!65Resolve "add sibyll process NuclearInteraction"
...@@ -459,19 +459,18 @@ namespace corsika::process::sibyll { ...@@ -459,19 +459,18 @@ namespace corsika::process::sibyll {
} }
// create dummy stack, to store nucleon projectile // create dummy stack, to store nucleon projectile
Stack inelasticNucleons; // Stack inelasticNucleons;
// add one nucleon per inelastic interaction // add one nucleon per inelastic interaction
for(int j=0; j<nInelNucleons; ++j){ for(int j=0; j<nInelNucleons; ++j){
// TODO: sample neutron or proton // TODO: sample neutron or proton
auto pCode = corsika::particles::Proton::GetCode(); auto pCode = corsika::particles::Proton::GetCode();
inelasticNucleons.AddParticle( pCode, PprojNucLab.GetTimeLikeComponent(), PprojNucLab.GetSpaceLikeComponents(), pOrig, tOrig ); // temporarily add to stack, will be removed after interaction
} auto inelasticNucleon = p.AddSecondary( pCode, PprojNucLab.GetTimeLikeComponent(),
PprojNucLab.GetSpaceLikeComponents(), pOrig, tOrig );
// process stack of inelastic nucleons // create inelastic interaction
for(auto& nucl : inelasticNucleons) fHadronicInteraction.DoInteraction( inelasticNucleon, s);
// create inelastic nucleon-nucleon interaction }
fHadronicInteraction.DoInteraction( nucl, s);
// delete parent particle // delete parent particle
p.Delete(); p.Delete();
......
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