Geant4 11.1.1
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 ()
 
G4bool GetPairingCorrection (G4int N, G4int Z, G4double &result) const
 

Detailed Description

Definition at line 38 of file G4CookPairingCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constructor & Destructor Documentation

◆ G4CookPairingCorrections()

G4CookPairingCorrections::G4CookPairingCorrections ( )
explicit

Definition at line 70 of file G4CookPairingCorrections.cc.

71{
72 for(size_t i=0; i<ZTableSize; ++i) { PairingZTable[i] *= CLHEP::MeV; }
73 for(size_t i=0; i<NTableSize; ++i) { PairingNTable[i] *= CLHEP::MeV; }
74}

Member Function Documentation

◆ GetPairingCorrection()

G4bool G4CookPairingCorrections::GetPairingCorrection ( G4int  N,
G4int  Z,
G4double result 
) const
inline

Definition at line 44 of file G4CookPairingCorrections.hh.

45 {
46 G4bool res = false;
47 if(Z >= ZTableMin && Z <= ZTableMax && N >= NTableMin && N <= NTableMax) {
48 result = PairingZTable[Z-ZTableMin] + PairingNTable[N-NTableMin];
49 res = true;
50 }
51 return res;
52 }
bool G4bool
Definition: G4Types.hh:86
const G4int Z[17]
#define N
Definition: crc32.c:56

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