G4PionZeroField Class Reference

#include <G4PionZeroField.hh>

Inheritance diagram for G4PionZeroField:

G4VNuclearField

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 ()

Detailed Description

Definition at line 47 of file G4PionZeroField.hh.


Constructor & Destructor Documentation

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]

Definition at line 54 of file G4PionZeroField.cc.

00055 { }


Member Function Documentation

G4double G4PionZeroField::GetBarrier (  )  [virtual]

Implements G4VNuclearField.

Definition at line 77 of file G4PionZeroField.cc.

00078 {
00079   return 0;
00080 }

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

Reimplemented from G4VNuclearField.

Definition at line 62 of file G4PionZeroField.hh.

00062 { return theCoeff; }

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 }


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