#include <G4AntiProtonField.hh>
Inheritance 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 () |
Definition at line 47 of file G4AntiProtonField.hh.
G4AntiProtonField::G4AntiProtonField | ( | G4V3DNucleus * | nucleus, | |
G4double | coeff = 1.53 *CLHEP::fermi | |||
) |
Definition at line 49 of file G4AntiProtonField.cc.
00050 : G4VNuclearField(nucleus) 00051 { 00052 theCoeff = coeff; 00053 }
G4AntiProtonField::~G4AntiProtonField | ( | ) | [virtual] |
G4double G4AntiProtonField::GetBarrier | ( | ) | [virtual] |
Implements G4VNuclearField.
Definition at line 82 of file G4AntiProtonField.cc.
References G4V3DNucleus::GetCharge(), G4V3DNucleus::GetMassNumber(), and G4VNuclearField::theNucleus.
Referenced by GetField().
00083 { 00084 G4int A = theNucleus->GetMassNumber(); 00085 G4int Z = theNucleus->GetCharge(); 00086 G4double coulombBarrier = (1.44/1.14) * MeV * Z / (1.0 + std::pow(A,1./3.)); 00087 return -coulombBarrier; 00088 }
virtual G4double G4AntiProtonField::GetCoeff | ( | ) | [inline, virtual] |
G4double G4AntiProtonField::GetField | ( | const G4ThreeVector & | aPosition | ) | [virtual] |
Implements G4VNuclearField.
Definition at line 62 of file G4AntiProtonField.cc.
References G4AntiProton::AntiProtonDefinition(), G4InuclSpecialFunctions::bindingEnergy(), GetBarrier(), G4NucleiProperties::GetBindingEnergy(), G4V3DNucleus::GetCharge(), G4VNuclearDensity::GetDensity(), G4V3DNucleus::GetMassNumber(), G4V3DNucleus::GetNuclearDensity(), G4ParticleDefinition::GetPDGMass(), G4INCL::Math::pi, G4VNuclearField::radius, and G4VNuclearField::theNucleus.
00063 { 00064 // Field is 0 out of the nucleus! 00065 if(aPosition.mag() >= radius) return 0.0; 00066 00067 G4ParticleDefinition *anAntiProton = G4AntiProton::AntiProtonDefinition(); 00068 G4double antiProtonMass = anAntiProton->GetPDGMass(); 00069 00070 G4int A = theNucleus->GetMassNumber(); 00071 G4int Z = theNucleus->GetCharge(); 00072 G4double bindingEnergy = G4NucleiProperties::GetBindingEnergy(A, Z); 00073 G4double nucleusMass = Z*proton_mass_c2+(A-Z)*neutron_mass_c2+bindingEnergy; 00074 G4double reducedMass = antiProtonMass*nucleusMass/(antiProtonMass+nucleusMass); 00075 00076 G4double density = theNucleus->GetNuclearDensity()->GetDensity(aPosition); 00077 00078 return -2.*pi*hbarc*hbarc/reducedMass*(2.0)*theCoeff*density+GetBarrier(); 00079 }