#include <G4NeutronField.hh>
Definition at line 48 of file G4NeutronField.hh.
Definition at line 45 of file G4NeutronField.cc.
50 theFermi.
Init(theA, theZ);
55 G4double density = GetDensity(aPosition);
56 G4double fermiMom = GetFermiMomentum(density);
57 theFermiMomBuffer.push_back(fermiMom);
61 G4double density = GetDensity(aPosition);
62 G4double fermiMom = GetFermiMomentum(density);
63 theFermiMomBuffer.push_back(fermiMom);
67 theFermiMomBuffer.push_back(0);
71 theFermiMomBuffer.push_back(0);
virtual G4int GetCharge()=0
G4VNuclearField(G4V3DNucleus *aNucleus=0)
virtual const G4VNuclearDensity * GetNuclearDensity() const =0
virtual G4int GetMassNumber()=0
virtual G4double GetOuterRadius()=0
static constexpr double m
void Init(G4int anA, G4int aZ)
G4V3DNucleus * theNucleus
static constexpr double fermi
G4NeutronField::~G4NeutronField |
( |
| ) |
|
|
virtual |
Implements G4VNuclearField.
Definition at line 78 of file G4NeutronField.cc.
81 unsigned int index =
static_cast<unsigned int>(x/(0.3*
fermi));
82 if( (index+2) > theFermiMomBuffer.size())
return theFermiMomBuffer.back();
83 G4double y1 = theFermiMomBuffer[index];
84 G4double y2 = theFermiMomBuffer[index+1];
87 G4double fermiMom = y1 + (x-x1)*(y2-y1)/(x2-x1);
static constexpr double neutron_mass_c2
static constexpr double fermi
The documentation for this class was generated from the following files:
- geant4.10.03.p01/source/processes/hadronic/models/binary_cascade/include/G4NeutronField.hh
- geant4.10.03.p01/source/processes/hadronic/models/binary_cascade/src/G4NeutronField.cc