Geant4  10.02.p03
G4KaonZeroField Class Reference

#include <G4KaonZeroField.hh>

Inheritance diagram for G4KaonZeroField:
Collaboration diagram for G4KaonZeroField:

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 ()
 
- Public Member Functions inherited from G4VNuclearField
 G4VNuclearField (G4V3DNucleus *aNucleus=0)
 
virtual ~G4VNuclearField ()
 
void SetNucleus (G4V3DNucleus *aNucleus)
 

Private Member Functions

 G4KaonZeroField (const G4KaonZeroField &right)
 
const G4KaonZeroFieldoperator= (const G4KaonZeroField &right)
 
int operator== (const G4KaonZeroField &right) const
 
int operator!= (const G4KaonZeroField &right) const
 

Private Attributes

G4double theCoeff
 

Additional Inherited Members

- Protected Attributes inherited from G4VNuclearField
G4V3DNucleustheNucleus
 
const G4double radius
 

Detailed Description

Definition at line 46 of file G4KaonZeroField.hh.

Constructor & Destructor Documentation

◆ G4KaonZeroField() [1/2]

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

Definition at line 47 of file G4KaonZeroField.cc.

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

◆ ~G4KaonZeroField()

G4KaonZeroField::~G4KaonZeroField ( )
virtual

Definition at line 54 of file G4KaonZeroField.cc.

55 { }

◆ G4KaonZeroField() [2/2]

G4KaonZeroField::G4KaonZeroField ( const G4KaonZeroField right)
private

Member Function Documentation

◆ GetBarrier()

G4double G4KaonZeroField::GetBarrier ( )
virtual

Implements G4VNuclearField.

Definition at line 75 of file G4KaonZeroField.cc.

76 {
77  return 0;
78 }

◆ GetCoeff()

virtual G4double G4KaonZeroField::GetCoeff ( )
inlinevirtual

Reimplemented from G4VNuclearField.

Definition at line 61 of file G4KaonZeroField.hh.

61 { return theCoeff; }

◆ GetField()

G4double G4KaonZeroField::GetField ( const G4ThreeVector aPosition)
virtual

Implements G4VNuclearField.

Definition at line 57 of file G4KaonZeroField.cc.

58 {
59 // Field is 0 out of the nucleus!
60  if(aPosition.mag() >= radius) return 0.0;
61 
63 
66  G4double bindingEnergy = G4NucleiProperties::GetBindingEnergy(A, Z);
67  G4double nucleusMass = Z*proton_mass_c2+(A-Z)*neutron_mass_c2+bindingEnergy;
68  G4double reducedMass = kaonMass*nucleusMass/(kaonMass+nucleusMass);
69 
71 
72  return -2.*pi*hbarc*hbarc/reducedMass*(2.0)*theCoeff*density;
73 }
static G4KaonZero * KaonZero()
Definition: G4KaonZero.cc:104
virtual G4int GetCharge()=0
virtual const G4VNuclearDensity * GetNuclearDensity() const =0
virtual G4int GetMassNumber()=0
G4double GetDensity(const G4ThreeVector &aPosition) const
int G4int
Definition: G4Types.hh:78
G4double density
Definition: TRTMaterials.hh:39
double A(double temperature)
float hbarc
Definition: hepunit.py:265
Float_t Z
double mag() const
float proton_mass_c2
Definition: hepunit.py:275
float neutron_mass_c2
Definition: hepunit.py:276
const G4double radius
static const double pi
Definition: G4SIunits.hh:74
static G4double GetBindingEnergy(const G4int A, const G4int Z)
G4V3DNucleus * theNucleus
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:

◆ operator!=()

int G4KaonZeroField::operator!= ( const G4KaonZeroField right) const
private

◆ operator=()

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

◆ operator==()

int G4KaonZeroField::operator== ( const G4KaonZeroField right) const
private

Member Data Documentation

◆ theCoeff

G4double G4KaonZeroField::theCoeff
private

Definition at line 64 of file G4KaonZeroField.hh.


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