Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions
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 ()
 
 ~G4CookShellCorrections ()
 
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 G4CookShellCorrections.hh.

Member Enumeration Documentation

anonymous enum

Constructor & Destructor Documentation

G4CookShellCorrections::G4CookShellCorrections ( )

Definition at line 69 of file G4CookShellCorrections.cc.

References NTableSize, and ZTableSize.

70 {
71  for(size_t i=0; i<ZTableSize; ++i) { ShellZTable[i] *= CLHEP::MeV; }
72  for(size_t i=0; i<NTableSize; ++i) { ShellNTable[i] *= CLHEP::MeV; }
73 }
G4CookShellCorrections::~G4CookShellCorrections ( )

Definition at line 75 of file G4CookShellCorrections.cc.

76 {}

Member Function Documentation

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

Definition at line 48 of file G4CookShellCorrections.hh.

References GetShellN(), and GetShellZ().

Referenced by G4ShellCorrection::GetShellCorrection().

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

Definition at line 68 of file G4CookShellCorrections.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  }
G4bool IsInTableThisN(G4int N) const
**D E S C R I P T I O N
double G4double
Definition: G4Types.hh:76
G4double G4CookShellCorrections::GetShellZ ( G4int  Z) const
inline

Definition at line 54 of file G4CookShellCorrections.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  }
G4bool IsInTableThisZ(G4int Z) const
double G4double
Definition: G4Types.hh:76
G4bool G4CookShellCorrections::IsInTableThisN ( G4int  N) const
inline
G4bool G4CookShellCorrections::IsInTableThisZ ( G4int  Z) const
inline

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