mirror of
https://github.com/gwm17/catima.git
synced 2024-11-22 10:18:50 -05:00
Eout eps name correction
This commit is contained in:
parent
7650d1b191
commit
0aef3ae93a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user