Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions
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 ()
 
G4double GetShellCorrection (G4int A, G4int Z) const
 
G4double GetShellZ (G4int Z) const
 
G4bool IsInTableThisZ (G4int Z) const
 
G4double GetShellN (G4int N) const
 
G4bool IsInTableThisN (G4int N) const
 

Detailed Description

Definition at line 39 of file G4CameronGilbertShellCorrections.hh.

Member Enumeration Documentation

anonymous enum

Constructor & Destructor Documentation

G4CameronGilbertShellCorrections::G4CameronGilbertShellCorrections ( )

Definition at line 72 of file G4CameronGilbertShellCorrections.cc.

References NTableSize, and ZTableSize.

73 {
74  for(size_t i=0; i<ZTableSize; ++i) { ShellZTable[i] *= CLHEP::MeV; }
75  for(size_t i=0; i<NTableSize; ++i) { ShellNTable[i] *= CLHEP::MeV; }
76 }
G4CameronGilbertShellCorrections::~G4CameronGilbertShellCorrections ( )

Definition at line 78 of file G4CameronGilbertShellCorrections.cc.

79 {}

Member Function Documentation

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

Definition at line 48 of file G4CameronGilbertShellCorrections.hh.

References GetShellN(), and GetShellZ().

Referenced by G4ShellCorrection::GetShellCorrection().

49  {
50  return GetShellZ(Z) + GetShellN(A-Z);
51  }
G4double G4CameronGilbertShellCorrections::GetShellN ( G4int  N) const
inline

Definition at line 68 of file G4CameronGilbertShellCorrections.hh.

References IsInTableThisN(), and NTableMin.

Referenced by GetShellCorrection().

69  {
70  G4double res = 0.0;
71  if (IsInTableThisN(N)) { res = ShellNTable[N-NTableMin]; }
72  return res;
73  }
**D E S C R I P T I O N
double G4double
Definition: G4Types.hh:76
G4double G4CameronGilbertShellCorrections::GetShellZ ( G4int  Z) const
inline

Definition at line 54 of file G4CameronGilbertShellCorrections.hh.

References IsInTableThisZ(), and ZTableMin.

Referenced by GetShellCorrection().

55  {
56  G4double res = 0.0;
57  if (IsInTableThisZ(Z)) { res = ShellZTable[Z-ZTableMin]; }
58  return res;
59  }
double G4double
Definition: G4Types.hh:76
G4bool G4CameronGilbertShellCorrections::IsInTableThisN ( G4int  N) const
inline
G4bool G4CameronGilbertShellCorrections::IsInTableThisZ ( G4int  Z) const
inline

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