G4CookShellCorrections Class Reference

#include <G4CookShellCorrections.hh>


Public Types

 ZTableSize = 68
 NTableSize = 118
 ZTableMin = 28
 ZTableMax = 95
 NTableMin = 33
 NTableMax = 150
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

Enumerator:
ZTableSize 
NTableSize 
ZTableMin 
ZTableMax 
NTableMin 
NTableMax 

Definition at line 96 of file G4CookShellCorrections.hh.

00096         { ZTableSize = 68, NTableSize = 118, ZTableMin = 28, ZTableMax = 95,
00097           NTableMin = 33, NTableMax = 150 };


Constructor & Destructor Documentation

G4CookShellCorrections::~G4CookShellCorrections (  ) 

Definition at line 74 of file G4CookShellCorrections.cc.

00075 {;}


Member Function Documentation

G4CookShellCorrections * G4CookShellCorrections::GetInstance (  )  [static]

Definition at line 77 of file G4CookShellCorrections.cc.

00078 {
00079   if (!theInstance) { 
00080     static G4CookShellCorrections theCorrections;
00081     theInstance = &theCorrections; 
00082   }
00083   return theInstance;
00084 }

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

Definition at line 57 of file G4CookShellCorrections.hh.

References GetShellN(), and GetShellZ().

Referenced by G4ShellCorrection::GetShellCorrection().

00058   {
00059     return GetShellZ(Z) + GetShellN(A-Z); 
00060   }

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

Definition at line 79 of file G4CookShellCorrections.hh.

References G4cerr, G4endl, and NTableMin.

Referenced by GetShellCorrection().

00080   {
00081     if ( this->IsInTableThisN(N) ) return ShellNTable[N-NTableMin]*CLHEP::MeV;
00082     else {
00083 #ifdef verbose
00084       G4cerr << "G4CookShellCorrections: out of table for N = " << N << G4endl;
00085 #endif
00086       return 0.0;
00087     }
00088   }

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

Definition at line 62 of file G4CookShellCorrections.hh.

References G4cerr, G4endl, and ZTableMin.

Referenced by GetShellCorrection().

00063   {
00064     if ( this->IsInTableThisZ(Z) ) return ShellZTable[Z-ZTableMin]*CLHEP::MeV;
00065     else {
00066 #ifdef verbose
00067       G4cerr << "G4CookShellCorrections: out of table for Z = " << Z << G4endl;
00068 #endif
00069       return 0.0;
00070     }
00071   }

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

Definition at line 90 of file G4CookShellCorrections.hh.

References NTableMax, and NTableMin.

Referenced by G4ShellCorrection::GetShellCorrection().

00091   {
00092     if ( N >= NTableMin && N <= NTableMax ) return true;
00093     else return false;
00094   }

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

Definition at line 73 of file G4CookShellCorrections.hh.

References ZTableMax, and ZTableMin.

Referenced by G4ShellCorrection::GetShellCorrection().

00074   {
00075     if ( Z >= ZTableMin && Z <= ZTableMax ) return true;
00076     else return false;
00077   }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:43 2013 for Geant4 by  doxygen 1.4.7