G4PairingCorrection.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 // Hadronic Process: Nuclear De-excitations
00029 // by V. Lara
00030 
00031 #include "G4PairingCorrection.hh"
00032 #include "G4SystemOfUnits.hh"
00033 
00034 G4PairingCorrection* G4PairingCorrection::theInstance = 0;
00035 
00036 G4PairingCorrection::G4PairingCorrection()
00037 {
00038   theCookPairingCorrections =  G4CookPairingCorrections::GetInstance();
00039   theCameronGilbertPairingCorrections = G4CameronGilbertPairingCorrections::GetInstance();
00040 //  theCameronTruranHilfPairingCorrections = G4CameronTruranHilfPairingCorrections::GetInstance();
00041 }
00042 
00043 G4PairingCorrection::~G4PairingCorrection()
00044 {;}
00045 
00046 G4PairingCorrection* G4PairingCorrection::GetInstance()
00047 {
00048   if (!theInstance)  { 
00049     static G4PairingCorrection theCorrections;
00050     theInstance = &theCorrections; 
00051   }
00052   return theInstance;
00053 }   
00054 
00055 G4double G4PairingCorrection::GetPairingCorrection(G4int A, G4int Z) const
00056 {
00057   G4double PCorrection = 0.0;
00058   G4int N = A - Z;
00059   if (theCookPairingCorrections->IsInTableThisN(N) &&
00060       theCookPairingCorrections->IsInTableThisZ(Z)) 
00061     PCorrection = theCookPairingCorrections->GetParingCorrection(A,Z);
00062   else if (theCameronGilbertPairingCorrections->IsInTableThisN(N) &&
00063            theCameronGilbertPairingCorrections->IsInTableThisZ(Z))
00064     PCorrection = theCameronGilbertPairingCorrections->GetPairingCorrection(A,Z);
00065   else {
00066     const G4double PairingConstant = 12.0*MeV;
00067     G4double Pair = (1 - Z + 2*(Z/2)) + (1 - N + 2*(N/2));
00068     PCorrection = Pair*PairingConstant/std::sqrt(static_cast<G4double>(A));
00069   }
00070   return std::max(PCorrection,0.0);
00071 }
00072 
00073 
00074 G4double G4PairingCorrection::GetFissionPairingCorrection(G4int A, G4int Z) const 
00075 {
00076   const G4double PairingConstant = 14.0*MeV;
00077   G4int N = A - Z;
00078   G4double Pair = (1 - Z + 2*(Z/2)) + (1 - N + 2*(N/2));
00079   G4double PCorrection = Pair*PairingConstant/std::sqrt(static_cast<G4double>(A));
00080   return PCorrection;
00081 }

Generated on Mon May 27 17:49:13 2013 for Geant4 by  doxygen 1.4.7