#include <G4CameronGilbertShellCorrections.hh>
Public Types | |
ZTableSize = 88 | |
NTableSize = 140 | |
ZTableMin = 11 | |
ZTableMax = 98 | |
NTableMin = 11 | |
NTableMax = 150 | |
enum | { ZTableSize = 88, NTableSize = 140, ZTableMin = 11, ZTableMax = 98, NTableMin = 11, NTableMax = 150 } |
Public Member Functions | |
~G4CameronGilbertShellCorrections () | |
G4double | GetShellCorrection (const G4int A, const G4int Z) const |
G4double | GetShellZ (const G4int Z) const |
G4bool | IsInTableThisZ (const G4int Z) const |
G4double | GetShellN (const G4int N) const |
G4bool | IsInTableThisN (const G4int N) const |
Static Public Member Functions | |
static G4CameronGilbertShellCorrections * | GetInstance () |
Definition at line 41 of file G4CameronGilbertShellCorrections.hh.
anonymous enum |
Definition at line 98 of file G4CameronGilbertShellCorrections.hh.
00098 { ZTableSize = 88, NTableSize = 140, ZTableMin = 11, ZTableMax = 98, 00099 NTableMin = 11, NTableMax = 150 };
G4CameronGilbertShellCorrections::~G4CameronGilbertShellCorrections | ( | ) |
G4CameronGilbertShellCorrections * G4CameronGilbertShellCorrections::GetInstance | ( | ) | [static] |
Definition at line 78 of file G4CameronGilbertShellCorrections.cc.
00079 { 00080 if (!theInstance) { 00081 static G4CameronGilbertShellCorrections theCorrections; 00082 theInstance = &theCorrections; 00083 } 00084 return theInstance; 00085 }
G4double G4CameronGilbertShellCorrections::GetShellCorrection | ( | const G4int | A, | |
const G4int | Z | |||
) | const [inline] |
Definition at line 56 of file G4CameronGilbertShellCorrections.hh.
References GetShellN(), and GetShellZ().
Referenced by G4ShellCorrection::GetShellCorrection().
Definition at line 79 of file G4CameronGilbertShellCorrections.hh.
References G4cerr, G4endl, IsInTableThisN(), and NTableMin.
Referenced by GetShellCorrection().
00080 { 00081 if (IsInTableThisN(N)) return ShellNTable[N-NTableMin]*CLHEP::MeV; 00082 else { 00083 #ifdef verbose 00084 G4cerr << "G4CameronGilbertShellCorrections: out of table for N = " << N << G4endl; 00085 #endif 00086 return 0.0; 00087 } 00088 }
Definition at line 61 of file G4CameronGilbertShellCorrections.hh.
References G4cerr, G4endl, IsInTableThisZ(), and ZTableMin.
Referenced by GetShellCorrection().
00062 { 00063 if (IsInTableThisZ(Z)) return ShellZTable[Z-ZTableMin]*CLHEP::MeV; 00064 else { 00065 #ifdef verbose 00066 G4cerr << "G4CameronGilbertShellCorrections: out of table for Z = " << Z << G4endl; 00067 #endif 00068 return 0.0; 00069 } 00070 }
Definition at line 90 of file G4CameronGilbertShellCorrections.hh.
References NTableMax, and NTableMin.
Referenced by G4ShellCorrection::GetShellCorrection(), and GetShellN().
Definition at line 72 of file G4CameronGilbertShellCorrections.hh.
References ZTableMax, and ZTableMin.
Referenced by G4ShellCorrection::GetShellCorrection(), and GetShellZ().