Import Geant4 3.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:03:00 +02:00
parent cfcb558cfe
commit 137e303ecc
2843 changed files with 37082 additions and 38426 deletions
@@ -29,16 +29,18 @@ void G4NeutronHPCaptureData::BuildPhysicsTable(const G4ParticleDefinition& aP)
{
if(&aP!=G4Neutron::Neutron())
G4Exception("Attempt to use NeutronHP data for particles other than neutrons!!!");
G4int numberOfElements = G4Element::GetNumberOfElements();
size_t numberOfElements = G4Element::GetNumberOfElements();
theCrossSections = new G4PhysicsTable( numberOfElements );
// make a PhysicsVector for each element
static const G4ElementTable *theElementTable = G4Element::GetElementTable();
for( G4int i=0; i<numberOfElements; ++i )
(*theCrossSections)(i) =
G4NeutronHPData::
for( size_t i=0; i<numberOfElements; ++i )
{
G4PhysicsVector* physVec = G4NeutronHPData::
Instance()->MakePhysicsVector((*theElementTable)[i], this);
theCrossSections->push_back(physVec);
}
}
void G4NeutronHPCaptureData::DumpPhysicsTable(const G4ParticleDefinition& aP)
@@ -29,16 +29,18 @@ void G4NeutronHPElasticData::BuildPhysicsTable(const G4ParticleDefinition& aP)
{
if(&aP!=G4Neutron::Neutron())
G4Exception("Attempt to use NeutronHP data for particles other than neutrons!!!");
G4int numberOfElements = G4Element::GetNumberOfElements();
size_t numberOfElements = G4Element::GetNumberOfElements();
theCrossSections = new G4PhysicsTable( numberOfElements );
// make a PhysicsVector for each element
static const G4ElementTable *theElementTable = G4Element::GetElementTable();
for( G4int i=0; i<numberOfElements; ++i )
(*theCrossSections)(i) =
G4NeutronHPData::
for( size_t i=0; i<numberOfElements; ++i )
{
G4PhysicsVector* physVec = G4NeutronHPData::
Instance()->MakePhysicsVector((*theElementTable)[i], this);
theCrossSections->push_back(physVec);
}
}
void G4NeutronHPElasticData::DumpPhysicsTable(const G4ParticleDefinition& aP)
@@ -30,16 +30,18 @@ void G4NeutronHPFissionData::BuildPhysicsTable(const G4ParticleDefinition& aP)
{
if(&aP!=G4Neutron::Neutron())
G4Exception("Attempt to use NeutronHP data for particles other than neutrons!!!");
G4int numberOfElements = G4Element::GetNumberOfElements();
size_t numberOfElements = G4Element::GetNumberOfElements();
theCrossSections = new G4PhysicsTable( numberOfElements );
// make a PhysicsVector for each element
static const G4ElementTable *theElementTable = G4Element::GetElementTable();
for( G4int i=0; i<numberOfElements; ++i )
(*theCrossSections)(i) =
G4NeutronHPData::
for( size_t i=0; i<numberOfElements; ++i )
{
G4PhysicsVector* physVec = G4NeutronHPData::
Instance()->MakePhysicsVector((*theElementTable)[i], this);
theCrossSections->push_back(physVec);
}
}
void G4NeutronHPFissionData::DumpPhysicsTable(const G4ParticleDefinition& aP)
@@ -51,12 +53,14 @@ void G4NeutronHPFissionData::DumpPhysicsTable(const G4ParticleDefinition& aP)
G4double G4NeutronHPFissionData::GetCrossSection(const G4DynamicParticle* aP, const G4Element*anE)
{
G4double result;
G4double result = 0;
G4bool outOfRange;
G4int index = anE->GetIndex();
if(anE->GetZ()<90) return 0;
if(anE->GetZ()<90) return result;
result = (*((*theCrossSections)(index))).GetValue(
aP->GetKineticEnergy(), outOfRange);
// cout << "Element "<<anE->GetZ()<<endl;
// cout << "FissionHPCrossSection = "<<result<<endl;
return result;
}
@@ -8,7 +8,7 @@
// and all its terms.
//
// $Id: G4NeutronHPInelastic.cc,v 1.7 2000/11/09 16:14:22 hpw Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#include "G4NeutronHPInelastic.hh"
@@ -29,16 +29,18 @@ void G4NeutronHPInelasticData::BuildPhysicsTable(const G4ParticleDefinition& aP)
{
if(&aP!=G4Neutron::Neutron())
G4Exception("Attempt to use NeutronHP data for particles other than neutrons!!!");
G4int numberOfElements = G4Element::GetNumberOfElements();
size_t numberOfElements = G4Element::GetNumberOfElements();
theCrossSections = new G4PhysicsTable( numberOfElements );
// make a PhysicsVector for each element
static const G4ElementTable *theElementTable = G4Element::GetElementTable();
for( G4int i=0; i<numberOfElements; ++i )
(*theCrossSections)(i) =
G4NeutronHPData::
for( size_t i=0; i<numberOfElements; ++i )
{
G4PhysicsVector* physVec = G4NeutronHPData::
Instance()->MakePhysicsVector((*theElementTable)[i], this);
theCrossSections->push_back(physVec);
}
}
void G4NeutronHPInelasticData::DumpPhysicsTable(const G4ParticleDefinition& aP)
@@ -8,7 +8,7 @@
// and all its terms.
//
// $Id: G4NeutronHPNBodyPhaseSpace.cc,v 1.2 1999/07/02 10:01:14 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#include "G4NeutronHPNBodyPhaseSpace.hh"
#include "G4Gamma.hh"