reduction of std::pow calls; stronger usage of
Cartesian- and CylinderCoordinate objects
This commit is contained in:
@@ -25,8 +25,11 @@ std::function<double(double)> tritiumDecayEnergySpectrum(double prefactor) {
|
||||
const double eta = 2.0 * M_PI * Z / (137.0 * beta);
|
||||
const double fermi_function = eta / (1. - std::exp(-eta));
|
||||
|
||||
// return T2BetaDecay::spectrum_prefactor * fermi_function *
|
||||
// (energy_eV + HEPunits::me) * p *
|
||||
// std::pow(T2BetaDecay::E0_T - energy_eV, 2) * prefactor;
|
||||
return T2BetaDecay::spectrum_prefactor * fermi_function *
|
||||
(energy_eV + HEPunits::me) * p *
|
||||
std::pow(T2BetaDecay::E0_T - energy_eV, 2) * prefactor;
|
||||
(T2BetaDecay::E0_T - energy_eV)*(T2BetaDecay::E0_T - energy_eV) * prefactor;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user