Geant4 11.1.1
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 ()
 
 ~G4CameronGilbertShellCorrections ()=default
 
G4bool GetShellCorrection (G4int N, G4int Z, G4double &result) const
 
 G4CameronGilbertShellCorrections (const G4CameronGilbertShellCorrections &right)=delete
 
const G4CameronGilbertShellCorrectionsoperator= (const G4CameronGilbertShellCorrections &right)=delete
 

Detailed Description

Definition at line 38 of file G4CameronGilbertShellCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ G4CameronGilbertShellCorrections() [1/2]

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}

◆ ~G4CameronGilbertShellCorrections()

G4CameronGilbertShellCorrections::~G4CameronGilbertShellCorrections ( )
default

◆ G4CameronGilbertShellCorrections() [2/2]

G4CameronGilbertShellCorrections::G4CameronGilbertShellCorrections ( const G4CameronGilbertShellCorrections right)
delete

Member Function Documentation

◆ GetShellCorrection()

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

Definition at line 46 of file G4CameronGilbertShellCorrections.hh.

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

Referenced by G4ShellCorrection::GetShellCorrection().

◆ operator=()

const G4CameronGilbertShellCorrections & G4CameronGilbertShellCorrections::operator= ( const G4CameronGilbertShellCorrections right)
delete

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