G4KaonPlusField Class Reference

#include <G4KaonPlusField.hh>

Inheritance diagram for G4KaonPlusField:

G4VNuclearField

Public Member Functions

 G4KaonPlusField (G4V3DNucleus *nucleus, G4double coeff=0.35 *CLHEP::fermi)
virtual ~G4KaonPlusField ()
virtual G4double GetField (const G4ThreeVector &aPosition)
virtual G4double GetBarrier ()
virtual G4double GetCoeff ()

Detailed Description

Definition at line 47 of file G4KaonPlusField.hh.


Constructor & Destructor Documentation

G4KaonPlusField::G4KaonPlusField ( G4V3DNucleus nucleus,
G4double  coeff = 0.35 *CLHEP::fermi 
)

Definition at line 48 of file G4KaonPlusField.cc.

00049   : G4VNuclearField(nucleus)
00050 {
00051   theCoeff = coeff;
00052 }

G4KaonPlusField::~G4KaonPlusField (  )  [virtual]

Definition at line 55 of file G4KaonPlusField.cc.

00056 { }


Member Function Documentation

G4double G4KaonPlusField::GetBarrier (  )  [virtual]

Implements G4VNuclearField.

Definition at line 76 of file G4KaonPlusField.cc.

References G4V3DNucleus::GetCharge(), G4V3DNucleus::GetMassNumber(), and G4VNuclearField::theNucleus.

Referenced by GetField().

00077 {
00078   G4int A = theNucleus->GetMassNumber();
00079   G4int Z = theNucleus->GetCharge();
00080   G4double coulombBarrier = (1.44/1.14) * MeV * Z / (1.0 + std::pow(A,1./3.));
00081   return coulombBarrier;
00082 }

virtual G4double G4KaonPlusField::GetCoeff (  )  [inline, virtual]

Reimplemented from G4VNuclearField.

Definition at line 62 of file G4KaonPlusField.hh.

00062 { return theCoeff; }

G4double G4KaonPlusField::GetField ( const G4ThreeVector aPosition  )  [virtual]

Implements G4VNuclearField.

Definition at line 58 of file G4KaonPlusField.cc.

References G4InuclSpecialFunctions::bindingEnergy(), GetBarrier(), G4NucleiProperties::GetBindingEnergy(), G4V3DNucleus::GetCharge(), G4VNuclearDensity::GetDensity(), G4V3DNucleus::GetMassNumber(), G4V3DNucleus::GetNuclearDensity(), G4ParticleDefinition::GetPDGMass(), G4KaonPlus::KaonPlus(), G4INCL::Math::pi, G4VNuclearField::radius, and G4VNuclearField::theNucleus.

00059 {
00060 // Field is 0 out of the nucleus!
00061   if(aPosition.mag() >= radius) return 0.0;
00062 
00063   G4double kaonMass = G4KaonPlus::KaonPlus()->GetPDGMass();
00064 
00065   G4int A = theNucleus->GetMassNumber();
00066   G4int Z = theNucleus->GetCharge();
00067   G4double bindingEnergy = G4NucleiProperties::GetBindingEnergy(A, Z);
00068   G4double nucleusMass = Z*proton_mass_c2+(A-Z)*neutron_mass_c2+bindingEnergy;
00069   G4double reducedMass = kaonMass*nucleusMass/(kaonMass+nucleusMass);
00070 
00071   G4double density = theNucleus->GetNuclearDensity()->GetDensity(aPosition);
00072 
00073   return -2.*pi*hbarc*hbarc/reducedMass*(2.0)*theCoeff*density+GetBarrier();
00074 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:20 2013 for Geant4 by  doxygen 1.4.7