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

#include <G4CameronGilbertShellCorrections.hh>

Public Types

enum  {
  ZTableSize = 88 , NTableSize = 140 , ZTableMin = 11 , ZTableMax = 98 ,
  NTableMin = 11 , NTableMax = 150
}
 

Public Member Functions

 G4CameronGilbertShellCorrections ()
 
G4bool GetShellCorrection (G4int N, G4int Z, G4double &result) const
 

Detailed Description

Definition at line 38 of file G4CameronGilbertShellCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ G4CameronGilbertShellCorrections()

G4CameronGilbertShellCorrections::G4CameronGilbertShellCorrections ( )

Definition at line 71 of file G4CameronGilbertShellCorrections.cc.

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

Member Function Documentation

◆ GetShellCorrection()

G4bool G4CameronGilbertShellCorrections::GetShellCorrection ( G4int  N,
G4int  Z,
G4double result 
) const
inline

Definition at line 44 of file G4CameronGilbertShellCorrections.hh.

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

Referenced by G4ShellCorrection::GetShellCorrection().


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