Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4SigmaZeroField Class Reference

#include <G4SigmaZeroField.hh>

Inheritance diagram for G4SigmaZeroField:
Collaboration diagram for G4SigmaZeroField:

Public Member Functions

 G4SigmaZeroField (G4V3DNucleus *nucleus, G4double coeff=0.36 *CLHEP::fermi)
 
virtual ~G4SigmaZeroField ()
 
virtual G4double GetField (const G4ThreeVector &aPosition)
 
virtual G4double GetBarrier ()
 
virtual G4double GetCoeff ()
 
- Public Member Functions inherited from G4VNuclearField
 G4VNuclearField (G4V3DNucleus *aNucleus=0)
 
virtual ~G4VNuclearField ()
 
void SetNucleus (G4V3DNucleus *aNucleus)
 

Additional Inherited Members

- Protected Attributes inherited from G4VNuclearField
G4V3DNucleustheNucleus
 
const G4double radius
 

Detailed Description

Definition at line 46 of file G4SigmaZeroField.hh.

Constructor & Destructor Documentation

G4SigmaZeroField::G4SigmaZeroField ( G4V3DNucleus nucleus,
G4double  coeff = 0.36*CLHEP::fermi 
)

Definition at line 47 of file G4SigmaZeroField.cc.

48  : G4VNuclearField(nucleus)
49 {
50  theCoeff = coeff;
51 }
G4VNuclearField(G4V3DNucleus *aNucleus=0)
G4SigmaZeroField::~G4SigmaZeroField ( )
virtual

Definition at line 53 of file G4SigmaZeroField.cc.

54 { }

Member Function Documentation

G4double G4SigmaZeroField::GetBarrier ( )
virtual

Implements G4VNuclearField.

Definition at line 76 of file G4SigmaZeroField.cc.

77 {
78  return 0.;
79 }
virtual G4double G4SigmaZeroField::GetCoeff ( )
inlinevirtual

Reimplemented from G4VNuclearField.

Definition at line 61 of file G4SigmaZeroField.hh.

61 { return theCoeff; }
G4double G4SigmaZeroField::GetField ( const G4ThreeVector aPosition)
virtual

Implements G4VNuclearField.

Definition at line 56 of file G4SigmaZeroField.cc.

57 {
58 // Field is 0 out of the nucleus!
59  if(aPosition.mag() >= radius) return 0.0;
60 
61  G4double sigmaZeroMass = G4SigmaZero::SigmaZero()->GetPDGMass();
62 
66  G4double nucleusMass = Z*proton_mass_c2+(A-Z)*neutron_mass_c2+bindingEnergy;
67  G4double reducedMass = sigmaZeroMass*nucleusMass/(sigmaZeroMass+nucleusMass);
68 
69  const G4VNuclearDensity * nuclearDensity=theNucleus->GetNuclearDensity();
70  G4double density = nuclearDensity->GetDensity(aPosition);
71 
72  return -2.*pi*hbarc*hbarc/reducedMass*(2.0)*theCoeff*density;
73 }
virtual G4int GetCharge()=0
virtual const G4VNuclearDensity * GetNuclearDensity() const =0
virtual G4int GetMassNumber()=0
int G4int
Definition: G4Types.hh:78
static G4SigmaZero * SigmaZero()
Definition: G4SigmaZero.cc:102
double A(double temperature)
float proton_mass_c2
Definition: hepunit.py:275
float neutron_mass_c2
Definition: hepunit.py:276
const G4double radius
G4double GetPDGMass() const
G4double GetDensity(const G4ThreeVector &aPosition) const
static G4double GetBindingEnergy(const G4int A, const G4int Z)
G4V3DNucleus * theNucleus
static constexpr double pi
Definition: G4SIunits.hh:75
double G4double
Definition: G4Types.hh:76
G4double bindingEnergy(G4int A, G4int Z)
double mag() const

Here is the call graph for this function:


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