Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions
G4AtomicShells Class Reference

#include <G4AtomicShells.hh>

Public Member Functions

G4double GetTotalBindingEnergy (G4int Z)
 

Static Public Member Functions

static G4int GetNumberOfShells (G4int Z)
 
static G4int GetNumberOfElectrons (G4int Z, G4int SubshellNb)
 
static G4double GetBindingEnergy (G4int Z, G4int SubshellNb)
 

Detailed Description

Definition at line 61 of file G4AtomicShells.hh.

Member Function Documentation

G4double G4AtomicShells::GetBindingEnergy ( G4int  Z,
G4int  SubshellNb 
)
static

Definition at line 759 of file G4AtomicShells.cc.

References assert, and python.hepunit::eV.

Referenced by G4Element::AddIsotope(), export_G4AtomicShells(), G4Element::G4Element(), G4DeltaAngle::SampleDirection(), and G4DiscreteGammaTransition::SelectGamma().

760 {
761  assert (Z>0 && Z<101 && ShellNb<fNumberOfShells[Z]);
762  return fBindingEnergies[fIndexOfShells[Z] + ShellNb]*eV;
763 }
#define assert(x)
Definition: mymalloc.cc:1309
G4int G4AtomicShells::GetNumberOfElectrons ( G4int  Z,
G4int  SubshellNb 
)
static

Definition at line 768 of file G4AtomicShells.cc.

References assert.

Referenced by G4Element::AddIsotope(), export_G4AtomicShells(), G4Element::G4Element(), G4EmCorrections::LShellCorrection(), G4DeltaAngle::SampleDirection(), and G4EmCorrections::ShellCorrection().

769 {
770  assert (Z>0 && Z<101 && ShellNb<fNumberOfShells[Z]);
771  return fNumberOfElectrons[fIndexOfShells[Z] + ShellNb];
772 }
#define assert(x)
Definition: mymalloc.cc:1309
G4int G4AtomicShells::GetNumberOfShells ( G4int  Z)
static
G4double G4AtomicShells::GetTotalBindingEnergy ( G4int  Z)

Definition at line 776 of file G4AtomicShells.cc.

References assert, energy(), and python.hepunit::eV.

Referenced by export_G4AtomicShells().

777 {
778  assert (Z>=1 && Z<101);
779 
780  G4int idx = fIndexOfShells[Z];
781  G4int idxmax = idx + fNumberOfShells[Z];
782  G4double energy = 0.0;
783  for (G4int i=idx; i<idxmax; ++i) {energy += fBindingEnergies[i];}
784  return energy*eV;
785 }
#define assert(x)
Definition: mymalloc.cc:1309
int G4int
Definition: G4Types.hh:78
double precision function energy(A, Z)
Definition: dpm25nuc6.f:4106
double G4double
Definition: G4Types.hh:76

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