Geant4 9.6.0
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 ()
 
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 G4CameronTruranHilfShellCorrectionsGetInstance ()
 

Detailed Description

Definition at line 40 of file G4CameronTruranHilfShellCorrections.hh.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ ~G4CameronTruranHilfShellCorrections()

G4CameronTruranHilfShellCorrections::~G4CameronTruranHilfShellCorrections ( )

Definition at line 82 of file G4CameronTruranHilfShellCorrections.cc.

83{;}

Member Function Documentation

◆ GetInstance()

G4CameronTruranHilfShellCorrections * G4CameronTruranHilfShellCorrections::GetInstance ( )
static

Definition at line 85 of file G4CameronTruranHilfShellCorrections.cc.

86{
87 if (!theInstance) {
88 static G4CameronTruranHilfShellCorrections theCorrections;
89 theInstance = &theCorrections;
90 }
91 return theInstance;
92}

◆ GetShellCorrection()

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

Definition at line 54 of file G4CameronTruranHilfShellCorrections.hh.

55 {
56 return GetShellZ(Z) + GetShellN(A-Z);
57 }

◆ GetShellN()

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

Definition at line 76 of file G4CameronTruranHilfShellCorrections.hh.

77 {
78 if (IsInTableThisN(N)) return ShellNTable[N-NTableMin]*CLHEP::MeV;
79 else {
80#ifdef verbose
81 G4cerr << "G4CameronTruranHilfShellCorrections: out of table for N = " << N << G4endl;
82#endif
83 return 0.0;
84 }
85 }
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cerr

Referenced by GetShellCorrection().

◆ GetShellZ()

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

Definition at line 59 of file G4CameronTruranHilfShellCorrections.hh.

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

Referenced by GetShellCorrection().

◆ IsInTableThisN()

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

Definition at line 87 of file G4CameronTruranHilfShellCorrections.hh.

88 {
89 if ( N >= NTableMin && N <= NTableMax ) return true;
90 else return false;
91 }

Referenced by GetShellN().

◆ IsInTableThisZ()

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

Definition at line 70 of file G4CameronTruranHilfShellCorrections.hh.

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

Referenced by GetShellZ().


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