Geant4-11
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes
G4KaonPlusField Class Reference

#include <G4KaonPlusField.hh>

Inheritance diagram for G4KaonPlusField:
G4VNuclearField

Public Member Functions

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

Protected Attributes

const G4double radius
 
G4V3DNucleustheNucleus
 

Private Member Functions

 G4KaonPlusField (const G4KaonPlusField &right)
 
G4bool operator!= (const G4KaonPlusField &right) const
 
const G4KaonPlusFieldoperator= (const G4KaonPlusField &right)
 
G4bool operator== (const G4KaonPlusField &right) const
 

Private Attributes

G4double theCoeff
 

Detailed Description

Definition at line 47 of file G4KaonPlusField.hh.

Constructor & Destructor Documentation

◆ G4KaonPlusField() [1/2]

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

Definition at line 49 of file G4KaonPlusField.cc.

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

References theCoeff.

◆ ~G4KaonPlusField()

G4KaonPlusField::~G4KaonPlusField ( )
virtual

Definition at line 56 of file G4KaonPlusField.cc.

57{ }

◆ G4KaonPlusField() [2/2]

G4KaonPlusField::G4KaonPlusField ( const G4KaonPlusField right)
private

Member Function Documentation

◆ GetBarrier()

G4double G4KaonPlusField::GetBarrier ( )
virtual

Implements G4VNuclearField.

Definition at line 77 of file G4KaonPlusField.cc.

78{
81 G4double coulombBarrier = (1.44/1.14) * MeV * Z / (1.0 + G4Pow::GetInstance()->Z13(A));
82 return coulombBarrier;
83}
static constexpr double MeV
Definition: G4SIunits.hh:200
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
const G4int Z[17]
const G4double A[17]
static G4Pow * GetInstance()
Definition: G4Pow.cc:41
G4double Z13(G4int Z) const
Definition: G4Pow.hh:123
virtual G4int GetCharge()=0
virtual G4int GetMassNumber()=0
G4V3DNucleus * theNucleus

References A, G4V3DNucleus::GetCharge(), G4Pow::GetInstance(), G4V3DNucleus::GetMassNumber(), MeV, G4VNuclearField::theNucleus, Z, and G4Pow::Z13().

Referenced by GetField().

◆ GetCoeff()

virtual G4double G4KaonPlusField::GetCoeff ( )
inlinevirtual

Reimplemented from G4VNuclearField.

Definition at line 62 of file G4KaonPlusField.hh.

62{ return theCoeff; }

References theCoeff.

◆ GetField()

G4double G4KaonPlusField::GetField ( const G4ThreeVector aPosition)
virtual

Implements G4VNuclearField.

Definition at line 59 of file G4KaonPlusField.cc.

60{
61// Field is 0 out of the nucleus!
62 if(aPosition.mag() >= radius) return 0.0;
63
65
70 G4double reducedMass = kaonMass*nucleusMass/(kaonMass+nucleusMass);
71
72 G4double density = theNucleus->GetNuclearDensity()->GetDensity(aPosition);
73
74 return -2.*pi*hbarc*hbarc/reducedMass*(2.0)*theCoeff*density+GetBarrier();
75}
static constexpr double pi
Definition: G4SIunits.hh:55
double mag() const
virtual G4double GetBarrier()
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:112
static G4double GetBindingEnergy(const G4int A, const G4int Z)
virtual const G4VNuclearDensity * GetNuclearDensity() const =0
G4double GetDensity(const G4ThreeVector &aPosition) const
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(), GetBarrier(), G4NucleiProperties::GetBindingEnergy(), G4V3DNucleus::GetCharge(), G4VNuclearDensity::GetDensity(), G4V3DNucleus::GetMassNumber(), G4V3DNucleus::GetNuclearDensity(), G4ParticleDefinition::GetPDGMass(), source.hepunit::hbarc, G4KaonPlus::KaonPlus(), CLHEP::Hep3Vector::mag(), source.hepunit::neutron_mass_c2, pi, source.hepunit::proton_mass_c2, G4VNuclearField::radius, theCoeff, G4VNuclearField::theNucleus, and Z.

◆ operator!=()

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

◆ operator=()

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

◆ operator==()

G4bool G4KaonPlusField::operator== ( const G4KaonPlusField 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 G4KaonPlusField::theCoeff
private

Definition at line 65 of file G4KaonPlusField.hh.

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

◆ theNucleus

G4V3DNucleus* G4VNuclearField::theNucleus
protectedinherited

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