tudo-astroparticlephysics/PROPOSAL

Add particle-dependent defaults for secondary calculators

Opened this issue · 0 comments

The secondary calculators currently only provide a default parametrization per interaction type. However, the best defaults can be different for different particle types, see for example PR #347.

This needs a restructuration of the correct structure. Maybe one can adapt the current implementation:

SecondariesCalculator(
T const& interaction_types, ParticleDef const& p, Medium const& m)
{
for (auto& t : interaction_types)
addInteraction(
DefaultFactory<secondaries::Parametrization>::Create(t, p, m));
}

In a meaningful way, and add a method that is similar to the method we use for the cross sections?