G4ShellCorrection Class Reference

#include <G4ShellCorrection.hh>


Public Member Functions

 ~G4ShellCorrection ()
G4double GetShellCorrection (const G4int A, const G4int Z) const

Static Public Member Functions

static G4ShellCorrectionGetInstance ()


Detailed Description

Definition at line 41 of file G4ShellCorrection.hh.


Constructor & Destructor Documentation

G4ShellCorrection::~G4ShellCorrection (  ) 

Definition at line 44 of file G4ShellCorrection.cc.

00045 {
00046 }


Member Function Documentation

G4ShellCorrection * G4ShellCorrection::GetInstance (  )  [static]

Definition at line 48 of file G4ShellCorrection.cc.

00049 {
00050   if (!theInstance)  { 
00051     static G4ShellCorrection theCorrections;
00052     theInstance = &theCorrections; 
00053   }
00054   return theInstance;
00055 }   

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

Definition at line 54 of file G4ShellCorrection.hh.

References G4CameronGilbertShellCorrections::GetShellCorrection(), G4CookShellCorrections::GetShellCorrection(), G4CameronGilbertShellCorrections::IsInTableThisN(), G4CookShellCorrections::IsInTableThisN(), G4CameronGilbertShellCorrections::IsInTableThisZ(), and G4CookShellCorrections::IsInTableThisZ().

00055   {
00056     G4double SCorrection = 0.0;
00057     if (theCookShellCorrections->IsInTableThisN(A-Z) || 
00058         theCookShellCorrections->IsInTableThisZ(Z)) 
00059       SCorrection = theCookShellCorrections->GetShellCorrection(A,Z);
00060     else if (theCameronGilbertShellCorrections->IsInTableThisN(A-Z) || 
00061              theCameronGilbertShellCorrections->IsInTableThisZ(Z))
00062       SCorrection = theCameronGilbertShellCorrections->GetShellCorrection(A,Z);
00063     
00064     return SCorrection;
00065   }


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