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

#include <G4CookShellCorrections.hh>

Public Types

enum  {
  ZTableSize = 68 , NTableSize = 118 , ZTableMin = 28 , ZTableMax = 95 ,
  NTableMin = 33 , NTableMax = 150
}
 

Public Member Functions

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

Detailed Description

Definition at line 38 of file G4CookShellCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ZTableSize 
NTableSize 
ZTableMin 
ZTableMax 
NTableMin 
NTableMax 

Definition at line 54 of file G4CookShellCorrections.hh.

Constructor & Destructor Documentation

◆ G4CookShellCorrections()

G4CookShellCorrections::G4CookShellCorrections ( )
explicit

Definition at line 68 of file G4CookShellCorrections.cc.

69{
70 for(size_t i=0; i<ZTableSize; ++i) { ShellZTable[i] *= CLHEP::MeV; }
71 for(size_t i=0; i<NTableSize; ++i) { ShellNTable[i] *= CLHEP::MeV; }
72}

Member Function Documentation

◆ GetShellCorrection()

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

Definition at line 44 of file G4CookShellCorrections.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

Referenced by G4ShellCorrection::GetShellCorrection().


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