Geant4-11
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes
G4PionZeroField Class Reference

#include <G4PionZeroField.hh>

Inheritance diagram for G4PionZeroField:
G4VNuclearField

Public Member Functions

 G4PionZeroField (G4V3DNucleus *nucleus, G4double coeff=0.042 *CLHEP::fermi)
 
virtual G4double GetBarrier ()
 
virtual G4double GetCoeff ()
 
virtual G4double GetField (const G4ThreeVector &aPosition)
 
void SetNucleus (G4V3DNucleus *aNucleus)
 
virtual ~G4PionZeroField ()
 

Protected Attributes

const G4double radius
 
G4V3DNucleustheNucleus
 

Private Member Functions

 G4PionZeroField (const G4PionZeroField &right)
 
G4bool operator!= (const G4PionZeroField &right) const
 
const G4PionZeroFieldoperator= (const G4PionZeroField &right)
 
G4bool operator== (const G4PionZeroField &right) const
 

Private Attributes

G4double theCoeff
 

Detailed Description

Definition at line 47 of file G4PionZeroField.hh.

Constructor & Destructor Documentation

◆ G4PionZeroField() [1/2]

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

Definition at line 47 of file G4PionZeroField.cc.

48 : G4VNuclearField(nucleus)
49{
50 theCoeff = coeff;
51}
G4VNuclearField(G4V3DNucleus *aNucleus=0)

References theCoeff.

◆ ~G4PionZeroField()

G4PionZeroField::~G4PionZeroField ( )
virtual

Definition at line 54 of file G4PionZeroField.cc.

55{ }

◆ G4PionZeroField() [2/2]

G4PionZeroField::G4PionZeroField ( const G4PionZeroField right)
private

Member Function Documentation

◆ GetBarrier()

G4double G4PionZeroField::GetBarrier ( )
virtual

Implements G4VNuclearField.

Definition at line 77 of file G4PionZeroField.cc.

78{
79 return 0;
80}

◆ GetCoeff()

virtual G4double G4PionZeroField::GetCoeff ( )
inlinevirtual

Reimplemented from G4VNuclearField.

Definition at line 62 of file G4PionZeroField.hh.

62{ return theCoeff; }

References theCoeff.

◆ GetField()

G4double G4PionZeroField::GetField ( const G4ThreeVector aPosition)
virtual

Implements G4VNuclearField.

Definition at line 57 of file G4PionZeroField.cc.

58{
59// Field is 0 out of the nucleus!
60 if(aPosition.mag() >= radius) return 0.0;
61
62 G4double pionZeroMass = G4PionZero::PionZero()->GetPDGMass();
65
68 G4double reducedMass = pionZeroMass*nucleusMass/(pionZeroMass+nucleusMass);
69
70
71 G4double density = A*theNucleus->GetNuclearDensity()->GetDensity(aPosition);
72 G4double nucleonMass = (proton_mass_c2+neutron_mass_c2)/2;
73
74 return 2.*pi*hbarc*hbarc/reducedMass*(1+pionZeroMass/nucleonMass)*theCoeff*density;
75}
static constexpr double pi
Definition: G4SIunits.hh:55
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
const G4int Z[17]
const G4double A[17]
double mag() const
static G4double GetBindingEnergy(const G4int A, const G4int Z)
static G4PionZero * PionZero()
Definition: G4PionZero.cc:107
virtual const G4VNuclearDensity * GetNuclearDensity() const =0
virtual G4int GetCharge()=0
virtual G4int GetMassNumber()=0
G4double GetDensity(const G4ThreeVector &aPosition) const
G4V3DNucleus * theNucleus
const G4double radius
G4double bindingEnergy(G4int A, G4int Z)
float proton_mass_c2
Definition: hepunit.py:274
float hbarc
Definition: hepunit.py:264
float neutron_mass_c2
Definition: hepunit.py:275

References A, G4InuclSpecialFunctions::bindingEnergy(), G4NucleiProperties::GetBindingEnergy(), G4V3DNucleus::GetCharge(), G4VNuclearDensity::GetDensity(), G4V3DNucleus::GetMassNumber(), G4V3DNucleus::GetNuclearDensity(), G4ParticleDefinition::GetPDGMass(), source.hepunit::hbarc, CLHEP::Hep3Vector::mag(), source.hepunit::neutron_mass_c2, pi, G4PionZero::PionZero(), source.hepunit::proton_mass_c2, G4VNuclearField::radius, theCoeff, G4VNuclearField::theNucleus, and Z.

◆ operator!=()

G4bool G4PionZeroField::operator!= ( const G4PionZeroField right) const
private

◆ operator=()

const G4PionZeroField & G4PionZeroField::operator= ( const G4PionZeroField right)
private

◆ operator==()

G4bool G4PionZeroField::operator== ( const G4PionZeroField right) const
private

◆ SetNucleus()

void G4VNuclearField::SetNucleus ( G4V3DNucleus aNucleus)
inlineinherited

Definition at line 61 of file G4VNuclearField.hh.

62{
63 theNucleus = aNucleus;
64}

References G4VNuclearField::theNucleus.

Field Documentation

◆ radius

const G4double G4VNuclearField::radius
protectedinherited

◆ theCoeff

G4double G4PionZeroField::theCoeff
private

Definition at line 65 of file G4PionZeroField.hh.

Referenced by G4PionZeroField(), GetCoeff(), and GetField().

◆ theNucleus

G4V3DNucleus* G4VNuclearField::theNucleus
protectedinherited

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