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

Detailed Description

Definition at line 39 of file G4CameronGilbertPairingCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ G4CameronGilbertPairingCorrections()

G4CameronGilbertPairingCorrections::G4CameronGilbertPairingCorrections ( )
explicit

Definition at line 71 of file G4CameronGilbertPairingCorrections.cc.

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

Member Function Documentation

◆ GetPairingCorrection()

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

Definition at line 45 of file G4CameronGilbertPairingCorrections.hh.

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

Referenced by G4PairingCorrection::GetPairingCorrection().


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