Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4StableIsotopes.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 //
0027 //
0028 #ifndef G4StableIsotopes_h
0029 #define G4StableIsotopes_h 1
0030 
0031 // Class Description
0032 // class utility that knows about all naturally occuring isotopes.;
0033 // to be used in your process implementation in case you need this.
0034 // Class Description - End
0035 
0036 
0037 // class, that knows the stable isotopes for all elements.
0038 // H.P. Wellisch, 21. Nov. 1997
0039 // Accessable by name, and Z
0040 //
0041 // To loop over all isotopes for element with protonount Z
0042 // G4StableIsotopes theIso;
0043 // for (G4int i=0; i<theIso.GetNumberOfIsotopes(); i++)
0044 // {
0045 //    G4double fracInPercent=theIso.GetAbundance(theIso.GetFirstIsotope(Z)+i);
0046 // }
0047 //
0048 #include "globals.hh"
0049 
0050 class G4StableIsotopes
0051 {
0052 
0053 public:
0054 
0055 G4String GetName(G4int Z);
0056 G4int GetNumberOfIsotopes(G4int Z);
0057 G4int GetFirstIsotope(G4int Z);
0058 G4int GetIsotopeNucleonCount(G4int number);
0059 G4double GetAbundance(G4int number);
0060 G4int GetProtonCount(G4int Z);
0061 
0062 private:
0063 
0064 static const G4int protonCount[92];
0065 static const G4String elementName[92];
0066 static const G4int nIsotopes[92];
0067 static const G4int start[92];
0068 static const G4int nucleonCount[287];
0069 static const G4double abundance[287];
0070 };
0071 
0072 #endif