IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 4fe1d9a0 authored by Jean-Marco Alameddine's avatar Jean-Marco Alameddine Committed by Maximilian Reininghaus
Browse files

Convert energy_production_threshold value from kinetic energy to total energy...

Convert energy_production_threshold value from kinetic energy to total energy before passing them to PROPOSAL
parent e75c17db
No related branches found
No related tags found
1 merge request!467Convert energy_production_threshold value from kinetic energy to total energy
Pipeline #9732 passed
......@@ -46,9 +46,10 @@ namespace corsika::proposal {
corsika::units::si::HEPEnergyType
emCut) { //!< Stochastic losses smaller than the given cut
//!< will be handeled continuously.
auto p_cut =
std::make_shared<const PROPOSAL::EnergyCutSettings>(emCut / 1_MeV, 1, false);
return PROPOSAL::GetStdCrossSections(T(), m, p_cut, true);
auto particle_def = T();
auto p_cut = std::make_shared<const PROPOSAL::EnergyCutSettings>(
particle_def.mass + emCut / 1_MeV, 1, false);
return PROPOSAL::GetStdCrossSections(particle_def, m, p_cut, true);
};
//!
......
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