IAP GITLAB

Skip to content
Snippets Groups Projects
Commit ddd6b2bf authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

do not use view.getProjectile()

parent 03ce790a
No related branches found
No related tags found
1 merge request!427Resolve "upgrade pythia to version 8.3xx"
...@@ -224,8 +224,6 @@ namespace corsika::pythia8 { ...@@ -224,8 +224,6 @@ namespace corsika::pythia8 {
FourMomentum const& projectileP4, FourMomentum const& projectileP4,
FourMomentum const& targetP4) { FourMomentum const& targetP4) {
auto projectile = view.getProjectile();
CORSIKA_LOG_DEBUG( CORSIKA_LOG_DEBUG(
"Pythia::Interaction: " "Pythia::Interaction: "
"doInteraction: {} interaction? ", "doInteraction: {} interaction? ",
...@@ -242,14 +240,7 @@ namespace corsika::pythia8 { ...@@ -242,14 +240,7 @@ namespace corsika::pythia8 {
throw std::runtime_error("invalid target,projectile,energy combination."); throw std::runtime_error("invalid target,projectile,energy combination.");
} }
// position and time of interaction
Point const& pOrig = projectile.getPosition();
TimeType const tOrig = projectile.getTime();
CORSIKA_LOG_DEBUG("Interaction: ebeam lab: {} GeV", eProjectileLab / 1_GeV); CORSIKA_LOG_DEBUG("Interaction: ebeam lab: {} GeV", eProjectileLab / 1_GeV);
CORSIKA_LOG_DEBUG("Interaction: position of interaction: ", pOrig.getCoordinates());
CORSIKA_LOG_DEBUG("Interaction: time: {}", tOrig);
CORSIKA_LOG_DEBUG( CORSIKA_LOG_DEBUG(
"Interaction: " "Interaction: "
" doInteraction: E(GeV): {}" " doInteraction: E(GeV): {}"
...@@ -426,7 +417,7 @@ namespace corsika::pythia8 { ...@@ -426,7 +417,7 @@ namespace corsika::pythia8 {
// add to corsika stack // add to corsika stack
auto pnew = auto pnew =
projectile.addSecondary(std::make_tuple(pyId, Ekin, pyPlab.normalized())); view.addSecondary(std::make_tuple(pyId, Ekin, pyPlab.normalized()));
Plab_final += pnew.getMomentum(); Plab_final += pnew.getMomentum();
Elab_final += pnew.getEnergy(); Elab_final += pnew.getEnergy();
......
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