Import Geant4 9.4.0 source tree
This commit is contained in:
@@ -79,8 +79,8 @@ G4double G4PionMinusField::GetField(const G4ThreeVector & aPosition)
|
||||
// Field is 0 out of the nucleus!
|
||||
if(aPosition.mag() >= radius) return 0.0;
|
||||
|
||||
G4double A = theNucleus->GetMassNumber();
|
||||
G4double Z = theNucleus->GetCharge();
|
||||
G4int A = theNucleus->GetMassNumber();
|
||||
G4int Z = theNucleus->GetCharge();
|
||||
G4double pionMinusMass = G4PionMinus::PionMinus()->GetPDGMass();
|
||||
G4double bindingEnergy = G4NucleiProperties::GetBindingEnergy(G4lrint(A), G4lrint(Z));
|
||||
G4double nucleusMass = Z*proton_mass_c2+(A-Z)*neutron_mass_c2+bindingEnergy;
|
||||
@@ -95,8 +95,8 @@ G4double G4PionMinusField::GetField(const G4ThreeVector & aPosition)
|
||||
|
||||
G4double G4PionMinusField::GetBarrier()
|
||||
{
|
||||
G4double A = theNucleus->GetMassNumber();
|
||||
G4double Z = theNucleus->GetCharge();
|
||||
G4int A = theNucleus->GetMassNumber();
|
||||
G4int Z = theNucleus->GetCharge();
|
||||
G4double coulombBarrier = (1.44/1.14) * MeV * Z / (1.0 + std::pow(A,1./3.));
|
||||
return -coulombBarrier;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user