#include <G4CameronGilbertPairingCorrections.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 | |
~G4CameronGilbertPairingCorrections () | |
G4double | GetPairingCorrection (const G4int A, const G4int Z) const |
G4double | GetPairingZ (const G4int Z) const |
G4bool | IsInTableThisZ (const G4int Z) const |
G4double | GetPairingN (const G4int N) const |
G4bool | IsInTableThisN (const G4int N) const |
Static Public Member Functions | |
static G4CameronGilbertPairingCorrections * | GetInstance () |
Definition at line 41 of file G4CameronGilbertPairingCorrections.hh.
anonymous enum |
Definition at line 96 of file G4CameronGilbertPairingCorrections.hh.
00096 { ZTableSize = 88, NTableSize = 140, ZTableMin = 11, ZTableMax = 98, 00097 NTableMin = 11, NTableMax = 150 };
G4CameronGilbertPairingCorrections::~G4CameronGilbertPairingCorrections | ( | ) |
G4CameronGilbertPairingCorrections * G4CameronGilbertPairingCorrections::GetInstance | ( | ) | [static] |
Definition at line 78 of file G4CameronGilbertPairingCorrections.cc.
00079 { 00080 if (!theInstance) { 00081 static G4CameronGilbertPairingCorrections theCorrections; 00082 theInstance = &theCorrections; 00083 } 00084 return theInstance; 00085 }
G4double G4CameronGilbertPairingCorrections::GetPairingCorrection | ( | const G4int | A, | |
const G4int | Z | |||
) | const [inline] |
Definition at line 55 of file G4CameronGilbertPairingCorrections.hh.
References GetPairingN(), and GetPairingZ().
Referenced by G4PairingCorrection::GetPairingCorrection().
00056 { 00057 return GetPairingZ(Z) + GetPairingN(A-Z); 00058 }
Definition at line 78 of file G4CameronGilbertPairingCorrections.hh.
References G4cerr, G4endl, IsInTableThisN(), and NTableMin.
Referenced by GetPairingCorrection().
00079 { 00080 if (IsInTableThisN(N)) return PairingNTable[N-NTableMin]*CLHEP::MeV; 00081 else { 00082 #ifdef verbose 00083 G4cerr << "G4CameronGilbertPairingCorrections: out of table for N = " << N << G4endl; 00084 #endif 00085 return 0.0; 00086 } 00087 }
Definition at line 60 of file G4CameronGilbertPairingCorrections.hh.
References G4cerr, G4endl, IsInTableThisZ(), and ZTableMin.
Referenced by GetPairingCorrection().
00061 { 00062 if (IsInTableThisZ(Z)) return PairingZTable[Z-ZTableMin]*CLHEP::MeV; 00063 else { 00064 #ifdef verbose 00065 G4cerr << "G4CameronGilbertPairingCorrections: out of table for Z = " << Z << G4endl; 00066 #endif 00067 return 0.0; 00068 } 00069 }
Definition at line 89 of file G4CameronGilbertPairingCorrections.hh.
References NTableMax, and NTableMin.
Referenced by G4PairingCorrection::GetPairingCorrection(), and GetPairingN().
Definition at line 71 of file G4CameronGilbertPairingCorrections.hh.
References ZTableMax, and ZTableMin.
Referenced by G4PairingCorrection::GetPairingCorrection(), and GetPairingZ().