Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:45

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // G4NucleiProperties
0027 //
0028 // Class description:
0029 //
0030 // Utility class to provide mass formula of nuclei (i.e. it has static
0031 // member function only).
0032 
0033 // Author: V.Lara, October 1998
0034 // History:
0035 // - 17.11.1998, H.Kurashige - Migrated into particles category
0036 // - 31.03.2009, T.Koi - Migrated to AME03
0037 // --------------------------------------------------------------------
0038 #ifndef G4NucleiProperties_hh
0039 #define G4NucleiProperties_hh 1
0040 
0041 #include "G4ios.hh"
0042 #include "globals.hh"
0043 
0044 class G4NucleiProperties
0045 {
0046   public:
0047     G4NucleiProperties() = default;
0048     ~G4NucleiProperties() = default;
0049 
0050     // Give mass of nucleus A,Z
0051     static G4double GetNuclearMass(const G4double A, const G4double Z);
0052     static G4double GetNuclearMass(const G4int A, const G4int Z);
0053 
0054     // Return 'true' if the nucleus is in the stable table
0055     // (i.e. in G4NucleiPropertiesTable)
0056     static G4bool IsInStableTable(const G4double A, const G4double Z);
0057     static G4bool IsInStableTable(const G4int A, const G4int Z);
0058 
0059     // Give binding energy
0060     static G4double GetBindingEnergy(const G4int A, const G4int Z);
0061     static G4double GetBindingEnergy(const G4double A, const G4double Z);
0062 
0063     // Calculate Mass Excess of nucleus A,Z
0064     static G4double GetMassExcess(const G4int A, const G4int Z);
0065     static G4double GetMassExcess(const G4double A, const G4double Z);
0066 
0067   private:
0068     // Hidden methods to enforce using GetNuclearMass
0069 
0070     // Give mass of Atom A,Z
0071     static G4double GetAtomicMass(const G4double A, const G4double Z);
0072 
0073     static G4double AtomicMass(G4double A, G4double Z);
0074 
0075     static G4double NuclearMass(G4double A, G4double Z);
0076 
0077     static G4double BindingEnergy(G4double A, G4double Z);
0078 
0079     static G4double MassExcess(G4double A, G4double Z);
0080 
0081   private:
0082     enum
0083     {
0084       MaxZ = 120
0085     };
0086     // table of orbit electrons mass - binding energy
0087     static G4ThreadLocal G4double electronMass[MaxZ];
0088 
0089     static G4ThreadLocal G4bool isIntialized;
0090     static G4ThreadLocal G4double mass_proton;
0091     static G4ThreadLocal G4double mass_neutron;
0092     static G4ThreadLocal G4double mass_deuteron;
0093     static G4ThreadLocal G4double mass_triton;
0094     static G4ThreadLocal G4double mass_alpha;
0095     static G4ThreadLocal G4double mass_He3;
0096 };
0097 
0098 #endif