G4KaonZeroField Class Reference

#include <G4KaonZeroField.hh>

Inheritance diagram for G4KaonZeroField:

G4VNuclearField

Public Member Functions

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

Detailed Description

Definition at line 46 of file G4KaonZeroField.hh.


Constructor & Destructor Documentation

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

Definition at line 47 of file G4KaonZeroField.cc.

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

G4KaonZeroField::~G4KaonZeroField (  )  [virtual]

Definition at line 54 of file G4KaonZeroField.cc.

00055 { }


Member Function Documentation

G4double G4KaonZeroField::GetBarrier (  )  [virtual]

Implements G4VNuclearField.

Definition at line 75 of file G4KaonZeroField.cc.

00076 {
00077   return 0;
00078 }

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

Reimplemented from G4VNuclearField.

Definition at line 61 of file G4KaonZeroField.hh.

00061 { return theCoeff; }

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

Implements G4VNuclearField.

Definition at line 57 of file G4KaonZeroField.cc.

References G4InuclSpecialFunctions::bindingEnergy(), G4NucleiProperties::GetBindingEnergy(), G4V3DNucleus::GetCharge(), G4VNuclearDensity::GetDensity(), G4V3DNucleus::GetMassNumber(), G4V3DNucleus::GetNuclearDensity(), G4ParticleDefinition::GetPDGMass(), G4KaonZero::KaonZero(), G4INCL::Math::pi, 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 kaonMass = G4KaonZero::KaonZero()->GetPDGMass();
00063 
00064   G4int A = theNucleus->GetMassNumber();
00065   G4int Z = theNucleus->GetCharge();
00066   G4double bindingEnergy = G4NucleiProperties::GetBindingEnergy(A, Z);
00067   G4double nucleusMass = Z*proton_mass_c2+(A-Z)*neutron_mass_c2+bindingEnergy;
00068   G4double reducedMass = kaonMass*nucleusMass/(kaonMass+nucleusMass);
00069 
00070   G4double density = theNucleus->GetNuclearDensity()->GetDensity(aPosition);
00071 
00072   return -2.*pi*hbarc*hbarc/reducedMass*(2.0)*theCoeff*density;
00073 }


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