source: trunk/source/particles/management/include/G4NucleiPropertiesTable.hh @ 890

Last change on this file since 890 was 890, checked in by garnier, 16 years ago

update to pre-tag revision

File size: 4.7 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: G4NucleiPropertiesTable.hh,v 1.14 2008/10/22 12:35:46 kurasige Exp $
28// GEANT4 tag $Name:  $
29//
30// -------------------------------------------------------------------
31//      GEANT 4 class file --- Copyright CERN 1997
32//      CERN Geneva Switzerland
33//
34//
35//      File name:     G4NucleiPropertiesTable.cc
36//
37//      Authors:       Vicente Lara (Vicente.Lara@cern.ch)
38//                     Christian V"olcker (Christian.Volcker@cern.ch),
39//
40//      Creation date: November 1997
41//
42//      Testfiles:
43//
44//      Modifications:
45//
46// Migrate into particles category by H.Kurashige (17 Nov. 98)
47// Subtract electron mass by H.Kurashige
48// Avoid substraction of electron mass in Atomic masses by V.Lara (12 May 99)
49// Remove "theInstance"  by H.Kurashige (12 Dec. 03)
50// -------------------------------------------------------------------
51#include "globals.hh"
52#include <cmath>
53
54
55#ifndef G4NucleiPropertiesTable_h
56#define G4NucleiPropertiesTable_h 1
57
58// Class Description
59// Class: G4NucleiPropertiesTable
60//      Encapsulates Data from G. Audi and A.H. Wapstra, Nucl.
61//      Physics,A595 vol 4 p 409-480,
62//      25. Dec. 1995.
63//      Name, Z, A,
64//      Mass Excess
65//      Binding Energy
66//      Beta Decay Energy
67//      Atomic Mass
68
69class G4NucleiProperties;
70
71class G4NucleiPropertiesTable 
72{
73private:
74 
75  // Default constructor - this class should exist only once!
76  G4NucleiPropertiesTable(){};
77
78public:
79
80  // Destructor (generated)
81  ~G4NucleiPropertiesTable() { };
82
83  enum  {nEntries = 2931,MaxA = 273}; 
84
85  // Other Operations
86  // all methods are private and can be used only by G4NucleiProperties
87
88  friend class G4NucleiProperties; 
89
90private:
91
92  // Operation: GetMassExcess
93  static G4double GetMassExcess(G4int Z, G4int A); 
94
95  // Operation: GetNuclearMass
96  static G4double GetNuclearMass(G4int Z, G4int A);
97
98  // Operation: GetBindingEnergy
99  static G4double GetBindingEnergy(G4int Z, G4int A);
100
101  // Operation: GetBetaDecayEnergy
102  static G4double GetBetaDecayEnergy(G4int Z, G4int A);
103
104  // Operation: GetAtomicMass .. in Geant4 Energy units!
105  static G4double GetAtomicMass(G4int Z, G4int A);
106
107  // Is the nucleus (A,Z) in table?
108  static G4bool IsInTable(G4int Z, G4int A);
109
110  static G4int MaxZ(G4int A);
111  static G4int MinZ(G4int A);
112
113
114private:
115
116  // Operation: GetIndex
117  static G4int GetIndex(G4int Z, G4int A);
118 
119
120  // Data Members for Class Attributes
121  //---------------------------------- 
122
123  // The following arrays are static for allow inicialization.
124  // The inicialization is Done in G4NucleiPropertiesTable.cc
125
126  // Mass Excess
127  static G4double MassExcess[nEntries];
128 
129 
130  // Beta Decay Energy
131  static G4double BetaEnergy[nEntries];
132
133   
134  // Table of Z (number of protons) and A (number of nucleons)
135  //        indexArray[0][ ] --> Z
136  //        indexArray[1][ ] --> A
137  static G4int indexArray[2][nEntries];
138
139  // Reduced Table of A for shorter index search.
140  //         The index in this table coincide with A-1
141  //         For each A value shortTable[A-1] has the index of the 1st occurrence in
142  //         the indexArray[][]
143  static G4int shortTable[MaxA+1];
144
145
146};
147
148
149#endif
150
151
152
153
154
155
Note: See TracBrowser for help on using the repository browser.