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

#include <G4CameronTruranHilfShellCorrections.hh>

Public Types

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

Public Member Functions

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

Detailed Description

Definition at line 38 of file G4CameronTruranHilfShellCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ G4CameronTruranHilfShellCorrections()

G4CameronTruranHilfShellCorrections::G4CameronTruranHilfShellCorrections ( )
explicit

Definition at line 77 of file G4CameronTruranHilfShellCorrections.cc.

78{
79 for(size_t i=0; i<ZTableSize; ++i) { ShellZTable[i] *= CLHEP::MeV; }
80 for(size_t i=0; i<NTableSize; ++i) { ShellNTable[i] *= CLHEP::MeV; }
81}

Member Function Documentation

◆ GetShellCorrection()

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

Definition at line 44 of file G4CameronTruranHilfShellCorrections.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
const G4int Z[17]
#define N
Definition: crc32.c:56

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