IAP GITLAB

Skip to content
Snippets Groups Projects

Neutrino interactions with pythia 8310

Merged Felix Riehn requested to merge neutrino-interactions-with-pythia-8245 into master
Files
4
@@ -41,6 +41,10 @@ namespace corsika::pythia8 {
*
* @return inelastic cross section
*/
/* NOTE: the cross section for neutrino interactions is fixed to an arbitrary small
* value. This is needed just so the interaction process is not skipped in the process
* loop when the interaction is forced. If needed the exact value could be made
* accessible. */
CrossSectionType getCrossSection(Code const projectile, Code const target,
FourMomentum const& projectileP4,
FourMomentum const& targetP4) const {
@@ -51,11 +55,12 @@ namespace corsika::pythia8 {
};
bool isValid(Code const projectileId, [[maybe_unused]] Code const targetId,
[[maybe_unused]] FourMomentum const& projectileP4,
[[maybe_unused]] FourMomentum const& targetP4) const {
FourMomentum const& projectileP4, FourMomentum const& targetP4) const {
auto const S = (projectileP4 + targetP4).getNormSqr();
return is_neutrino(projectileId) &&
(is_nucleus(targetId) || targetId == Code::Proton ||
targetId == Code::Neutron);
targetId == Code::Neutron) &&
S >= minQ2_;
};
/**
Loading