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

#include <G4ShellCorrection.hh>

Public Member Functions

 ~G4ShellCorrection ()
 
G4double GetShellCorrection (const G4int A, const G4int Z) const
 

Static Public Member Functions

static G4ShellCorrectionGetInstance ()
 

Detailed Description

Definition at line 41 of file G4ShellCorrection.hh.

Constructor & Destructor Documentation

◆ ~G4ShellCorrection()

G4ShellCorrection::~G4ShellCorrection ( )

Definition at line 44 of file G4ShellCorrection.cc.

45{
46}

Member Function Documentation

◆ GetInstance()

G4ShellCorrection * G4ShellCorrection::GetInstance ( )
static

Definition at line 48 of file G4ShellCorrection.cc.

49{
50 if (!theInstance) {
51 static G4ShellCorrection theCorrections;
52 theInstance = &theCorrections;
53 }
54 return theInstance;
55}

◆ GetShellCorrection()

G4double G4ShellCorrection::GetShellCorrection ( const G4int  A,
const G4int  Z 
) const
inline

Definition at line 54 of file G4ShellCorrection.hh.

55 {
56 G4double SCorrection = 0.0;
57 if (theCookShellCorrections->IsInTableThisN(A-Z) ||
58 theCookShellCorrections->IsInTableThisZ(Z))
59 SCorrection = theCookShellCorrections->GetShellCorrection(A,Z);
60 else if (theCameronGilbertShellCorrections->IsInTableThisN(A-Z) ||
61 theCameronGilbertShellCorrections->IsInTableThisZ(Z))
62 SCorrection = theCameronGilbertShellCorrections->GetShellCorrection(A,Z);
63
64 return SCorrection;
65 }
double G4double
Definition: G4Types.hh:64
G4double GetShellCorrection(const G4int A, const G4int Z) const
G4bool IsInTableThisZ(const G4int Z) const
G4double GetShellCorrection(G4int A, G4int Z) const
G4bool IsInTableThisN(const G4int N) const

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