#include <G4PionZeroField.hh>
Inheritance diagram for G4PionZeroField:
Public Member Functions | |
G4PionZeroField (G4V3DNucleus *nucleus, G4double coeff=0.042 *CLHEP::fermi) | |
virtual | ~G4PionZeroField () |
virtual G4double | GetField (const G4ThreeVector &aPosition) |
virtual G4double | GetBarrier () |
virtual G4double | GetCoeff () |
Definition at line 47 of file G4PionZeroField.hh.
G4PionZeroField::G4PionZeroField | ( | G4V3DNucleus * | nucleus, | |
G4double | coeff = 0.042 *CLHEP::fermi | |||
) |
Definition at line 47 of file G4PionZeroField.cc.
00048 : G4VNuclearField(nucleus) 00049 { 00050 theCoeff = coeff; 00051 }
G4PionZeroField::~G4PionZeroField | ( | ) | [virtual] |
G4double G4PionZeroField::GetBarrier | ( | ) | [virtual] |
virtual G4double G4PionZeroField::GetCoeff | ( | ) | [inline, virtual] |
G4double G4PionZeroField::GetField | ( | const G4ThreeVector & | aPosition | ) | [virtual] |
Implements G4VNuclearField.
Definition at line 57 of file G4PionZeroField.cc.
References G4InuclSpecialFunctions::bindingEnergy(), G4NucleiProperties::GetBindingEnergy(), G4V3DNucleus::GetCharge(), G4VNuclearDensity::GetDensity(), G4V3DNucleus::GetMassNumber(), G4V3DNucleus::GetNuclearDensity(), G4ParticleDefinition::GetPDGMass(), G4INCL::Math::pi, G4PionZero::PionZero(), G4VNuclearField::radius, and G4VNuclearField::theNucleus.
00058 { 00059 // Field is 0 out of the nucleus! 00060 if(aPosition.mag() >= radius) return 0.0; 00061 00062 G4double pionZeroMass = G4PionZero::PionZero()->GetPDGMass(); 00063 G4int A = theNucleus->GetMassNumber(); 00064 G4int Z = theNucleus->GetCharge(); 00065 00066 G4double bindingEnergy = G4NucleiProperties::GetBindingEnergy(A, Z); 00067 G4double nucleusMass = Z*proton_mass_c2+(A-Z)*neutron_mass_c2+bindingEnergy; 00068 G4double reducedMass = pionZeroMass*nucleusMass/(pionZeroMass+nucleusMass); 00069 00070 00071 G4double density = A*theNucleus->GetNuclearDensity()->GetDensity(aPosition); 00072 G4double nucleonMass = (proton_mass_c2+neutron_mass_c2)/2; 00073 00074 return 2.*pi*hbarc*hbarc/reducedMass*(1+pionZeroMass/nucleonMass)*theCoeff*density; 00075 }