Import Geant4 3.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:10:37 +02:00
parent 137e303ecc
commit 36c080dca6
3464 changed files with 119310 additions and 52696 deletions
+27 -13
View File
@@ -1,19 +1,33 @@
// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4IonTable.cc,v 1.26 2000/09/14 10:00:22 hpw Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
// $Id: G4IonTable.cc,v 1.28.2.2 2001/06/28 20:19:11 gunter Exp $
// GEANT4 tag $Name: $
//
//
// --------------------------------------------------------------
// GEANT 4 class implementation file
//
// For information related to this code contact:
// CERN, IT Division, ASD Group
// History: first implementation, based on object model of
// 27 June 1998 H.Kurashige
// ---------------------------------------------------------------
@@ -25,6 +39,7 @@
// -----
// Modified GetIon methods 17 Aug. 99 H.Kurashige
// New design using G4VIsotopeTable 5 Oct. 99 H.Kurashige
// Modified Element Name for Z>103 06 Apr. 01 H.Kurashige
#include "G4IonTable.hh"
@@ -204,7 +219,7 @@ G4ParticleDefinition* G4IonTable::FindIon(G4int Z, G4int A, G4double E, G4int J)
}
// Search ions with A, Z ,E
// !! J is moitted now !!
G4ParticleDefinition* ion;
G4ParticleDefinition* ion=0;
G4bool isFound = false;
// -- loop over all particles in Ion table
@@ -220,7 +235,7 @@ G4ParticleDefinition* G4IonTable::FindIon(G4int Z, G4int A, G4double E, G4int J)
G4double anExcitaionEnergy =0.0;
if ( IsLightIon(ion) ) {
anAtomicNumber = int(ion->GetPDGCharge()/eplus);
anAtomicNumber = G4int(ion->GetPDGCharge()/eplus);
anAtomicMass = ion->GetBaryonNumber();
anExcitaionEnergy = 0.0;
@@ -300,7 +315,6 @@ G4ParticleDefinition* G4IonTable::GetLightIon(G4int Z, G4int A) const
// returns pointer to pre-defined ions
G4ParticleDefinition* ion=0;
G4double mass;
if ( (Z<=2) ) {
if ( (Z==1)&&(A==1) ) {
ion = G4ParticleTable::GetParticleTable()->FindParticle("proton"); // proton
@@ -429,7 +443,7 @@ const G4String G4IonTable::elementName[] = {
"Hf", "Ta", "W", "Re", "Os", "Ir", "Pt", "Au", "Hg", "Tl", "Pb", "Bi", "Po", "At", "Rn",
"Fr", "Ra",
"Ac", "Th", "Pa", "U", "Np", "Pu", "Am", "Cm", "Bk", "Cf", "Es", "Fm", "Md", "No", "Lr",
"Db", "Jl", "Rf", "Bh", "Hn", "Mt", "Xa"
"Rf", "Db", "Sg", "Bh", "Hs", "Mt", "Xa"
};