IAP GITLAB

Skip to content
Snippets Groups Projects
Commit bdd37b9b authored by Jean-Marco Alameddine's avatar Jean-Marco Alameddine
Browse files

Change ecut passed to PROPOSAL to actual emCut instead of emCut plus initial particle mass

parent cba32286
No related branches found
No related tags found
1 merge request!541Pass emcut instead of emcut + particle_def.mass to PROPOSAL as an emcut
Pipeline #11196 passed with warnings
...@@ -52,8 +52,8 @@ namespace corsika::proposal { ...@@ -52,8 +52,8 @@ namespace corsika::proposal {
emCut) { //!< Stochastic losses smaller than the given cut emCut) { //!< Stochastic losses smaller than the given cut
//!< will be handeled continuously. //!< will be handeled continuously.
auto particle_def = T(); auto particle_def = T();
auto p_cut = std::make_shared<const PROPOSAL::EnergyCutSettings>( auto p_cut =
particle_def.mass + emCut / 1_MeV, v_cut, false); std::make_shared<const PROPOSAL::EnergyCutSettings>(emCut / 1_MeV, v_cut, false);
return PROPOSAL::GetStdCrossSections(particle_def, m, p_cut, true); 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