1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 18:28:51 -05:00

Eout eps name correction

This commit is contained in:
hrocho 2022-03-30 17:05:43 +02:00
parent 7650d1b191
commit 0aef3ae93a
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ double energy_out(double T, double thickness, const Interpolator &range_spline){
e = T - (thickness*dedx);
while(1){
r = range - range_spline(e) - thickness;
if(fabs(r)<Eout_epsilon)return e;
if(fabs(r)<Eout_th_epsilon)return e;
double step = -r*dedx;
e = e-step;
if(e<Ezero)return 0.0;

View File

@ -11,7 +11,7 @@ constexpr double logEmax = 7.0; // log of max energy
constexpr int max_datapoints = 600; // how many datapoints between logEmin and logEmax
constexpr int max_storage_data = 60; // number of datapoints which can be stored in cache
constexpr double numeric_epsilon = 10*std::numeric_limits<double>::epsilon();
constexpr double Eout_epsilon = 1e-5; //
constexpr double Eout_th_epsilon = 1e-5; //
constexpr double thin_target_limit = 1 - 1e-3;