G4CameronGilbertShellCorrections Class Reference

#include <G4CameronGilbertShellCorrections.hh>


Public Types

 ZTableSize = 88
 NTableSize = 140
 ZTableMin = 11
 ZTableMax = 98
 NTableMin = 11
 NTableMax = 150
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

Enumerator:
ZTableSize 
NTableSize 
ZTableMin 
ZTableMax 
NTableMin 
NTableMax 

Definition at line 98 of file G4CameronGilbertShellCorrections.hh.

00098         { ZTableSize = 88, NTableSize = 140, ZTableMin = 11, ZTableMax = 98,
00099           NTableMin = 11, NTableMax = 150 };


Constructor & Destructor Documentation

G4CameronGilbertShellCorrections::~G4CameronGilbertShellCorrections (  ) 

Definition at line 75 of file G4CameronGilbertShellCorrections.cc.

00076 {;}


Member Function Documentation

G4CameronGilbertShellCorrections * G4CameronGilbertShellCorrections::GetInstance (  )  [static]

Definition at line 78 of file G4CameronGilbertShellCorrections.cc.

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

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

Definition at line 56 of file G4CameronGilbertShellCorrections.hh.

References GetShellN(), and GetShellZ().

Referenced by G4ShellCorrection::GetShellCorrection().

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

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

Definition at line 79 of file G4CameronGilbertShellCorrections.hh.

References G4cerr, G4endl, IsInTableThisN(), and NTableMin.

Referenced by GetShellCorrection().

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

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

Definition at line 61 of file G4CameronGilbertShellCorrections.hh.

References G4cerr, G4endl, IsInTableThisZ(), and ZTableMin.

Referenced by GetShellCorrection().

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

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

Definition at line 90 of file G4CameronGilbertShellCorrections.hh.

References NTableMax, and NTableMin.

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

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

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

Definition at line 72 of file G4CameronGilbertShellCorrections.hh.

References ZTableMax, and ZTableMin.

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

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


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