Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -36,13 +36,13 @@ G4double G4BetaFermiFunction::GetFF( const G4double E0)
|
||||
G4double P, U, S, Y;
|
||||
G4double F2;
|
||||
G4double E = E0+1.;
|
||||
P=sqrt(E*E-1.0) ;
|
||||
P=std::sqrt(E*E-1.0) ;
|
||||
U=Z/137.0;
|
||||
S=sqrt(1.0-U*U) - 1.;
|
||||
S=std::sqrt(1.0-U*U) - 1.;
|
||||
Y = 2*PI*U*E/P;
|
||||
A1 = U*U*E*E + P*P/4.;
|
||||
A2 = fabs(Y/(1-exp(-Y)));
|
||||
F2 = pow(A1,S) * A2;
|
||||
A2 = std::fabs(Y/(1-std::exp(-Y)));
|
||||
F2 = std::pow(A1,S) * A2;
|
||||
return F2;
|
||||
}
|
||||
|
||||
@@ -59,15 +59,15 @@ G4double G4BetaFermiFunction::GetFFN(const G4double E0)
|
||||
G4double F2,E;
|
||||
G4double EE = E0/100.;
|
||||
U=Z/137.0;
|
||||
S=sqrt(1.0-U*U) - 1.;
|
||||
S=std::sqrt(1.0-U*U) - 1.;
|
||||
G4double F1 = 1E-10;
|
||||
for (G4int i = 1; i<=100 ; i++) {
|
||||
E = G4double(i)*EE + 1.;
|
||||
P=sqrt(E*E-1.0) ;
|
||||
P=std::sqrt(E*E-1.0) ;
|
||||
Y = 2*PI*U*E/P;
|
||||
A1 = U*U*E*E + P*P/4.;
|
||||
A2 = fabs(Y/(1-exp(-Y)));
|
||||
F2 = pow(A1,S) * A2;
|
||||
A2 = std::fabs(Y/(1-std::exp(-Y)));
|
||||
F2 = std::pow(A1,S) * A2;
|
||||
if (F2 > F1) F1 = F2;
|
||||
}
|
||||
return F1;
|
||||
|
||||
Reference in New Issue
Block a user