Geant4 9.6.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 ()
 
G4double GetShellCorrection (const G4int A, const 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 G4CameronGilbertShellCorrectionsGetInstance ()
 

Detailed Description

Definition at line 41 of file G4CameronGilbertShellCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ ~G4CameronGilbertShellCorrections()

G4CameronGilbertShellCorrections::~G4CameronGilbertShellCorrections ( )

Definition at line 75 of file G4CameronGilbertShellCorrections.cc.

76{;}

Member Function Documentation

◆ GetInstance()

G4CameronGilbertShellCorrections * G4CameronGilbertShellCorrections::GetInstance ( )
static

Definition at line 78 of file G4CameronGilbertShellCorrections.cc.

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

◆ GetShellCorrection()

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

Definition at line 56 of file G4CameronGilbertShellCorrections.hh.

57 {
58 return GetShellZ(Z) + GetShellN(A-Z);
59 }

Referenced by G4ShellCorrection::GetShellCorrection().

◆ GetShellN()

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

Definition at line 79 of file G4CameronGilbertShellCorrections.hh.

80 {
81 if (IsInTableThisN(N)) return ShellNTable[N-NTableMin]*CLHEP::MeV;
82 else {
83#ifdef verbose
84 G4cerr << "G4CameronGilbertShellCorrections: 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

Referenced by GetShellCorrection().

◆ GetShellZ()

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

Definition at line 61 of file G4CameronGilbertShellCorrections.hh.

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

Referenced by GetShellCorrection().

◆ IsInTableThisN()

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

Definition at line 90 of file G4CameronGilbertShellCorrections.hh.

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

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

◆ IsInTableThisZ()

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

Definition at line 72 of file G4CameronGilbertShellCorrections.hh.

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

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


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