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

#include <G4CameronTruranHilfPairingCorrections.hh>

Public Types

enum  {
  ZTableSize = 93 , NTableSize = 146 , ZTableMin = 10 , ZTableMax = 102 ,
  NTableMin = 10 , NTableMax = 155
}
 

Public Member Functions

 ~G4CameronTruranHilfPairingCorrections ()
 
G4double GetParingCorrection (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 G4CameronTruranHilfPairingCorrectionsGetInstance ()
 

Detailed Description

Definition at line 41 of file G4CameronTruranHilfPairingCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ ~G4CameronTruranHilfPairingCorrections()

G4CameronTruranHilfPairingCorrections::~G4CameronTruranHilfPairingCorrections ( )

Definition at line 80 of file G4CameronTruranHilfPairingCorrections.cc.

81{;}

Member Function Documentation

◆ GetInstance()

G4CameronTruranHilfPairingCorrections * G4CameronTruranHilfPairingCorrections::GetInstance ( )
static

Definition at line 83 of file G4CameronTruranHilfPairingCorrections.cc.

84{
85 if (!theInstance) {
86 static G4CameronTruranHilfPairingCorrections theCorrections;
87 theInstance = &theCorrections;
88 }
89 return theInstance;
90}

◆ GetPairingN()

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

Definition at line 79 of file G4CameronTruranHilfPairingCorrections.hh.

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

Referenced by GetParingCorrection().

◆ GetPairingZ()

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

Definition at line 61 of file G4CameronTruranHilfPairingCorrections.hh.

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

Referenced by GetParingCorrection().

◆ GetParingCorrection()

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

Definition at line 55 of file G4CameronTruranHilfPairingCorrections.hh.

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

◆ IsInTableThisN()

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

Definition at line 90 of file G4CameronTruranHilfPairingCorrections.hh.

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

Referenced by GetPairingN().

◆ IsInTableThisZ()

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

Definition at line 72 of file G4CameronTruranHilfPairingCorrections.hh.

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

Referenced by GetPairingZ().


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