#include <G4ShellCorrection.hh>
Public Member Functions | |
~G4ShellCorrection () | |
G4double | GetShellCorrection (const G4int A, const G4int Z) const |
Static Public Member Functions | |
static G4ShellCorrection * | GetInstance () |
Definition at line 41 of file G4ShellCorrection.hh.
G4ShellCorrection::~G4ShellCorrection | ( | ) |
G4ShellCorrection * G4ShellCorrection::GetInstance | ( | ) | [static] |
Definition at line 48 of file G4ShellCorrection.cc.
00049 { 00050 if (!theInstance) { 00051 static G4ShellCorrection theCorrections; 00052 theInstance = &theCorrections; 00053 } 00054 return theInstance; 00055 }
Definition at line 54 of file G4ShellCorrection.hh.
References G4CameronGilbertShellCorrections::GetShellCorrection(), G4CookShellCorrections::GetShellCorrection(), G4CameronGilbertShellCorrections::IsInTableThisN(), G4CookShellCorrections::IsInTableThisN(), G4CameronGilbertShellCorrections::IsInTableThisZ(), and G4CookShellCorrections::IsInTableThisZ().
00055 { 00056 G4double SCorrection = 0.0; 00057 if (theCookShellCorrections->IsInTableThisN(A-Z) || 00058 theCookShellCorrections->IsInTableThisZ(Z)) 00059 SCorrection = theCookShellCorrections->GetShellCorrection(A,Z); 00060 else if (theCameronGilbertShellCorrections->IsInTableThisN(A-Z) || 00061 theCameronGilbertShellCorrections->IsInTableThisZ(Z)) 00062 SCorrection = theCameronGilbertShellCorrections->GetShellCorrection(A,Z); 00063 00064 return SCorrection; 00065 }