New energy distribution function to better approximate

the energy distribution of the ions created in the T2 beta decay;
Does not take into account the distribution due to angular
distribution nor the fact that that a dissociative decay is possible.
Note: drawing the ion energy also draws a new electron energy, which,
however, is discarded.
This commit is contained in:
2026-02-16 09:02:25 +01:00
parent 364191d92f
commit 32f4703f4e
5 changed files with 58 additions and 2 deletions
@@ -15,8 +15,14 @@ std::shared_ptr<EnergyDistributionFunction> buildEnergyDistributionFunction(
DEBUG_LEVEL_2("Creating energy distribution function: tritium beta decay.");
#endif
return std::shared_ptr<EnergyDistributionFunction>(new TritiumBetaDecay());
} else if (json_object_by_path(object, {"MaxwellBoltzmann"})) {
} else if(json_object_by_path(object, {"TritiumBetaDecayIon"})) {
#ifdef debug_level2
DEBUG_LEVEL_2("Creating energy distribution function: tritium beta decay ion.");
#endif
double endpoint_eV = json_read_energy(json_object_by_path(object,
{"TritiumBetaDecayIon", "MaxRecoilEnergy"}));
return std::shared_ptr<EnergyDistributionFunction>(new TritiumBetaDecayIon(endpoint_eV));
}else if (json_object_by_path(object, {"MaxwellBoltzmann"})) {
#ifdef debug_level2
DEBUG_LEVEL_2("Creating energy distribution function: Maxwell Boltzmann.");
#endif