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

#include <G4CookPairingCorrections.hh>

Public Types

enum  {
  ZTableSize = 68 , NTableSize = 118 , ZTableMin = 28 , ZTableMax = 95 ,
  NTableMin = 33 , NTableMax = 150
}
 

Public Member Functions

 ~G4CookPairingCorrections ()
 
G4double GetParingCorrection (G4int A, G4int Z) const
 
G4double GetPairingZ (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 G4CookPairingCorrectionsGetInstance ()
 

Detailed Description

Definition at line 42 of file G4CookPairingCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constructor & Destructor Documentation

◆ ~G4CookPairingCorrections()

G4CookPairingCorrections::~G4CookPairingCorrections ( )

Definition at line 74 of file G4CookPairingCorrections.cc.

75{;}

Member Function Documentation

◆ GetInstance()

G4CookPairingCorrections * G4CookPairingCorrections::GetInstance ( )
static

Definition at line 77 of file G4CookPairingCorrections.cc.

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

◆ GetPairingN()

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

Definition at line 75 of file G4CookPairingCorrections.hh.

75 {
76 if ( this->IsInTableThisN(N) ) return PairingNTable[N-NTableMin]*CLHEP::MeV;
77 else {
78#ifdef verbose
79 G4cerr << "G4CookPairingCorrections: out of table for N = " << N << G4endl;
80#endif
81 return 0.0;
82 }
83 }
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cerr
G4bool IsInTableThisN(const G4int N) const

Referenced by GetParingCorrection().

◆ GetPairingZ()

G4double G4CookPairingCorrections::GetPairingZ ( G4int  Z) const
inline

Definition at line 60 of file G4CookPairingCorrections.hh.

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

Referenced by GetParingCorrection().

◆ GetParingCorrection()

G4double G4CookPairingCorrections::GetParingCorrection ( G4int  A,
G4int  Z 
) const
inline

Definition at line 55 of file G4CookPairingCorrections.hh.

55 {
56 return GetPairingZ(Z) + GetPairingN(A-Z);
57 }
G4double GetPairingZ(G4int Z) const
G4double GetPairingN(const G4int N) const

Referenced by G4PairingCorrection::GetPairingCorrection().

◆ IsInTableThisN()

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

Definition at line 85 of file G4CookPairingCorrections.hh.

85 {
86 if ( N >= NTableMin && N <= NTableMax ) return true;
87 else return false;
88 }

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

◆ IsInTableThisZ()

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

Definition at line 70 of file G4CookPairingCorrections.hh.

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

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


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