Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4WilsonRadius Class Reference

#include <G4WilsonRadius.hh>

Public Member Functions

 G4WilsonRadius ()
 
 ~G4WilsonRadius ()
 
G4double GetWilsonRMSRadius (G4double A)
 
G4double GetWilsonRadius (G4double A)
 

Detailed Description

Definition at line 78 of file G4WilsonRadius.hh.

Constructor & Destructor Documentation

G4WilsonRadius::G4WilsonRadius ( )

Definition at line 68 of file G4WilsonRadius.cc.

69 {
70  G4double r0 = 0.84*fermi;
71  r0sq = r0 * r0;
72  factor = std::sqrt(5.0/3.0) * fermi;
73  third = 1.0 / 3.0;
74 }
double G4double
Definition: G4Types.hh:76
static constexpr double fermi
Definition: G4SIunits.hh:103
G4WilsonRadius::~G4WilsonRadius ( )

Definition at line 77 of file G4WilsonRadius.cc.

78 {;}

Member Function Documentation

G4double G4WilsonRadius::GetWilsonRadius ( G4double  A)

Definition at line 103 of file G4WilsonRadius.cc.

104 {
106  return 1.29*std::sqrt(r*r-r0sq);
107 }
G4double GetWilsonRMSRadius(G4double A)
double A(double temperature)
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Here is the caller graph for this function:

G4double G4WilsonRadius::GetWilsonRMSRadius ( G4double  A)

Definition at line 81 of file G4WilsonRadius.cc.

82 {
83  G4double radius;
84  if (A > 26.0)
85  radius = factor * (0.84*G4Pow::GetInstance()->A13(A) + 0.55);
86  else
87  {
88  // this was changed from just G4double to static const G4double
89  // to make sure that time wasn't being wasted on every call reloading a stack variable
90  // by MHM 20050119
91  static const G4double r[27] = {0.0, 0.85, 2.095, 1.976, 1.671, 1.986,
92  2.57, 2.41, 2.23, 2.519, 2.45,
93  2.42, 2.471, 2.440, 2.58, 2.611,
94  2.730, 2.662, 2.727, 2.9, 3.040,
95  2.867, 2.969, 2.94, 3.075, 3.11,
96  3.06};
97  radius = factor * r[(G4int) (A+0.4)];
98  }
99  return radius;
100 }
static G4Pow * GetInstance()
Definition: G4Pow.cc:55
int G4int
Definition: G4Types.hh:78
double A(double temperature)
G4double A13(G4double A) const
Definition: G4Pow.hh:132
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Here is the caller graph for this function:


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