G4CameronTruranHilfPairingCorrections Class Reference

#include <G4CameronTruranHilfPairingCorrections.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

 ~G4CameronTruranHilfPairingCorrections ()
G4double GetParingCorrection (const G4int A, const G4int Z) const
G4double GetPairingZ (const G4int Z) const
G4bool IsInTableThisZ (const G4int Z) const
G4double GetPairingN (const G4int N) const
G4bool IsInTableThisN (const G4int N) const

Static Public Member Functions

static G4CameronTruranHilfPairingCorrectionsGetInstance ()


Detailed Description

Definition at line 41 of file G4CameronTruranHilfPairingCorrections.hh.


Member Enumeration Documentation

anonymous enum

Enumerator:
ZTableSize 
NTableSize 
ZTableMin 
ZTableMax 
NTableMin 
NTableMax 

Definition at line 97 of file G4CameronTruranHilfPairingCorrections.hh.

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


Constructor & Destructor Documentation

G4CameronTruranHilfPairingCorrections::~G4CameronTruranHilfPairingCorrections (  ) 

Definition at line 80 of file G4CameronTruranHilfPairingCorrections.cc.

00081 {;}


Member Function Documentation

G4CameronTruranHilfPairingCorrections * G4CameronTruranHilfPairingCorrections::GetInstance (  )  [static]

Definition at line 83 of file G4CameronTruranHilfPairingCorrections.cc.

00084 {
00085   if (!theInstance)  { 
00086     static G4CameronTruranHilfPairingCorrections theCorrections;
00087     theInstance = &theCorrections; 
00088   }
00089   return theInstance;
00090 }

G4double G4CameronTruranHilfPairingCorrections::GetPairingN ( const G4int  N  )  const [inline]

Definition at line 79 of file G4CameronTruranHilfPairingCorrections.hh.

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

Referenced by GetParingCorrection().

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

G4double G4CameronTruranHilfPairingCorrections::GetPairingZ ( const G4int  Z  )  const [inline]

Definition at line 61 of file G4CameronTruranHilfPairingCorrections.hh.

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

Referenced by GetParingCorrection().

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

G4double G4CameronTruranHilfPairingCorrections::GetParingCorrection ( const G4int  A,
const G4int  Z 
) const [inline]

Definition at line 55 of file G4CameronTruranHilfPairingCorrections.hh.

References GetPairingN(), and GetPairingZ().

00056   {
00057     return GetPairingZ(Z) + GetPairingN(A-Z);
00058   }

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

Definition at line 90 of file G4CameronTruranHilfPairingCorrections.hh.

References NTableMax, and NTableMin.

Referenced by GetPairingN().

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

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

Definition at line 72 of file G4CameronTruranHilfPairingCorrections.hh.

References ZTableMax, and ZTableMin.

Referenced by GetPairingZ().

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