Geant4  10.02.p03
G4AntiProtonField Class Reference

#include <G4AntiProtonField.hh>

Inheritance diagram for G4AntiProtonField:
Collaboration diagram for G4AntiProtonField:

Public Member Functions

 G4AntiProtonField (G4V3DNucleus *nucleus, G4double coeff=1.53 *CLHEP::fermi)
 
virtual ~G4AntiProtonField ()
 
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)
 

Private Member Functions

 G4AntiProtonField (const G4AntiProtonField &right)
 
const G4AntiProtonFieldoperator= (const G4AntiProtonField &right)
 
int operator== (const G4AntiProtonField &right) const
 
int operator!= (const G4AntiProtonField &right) const
 

Private Attributes

G4double theCoeff
 

Additional Inherited Members

- Protected Attributes inherited from G4VNuclearField
G4V3DNucleustheNucleus
 
const G4double radius
 

Detailed Description

Definition at line 47 of file G4AntiProtonField.hh.

Constructor & Destructor Documentation

◆ G4AntiProtonField() [1/2]

G4AntiProtonField::G4AntiProtonField ( G4V3DNucleus nucleus,
G4double  coeff = 1.53*CLHEP::fermi 
)

Definition at line 50 of file G4AntiProtonField.cc.

51  : G4VNuclearField(nucleus)
52 {
53  theCoeff = coeff;
54 }
G4VNuclearField(G4V3DNucleus *aNucleus=0)

◆ ~G4AntiProtonField()

G4AntiProtonField::~G4AntiProtonField ( )
virtual

Definition at line 57 of file G4AntiProtonField.cc.

58 { }

◆ G4AntiProtonField() [2/2]

G4AntiProtonField::G4AntiProtonField ( const G4AntiProtonField right)
private

Member Function Documentation

◆ GetBarrier()

G4double G4AntiProtonField::GetBarrier ( )
virtual

Implements G4VNuclearField.

Definition at line 83 of file G4AntiProtonField.cc.

84 {
87  G4double coulombBarrier = (1.44/1.14) * MeV * Z / (1.0 + G4Pow::GetInstance()->Z13(A));
88  return -coulombBarrier;
89 }
static G4Pow * GetInstance()
Definition: G4Pow.cc:55
static const double MeV
Definition: G4SIunits.hh:211
virtual G4int GetCharge()=0
virtual G4int GetMassNumber()=0
int G4int
Definition: G4Types.hh:78
double A(double temperature)
Float_t Z
G4double Z13(G4int Z) const
Definition: G4Pow.hh:127
G4V3DNucleus * theNucleus
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetCoeff()

virtual G4double G4AntiProtonField::GetCoeff ( )
inlinevirtual

Reimplemented from G4VNuclearField.

Definition at line 62 of file G4AntiProtonField.hh.

62 { return theCoeff; }

◆ GetField()

G4double G4AntiProtonField::GetField ( const G4ThreeVector aPosition)
virtual

Implements G4VNuclearField.

Definition at line 63 of file G4AntiProtonField.cc.

64 {
65 // Field is 0 out of the nucleus!
66  if(aPosition.mag() >= radius) return 0.0;
67 
69  G4double antiProtonMass = anAntiProton->GetPDGMass();
70 
73  G4double bindingEnergy = G4NucleiProperties::GetBindingEnergy(A, Z);
74  G4double nucleusMass = Z*proton_mass_c2+(A-Z)*neutron_mass_c2+bindingEnergy;
75  G4double reducedMass = antiProtonMass*nucleusMass/(antiProtonMass+nucleusMass);
76 
78 
79  return -2.*pi*hbarc*hbarc/reducedMass*(2.0)*theCoeff*density+GetBarrier();
80 }
virtual G4int GetCharge()=0
virtual const G4VNuclearDensity * GetNuclearDensity() const =0
virtual G4int GetMassNumber()=0
G4double GetDensity(const G4ThreeVector &aPosition) const
static G4AntiProton * AntiProtonDefinition()
Definition: G4AntiProton.cc:88
int G4int
Definition: G4Types.hh:78
G4double density
Definition: TRTMaterials.hh:39
double A(double temperature)
float hbarc
Definition: hepunit.py:265
Float_t Z
double mag() const
float proton_mass_c2
Definition: hepunit.py:275
float neutron_mass_c2
Definition: hepunit.py:276
const G4double radius
static const double pi
Definition: G4SIunits.hh:74
static G4double GetBindingEnergy(const G4int A, const G4int Z)
G4V3DNucleus * theNucleus
double G4double
Definition: G4Types.hh:76
virtual G4double GetBarrier()
Here is the call graph for this function:

◆ operator!=()

int G4AntiProtonField::operator!= ( const G4AntiProtonField right) const
private

◆ operator=()

const G4AntiProtonField& G4AntiProtonField::operator= ( const G4AntiProtonField right)
private

◆ operator==()

int G4AntiProtonField::operator== ( const G4AntiProtonField right) const
private

Member Data Documentation

◆ theCoeff

G4double G4AntiProtonField::theCoeff
private

Definition at line 65 of file G4AntiProtonField.hh.


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