Geant4 9.6.0
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 ()
 
G4double GetShellCorrection (G4int A, G4int Z) const
 
G4double GetShellZ (const G4int Z) const
 
G4bool IsInTableThisZ (const G4int Z) const
 
G4double GetShellN (const G4int N) const
 
G4bool IsInTableThisN (const G4int N) const
 

Static Public Member Functions

static G4CookShellCorrectionsGetInstance ()
 

Detailed Description

Definition at line 42 of file G4CookShellCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ZTableSize 
NTableSize 
ZTableMin 
ZTableMax 
NTableMin 
NTableMax 

Definition at line 96 of file G4CookShellCorrections.hh.

Constructor & Destructor Documentation

◆ ~G4CookShellCorrections()

G4CookShellCorrections::~G4CookShellCorrections ( )

Definition at line 74 of file G4CookShellCorrections.cc.

75{;}

Member Function Documentation

◆ GetInstance()

G4CookShellCorrections * G4CookShellCorrections::GetInstance ( )
static

Definition at line 77 of file G4CookShellCorrections.cc.

78{
79 if (!theInstance) {
80 static G4CookShellCorrections theCorrections;
81 theInstance = &theCorrections;
82 }
83 return theInstance;
84}

◆ GetShellCorrection()

G4double G4CookShellCorrections::GetShellCorrection ( G4int  A,
G4int  Z 
) const
inline

Definition at line 57 of file G4CookShellCorrections.hh.

58 {
59 return GetShellZ(Z) + GetShellN(A-Z);
60 }
G4double GetShellZ(const G4int Z) const
G4double GetShellN(const G4int N) const

Referenced by G4ShellCorrection::GetShellCorrection().

◆ GetShellN()

G4double G4CookShellCorrections::GetShellN ( const G4int  N) const
inline

Definition at line 79 of file G4CookShellCorrections.hh.

80 {
81 if ( this->IsInTableThisN(N) ) return ShellNTable[N-NTableMin]*CLHEP::MeV;
82 else {
83#ifdef verbose
84 G4cerr << "G4CookShellCorrections: out of table for N = " << N << G4endl;
85#endif
86 return 0.0;
87 }
88 }
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cerr
G4bool IsInTableThisN(const G4int N) const

Referenced by GetShellCorrection().

◆ GetShellZ()

G4double G4CookShellCorrections::GetShellZ ( const G4int  Z) const
inline

Definition at line 62 of file G4CookShellCorrections.hh.

63 {
64 if ( this->IsInTableThisZ(Z) ) return ShellZTable[Z-ZTableMin]*CLHEP::MeV;
65 else {
66#ifdef verbose
67 G4cerr << "G4CookShellCorrections: out of table for Z = " << Z << G4endl;
68#endif
69 return 0.0;
70 }
71 }
G4bool IsInTableThisZ(const G4int Z) const

Referenced by GetShellCorrection().

◆ IsInTableThisN()

G4bool G4CookShellCorrections::IsInTableThisN ( const G4int  N) const
inline

Definition at line 90 of file G4CookShellCorrections.hh.

91 {
92 if ( N >= NTableMin && N <= NTableMax ) return true;
93 else return false;
94 }

Referenced by G4ShellCorrection::GetShellCorrection(), and GetShellN().

◆ IsInTableThisZ()

G4bool G4CookShellCorrections::IsInTableThisZ ( const G4int  Z) const
inline

Definition at line 73 of file G4CookShellCorrections.hh.

74 {
75 if ( Z >= ZTableMin && Z <= ZTableMax ) return true;
76 else return false;
77 }

Referenced by G4ShellCorrection::GetShellCorrection(), and GetShellZ().


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