tudo-astroparticlephysics / PROPOSAL

Monte Carlo Simulation propagating charged Leptons through Media as C++ Library
GNU Lesser General Public License v3.0
35 stars 21 forks source link

Different behavior `PropagationUtility{Integral,Interpolant}` in `GetUpperLimit` #387

Open MaxSac opened 7 months ago

MaxSac commented 7 months ago

Dependent if the integral or the integral, the functions throw an error or only an assertion. Making the integral throwing as well, make the behavior more consistency.

https://github.com/tudo-astroparticlephysics/PROPOSAL/blob/c3b01b7a7006674c9f83db8ea20f882f7169029b/src/PROPOSAL/detail/PROPOSAL/propagation_utility/PropagationUtilityIntegral.cxx#L29

https://github.com/tudo-astroparticlephysics/PROPOSAL/blob/c3b01b7a7006674c9f83db8ea20f882f7169029b/src/PROPOSAL/detail/PROPOSAL/propagation_utility/PropagationUtilityInterpolant.cxx#L86-L90