Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4CameronGilbertPairingCorrections.hh
Go to the documentation of this file.
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 // $Id: G4CameronGilbertPairingCorrections.hh 68724 2013-04-05 09:26:32Z gcosmo $
27 //
28 // Hadronic Process: Nuclear De-excitations
29 // by V. Lara
30 //
31 // Modified:
32 // 21.03.2013 V.Ivanchenko redesigned and cleaned up
33 
34 
35 #ifndef G4CameronGilbertPairingCorrections_h
36 #define G4CameronGilbertPairingCorrections_h 1
37 
38 #include "globals.hh"
39 
41 {
42 public:
43 
45 
47 
48  inline
50  {
51  return GetPairingZ(Z) + GetPairingN(A-Z);
52  }
53 
54  inline
56  {
57  G4double res = 0.0;
58  if (IsInTableThisZ(Z)) { res = PairingZTable[Z-ZTableMin]; }
59  return res;
60  }
61 
62  inline
64  {
65  return ( Z >= ZTableMin && Z <= ZTableMax );
66  }
67 
68  inline
70  {
71  G4double res = 0.0;
72  if (IsInTableThisN(N)) { res = PairingNTable[N-NTableMin]; }
73  return res;
74  }
75 
77  {
78  return ( N >= NTableMin && N <= NTableMax );
79  }
80 
81  enum { ZTableSize = 88, NTableSize = 140, ZTableMin = 11, ZTableMax = 98,
82  NTableMin = 11, NTableMax = 150 };
83 
84 private:
85 
86  static G4double PairingZTable[ZTableSize];
87  static G4double PairingNTable[NTableSize];
88 
89 };
90 #endif
int G4int
Definition: G4Types.hh:78
bool G4bool
Definition: G4Types.hh:79
G4double GetPairingCorrection(G4int A, G4int Z) const
**D E S C R I P T I O N
double G4double
Definition: G4Types.hh:76