IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 03a6c795 authored by Felix Riehn's avatar Felix Riehn Committed by Maximilian Reininghaus
Browse files

fix off-shell target nucleons in hadronic photon

parent 67a3c889
No related branches found
No related tags found
1 merge request!465Resolve "SOPHIA for low energy photo-hadronic interaction"
...@@ -97,6 +97,9 @@ namespace corsika::proposal { ...@@ -97,6 +97,9 @@ namespace corsika::proposal {
corsika::default_prng_type& rng = corsika::default_prng_type& rng =
corsika::RNGManager<>::getInstance().getRandomStream("proposal"); corsika::RNGManager<>::getInstance().getRandomStream("proposal");
Code const nucleonId = (nucleonChannelDist(rng) ? Code::Neutron : Code::Proton); Code const nucleonId = (nucleonChannelDist(rng) ? Code::Neutron : Code::Proton);
// target passed to SOPHIA needs to be exactly on-shell!
FourMomentum const nucleonP4(get_mass(nucleonId),
MomentumVector(labCS, {0_GeV, 0_GeV, 0_GeV}));
CORSIKA_LOGGER_DEBUG(logger_, CORSIKA_LOGGER_DEBUG(logger_,
"selected {} as target nucleon (f_proton, f_neutron)={},{}", "selected {} as target nucleon (f_proton, f_neutron)={},{}",
nucleonId, fProtons, fNeutrons); nucleonId, fProtons, fNeutrons);
...@@ -113,7 +116,7 @@ namespace corsika::proposal { ...@@ -113,7 +116,7 @@ namespace corsika::proposal {
return ProcessReturn::Ok; return ProcessReturn::Ok;
} }
leHadronicInteraction_.doInteraction(photon_secondaries, Code::Photon, nucleonId, leHadronicInteraction_.doInteraction(photon_secondaries, Code::Photon, nucleonId,
photonP4, targetP4 / get_nucleus_A(targetId)); photonP4, nucleonP4);
} }
for (const auto& pSec : photon_secondaries) { for (const auto& pSec : photon_secondaries) {
auto const p3lab = pSec.getMomentum(); auto const p3lab = pSec.getMomentum();
......
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