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

#include <G4CameronGilbertPairingCorrections.hh>

Public Types

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 G4CameronGilbertPairingCorrectionsGetInstance ()
 

Detailed Description

Definition at line 41 of file G4CameronGilbertPairingCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ ~G4CameronGilbertPairingCorrections()

G4CameronGilbertPairingCorrections::~G4CameronGilbertPairingCorrections ( )

Definition at line 75 of file G4CameronGilbertPairingCorrections.cc.

76{;}

Member Function Documentation

◆ GetInstance()

G4CameronGilbertPairingCorrections * G4CameronGilbertPairingCorrections::GetInstance ( )
static

Definition at line 78 of file G4CameronGilbertPairingCorrections.cc.

79{
80 if (!theInstance) {
81 static G4CameronGilbertPairingCorrections theCorrections;
82 theInstance = &theCorrections;
83 }
84 return theInstance;
85}

◆ GetPairingCorrection()

G4double G4CameronGilbertPairingCorrections::GetPairingCorrection ( const G4int  A,
const G4int  Z 
) const
inline

Definition at line 55 of file G4CameronGilbertPairingCorrections.hh.

56 {
57 return GetPairingZ(Z) + GetPairingN(A-Z);
58 }

Referenced by G4PairingCorrection::GetPairingCorrection().

◆ GetPairingN()

G4double G4CameronGilbertPairingCorrections::GetPairingN ( const G4int  N) const
inline

Definition at line 78 of file G4CameronGilbertPairingCorrections.hh.

79 {
80 if (IsInTableThisN(N)) return PairingNTable[N-NTableMin]*CLHEP::MeV;
81 else {
82#ifdef verbose
83 G4cerr << "G4CameronGilbertPairingCorrections: out of table for N = " << N << G4endl;
84#endif
85 return 0.0;
86 }
87 }
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cerr

Referenced by GetPairingCorrection().

◆ GetPairingZ()

G4double G4CameronGilbertPairingCorrections::GetPairingZ ( const G4int  Z) const
inline

Definition at line 60 of file G4CameronGilbertPairingCorrections.hh.

61 {
62 if (IsInTableThisZ(Z)) return PairingZTable[Z-ZTableMin]*CLHEP::MeV;
63 else {
64#ifdef verbose
65 G4cerr << "G4CameronGilbertPairingCorrections: out of table for Z = " << Z << G4endl;
66#endif
67 return 0.0;
68 }
69 }

Referenced by GetPairingCorrection().

◆ IsInTableThisN()

G4bool G4CameronGilbertPairingCorrections::IsInTableThisN ( const G4int  N) const
inline

Definition at line 89 of file G4CameronGilbertPairingCorrections.hh.

90 {
91 if ( N >= NTableMin && N <= NTableMax ) return true;
92 else return false;
93 }

Referenced by G4PairingCorrection::GetPairingCorrection(), and GetPairingN().

◆ IsInTableThisZ()

G4bool G4CameronGilbertPairingCorrections::IsInTableThisZ ( const G4int  Z) const
inline

Definition at line 71 of file G4CameronGilbertPairingCorrections.hh.

72 {
73 if ( Z >= ZTableMin && Z <= ZTableMax ) return true;
74 else return false;
75 }

Referenced by G4PairingCorrection::GetPairingCorrection(), and GetPairingZ().


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