Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BetaFermiFunction Class Reference

#include <G4BetaFermiFunction.hh>

Public Member Functions

 G4BetaFermiFunction (G4int const fA, G4int const fZ)
 
 ~G4BetaFermiFunction ()
 
G4double GetFF (const G4double E)
 
G4double GetFFN (const G4double E0)
 

Detailed Description

Definition at line 31 of file G4BetaFermiFunction.hh.

Constructor & Destructor Documentation

◆ G4BetaFermiFunction()

G4BetaFermiFunction::G4BetaFermiFunction ( G4int const  fA,
G4int const  fZ 
)
inline

Definition at line 39 of file G4BetaFermiFunction.hh.

39 :
40 A(fA), Z(fZ)
41 {};

◆ ~G4BetaFermiFunction()

G4BetaFermiFunction::~G4BetaFermiFunction ( )
inline

Definition at line 46 of file G4BetaFermiFunction.hh.

49 {};

Member Function Documentation

◆ GetFF()

G4double G4BetaFermiFunction::GetFF ( const G4double  E)

Definition at line 36 of file G4BetaFermiFunction.cc.

37{
38 G4double A1, A2;
39 G4double P, U, S, Y;
40 G4double F2;
41 G4double E = E0+1.;
42 P=std::sqrt(E*E-1.0) ;
43 U=Z/137.0;
44 S=std::sqrt(1.0-U*U) - 1.;
45 Y = 2*PI*U*E/P;
46 A1 = U*U*E*E + P*P/4.;
47 A2 = std::fabs(Y/(1-std::exp(-Y)));
48 F2 = std::pow(A1,S) * A2;
49 return F2;
50}
double G4double
Definition: G4Types.hh:64

◆ GetFFN()

G4double G4BetaFermiFunction::GetFFN ( const G4double  E0)

Definition at line 57 of file G4BetaFermiFunction.cc.

58{
59
60 G4double A1, A2;
61 G4double P, U, S, Y;
62 G4double F2,E;
63 G4double EE = E0/100.;
64 U=Z/137.0;
65 S=std::sqrt(1.0-U*U) - 1.;
66 G4double F1 = 1E-10;
67 for (G4int i = 1; i<=100 ; i++) {
68 E = G4double(i)*EE + 1.;
69 P=std::sqrt(E*E-1.0) ;
70 Y = 2*PI*U*E/P;
71 A1 = U*U*E*E + P*P/4.;
72 A2 = std::fabs(Y/(1-std::exp(-Y)));
73 F2 = std::pow(A1,S) * A2;
74 if (F2 > F1) F1 = F2;
75 }
76 return F1;
77}
int G4int
Definition: G4Types.hh:66

The documentation for this class was generated from the following files: