source: trunk/source/processes/hadronic/models/de_excitation/util/include/G4CookPairingCorrections.hh @ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 3.3 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: G4CookPairingCorrections.hh,v 1.5 2009/03/04 11:05:02 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-03-ref-09 $
29//
30// Hadronic Process: Nuclear De-excitations
31// by V. Lara
32
33
34#ifndef G4CookPairingCorrections_h
35#define G4CookPairingCorrections_h 1
36
37#include "globals.hh"
38
39//#define verbose 1
40
41class G4CookPairingCorrections
42{
43private:
44  G4CookPairingCorrections();
45       
46  static G4CookPairingCorrections* theInstance;
47 
48
49public:
50  static G4CookPairingCorrections* GetInstance();
51
52  ~G4CookPairingCorrections();
53
54  G4double GetParingCorrection(const G4int A, const G4int Z) const {
55    return GetPairingZ(Z) + GetPairingN(A-Z);
56  }
57
58
59  G4double GetPairingZ(const G4int Z) const {
60    if ( this->IsInTableThisZ(Z) ) return PairingZTable[Z-ZTableMin]*MeV;
61    else {
62#ifdef verbose
63      G4cerr << "G4CookPairingCorrections: out of table for Z = " << Z << G4endl;
64#endif
65      return 0.0;
66    }
67  }
68
69  G4bool IsInTableThisZ(const G4int Z) const {
70    if ( Z >= ZTableMin && Z <= ZTableMax ) return true;
71    else return false;
72  }
73 
74  G4double GetPairingN(const G4int N) const {
75    if ( this->IsInTableThisN(N) ) return PairingNTable[N-NTableMin]*MeV;
76    else {
77#ifdef verbose
78      G4cerr << "G4CookPairingCorrections: out of table for N = " << N << G4endl;
79#endif
80      return 0.0;
81    }
82  }
83 
84  G4bool IsInTableThisN(const G4int N) const {
85    if ( N >= NTableMin && N <= NTableMax ) return true;
86    else return false;
87  }
88 
89  enum  { ZTableSize = 68, NTableSize = 118, ZTableMin = 28, ZTableMax = 95,
90          NTableMin = 33, NTableMax = 150 };
91private:
92 
93
94 
95  static const G4double PairingZTable[ZTableSize];
96 
97  static const G4double PairingNTable[NTableSize];
98 
99};
100#endif
Note: See TracBrowser for help on using the repository browser.