Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PionMinusField Class Reference

#include <G4PionMinusField.hh>

+ Inheritance diagram for G4PionMinusField:

Public Member Functions

 G4PionMinusField (G4V3DNucleus *nucleus, G4double coeff=0.042 *CLHEP::fermi)
 
virtual ~G4PionMinusField ()
 
virtual G4double GetField (const G4ThreeVector &aPosition)
 
virtual G4double GetBarrier ()
 
virtual G4double GetCoeff ()
 
- Public Member Functions inherited from G4VNuclearField
 G4VNuclearField (G4V3DNucleus *aNucleus=0)
 
virtual ~G4VNuclearField ()
 
void SetNucleus (G4V3DNucleus *aNucleus)
 
virtual G4double GetField (const G4ThreeVector &aPosition)=0
 
virtual G4double GetBarrier ()=0
 
virtual G4double GetCoeff ()
 

Additional Inherited Members

- Protected Attributes inherited from G4VNuclearField
G4V3DNucleustheNucleus
 
const G4double radius
 

Detailed Description

Definition at line 47 of file G4PionMinusField.hh.

Constructor & Destructor Documentation

◆ G4PionMinusField()

G4PionMinusField::G4PionMinusField ( G4V3DNucleus nucleus,
G4double  coeff = 0.042*CLHEP::fermi 
)

Definition at line 48 of file G4PionMinusField.cc.

49 : G4VNuclearField(nucleus)
50{
51 theCoeff = coeff;
52}

◆ ~G4PionMinusField()

G4PionMinusField::~G4PionMinusField ( )
virtual

Definition at line 55 of file G4PionMinusField.cc.

56{ }

Member Function Documentation

◆ GetBarrier()

G4double G4PionMinusField::GetBarrier ( )
virtual

Implements G4VNuclearField.

Definition at line 77 of file G4PionMinusField.cc.

78{
81 G4double coulombBarrier = (1.44/1.14) * MeV * Z / (1.0 + std::pow(A,1./3.));
82 return -coulombBarrier;
83}
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
virtual G4int GetCharge()=0
virtual G4int GetMassNumber()=0
G4V3DNucleus * theNucleus

Referenced by GetField().

◆ GetCoeff()

virtual G4double G4PionMinusField::GetCoeff ( )
inlinevirtual

Reimplemented from G4VNuclearField.

Definition at line 64 of file G4PionMinusField.hh.

64{ return theCoeff; }

◆ GetField()

G4double G4PionMinusField::GetField ( const G4ThreeVector aPosition)
virtual

Implements G4VNuclearField.

Definition at line 58 of file G4PionMinusField.cc.

59{
60// Field is 0 out of the nucleus!
61 if(aPosition.mag() >= radius) return 0.0;
62
65 G4double pionMinusMass = G4PionMinus::PionMinus()->GetPDGMass();
67 G4double nucleusMass = Z*proton_mass_c2+(A-Z)*neutron_mass_c2+bindingEnergy;
68 G4double reducedMass = pionMinusMass*nucleusMass/(pionMinusMass+nucleusMass);
69
70 G4double density = A*theNucleus->GetNuclearDensity()->GetDensity(aPosition);
71 G4double nucleonMass = (proton_mass_c2+neutron_mass_c2)/2;
72
73 return 2.*pi*hbarc*hbarc/reducedMass*(1+pionMinusMass/nucleonMass)*theCoeff*density + GetBarrier();
74}
double mag() const
static G4double GetBindingEnergy(const G4int A, const G4int Z)
virtual G4double GetBarrier()
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:98
virtual const G4VNuclearDensity * GetNuclearDensity() const =0
G4double GetDensity(const G4ThreeVector &aPosition) const
const G4double radius
const G4double pi
G4double bindingEnergy(G4int A, G4int Z)
int G4lrint(double ad)
Definition: templates.hh:163

The documentation for this class was generated from the following files: