G4CameronTruranHilfShellCorrections Class Reference

#include <G4CameronTruranHilfShellCorrections.hh>


Public Types

 ZTableSize = 93
 NTableSize = 146
 ZTableMin = 10
 ZTableMax = 102
 NTableMin = 10
 NTableMax = 155
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

Enumerator:
ZTableSize 
NTableSize 
ZTableMin 
ZTableMax 
NTableMin 
NTableMax 

Definition at line 93 of file G4CameronTruranHilfShellCorrections.hh.

00093         { ZTableSize = 93, NTableSize = 146, ZTableMin = 10, ZTableMax = 102,
00094           NTableMin = 10, NTableMax = 155 };


Constructor & Destructor Documentation

G4CameronTruranHilfShellCorrections::~G4CameronTruranHilfShellCorrections (  ) 

Definition at line 82 of file G4CameronTruranHilfShellCorrections.cc.

00083 {;}


Member Function Documentation

G4CameronTruranHilfShellCorrections * G4CameronTruranHilfShellCorrections::GetInstance (  )  [static]

Definition at line 85 of file G4CameronTruranHilfShellCorrections.cc.

00086 {
00087   if (!theInstance)  { 
00088     static G4CameronTruranHilfShellCorrections theCorrections;
00089     theInstance = &theCorrections; 
00090   }
00091   return theInstance;
00092 }

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

Definition at line 54 of file G4CameronTruranHilfShellCorrections.hh.

References GetShellN(), and GetShellZ().

00055   {
00056     return GetShellZ(Z) + GetShellN(A-Z);
00057   }

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

Definition at line 76 of file G4CameronTruranHilfShellCorrections.hh.

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

Referenced by GetShellCorrection().

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

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

Definition at line 59 of file G4CameronTruranHilfShellCorrections.hh.

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

Referenced by GetShellCorrection().

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

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

Definition at line 87 of file G4CameronTruranHilfShellCorrections.hh.

References NTableMax, and NTableMin.

Referenced by GetShellN().

00088   {
00089     if ( N >= NTableMin && N <= NTableMax ) return true;
00090     else return false;
00091   }

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

Definition at line 70 of file G4CameronTruranHilfShellCorrections.hh.

References ZTableMax, and ZTableMin.

Referenced by GetShellZ().

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


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