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

Merge pull request #24 from hrosiak/seziz

z check
This commit is contained in:
Andrej Prochazka 2018-02-08 00:51:45 +01:00 committed by GitHub
commit 49cabaa518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -406,7 +406,9 @@ double sezi_p_se(double energy,const Target &t){
double sp = -1; double sp = -1;
double e = 1000*energy; //e in keV/u double e = 1000*energy; //e in keV/u
int i = t.Z - 1; int i = t.Z - 1;
if(t.Z>92){
i = 91;
}
if(e<=25)e=25; if(e<=25)e=25;
//double sl = (proton_stopping_coef[i][0]*pow(e,proton_stopping_coef[i][1])) + (proton_stopping_coef[i][2]*pow(e,proton_stopping_coef[i][3])); //double sl = (proton_stopping_coef[i][0]*pow(e,proton_stopping_coef[i][1])) + (proton_stopping_coef[i][2]*pow(e,proton_stopping_coef[i][3]));
//double sh = proton_stopping_coef[i][4]/pow(e,proton_stopping_coef[i][5]) * log( (proton_stopping_coef[i][6]/e) + (proton_stopping_coef[i][7]*e)); //double sh = proton_stopping_coef[i][4]/pow(e,proton_stopping_coef[i][5]) * log( (proton_stopping_coef[i][6]/e) + (proton_stopping_coef[i][7]*e));
@ -454,10 +456,17 @@ double sezi_dedx_e(const Projectile &p, const Target &t){
double YRmin = 0.130; // YRmin = VR / ZP**0.67 <= 0.13 OR VR <= 1.0 double YRmin = 0.130; // YRmin = VR / ZP**0.67 <= 0.13 OR VR <= 1.0
double VRmin = 1.0; double VRmin = 1.0;
double v=0; double v=0;
double vfermi = atima_vfermi[(int)t.Z-1]; double vfermi;
double yr=0; double yr=0;
double zeta = 0; double zeta = 0;
double se; double se;
int i;
i = t.Z - 1;
if(t.Z>92){
i = 91;
}
vfermi = atima_vfermi[i];
v = sqrt(e/25.0)/vfermi; v = sqrt(e/25.0)/vfermi;
double v2=v*v; double v2=v*v;