Import Geant4 9.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:46:55 +02:00
parent 89a9605df1
commit b1eb5424d2
10957 changed files with 888481 additions and 160139 deletions
@@ -95,17 +95,20 @@ G4HadFinalState* G4QMDReaction::ApplyYourself( const G4HadProjectile & projectil
proj_Z = (int)( proj_pd->GetPDGCharge()/eplus );
proj_A = 1;
}
G4int targ_Z = int ( target.GetZ() + 0.5 );
G4int targ_A = int ( target.GetN() + 0.5 );
//G4int targ_Z = int ( target.GetZ() + 0.5 );
//G4int targ_A = int ( target.GetN() + 0.5 );
//migrate to integer A and Z (GetN_asInt returns number of neutrons in the nucleus since this)
G4int targ_Z = target.GetZ_asInt();
G4int targ_A = target.GetA_asInt();
G4ParticleDefinition* targ_pd = G4ParticleTable::GetParticleTable()->GetIon( targ_Z , targ_A , 0.0 );
G4NistManager* nistMan = G4NistManager::Instance();
//G4NistManager* nistMan = G4NistManager::Instance();
// G4Element* G4NistManager::FindOrBuildElement( targ_Z );
const G4DynamicParticle* proj_dp = new G4DynamicParticle ( proj_pd , projectile.Get4Momentum() );
const G4Element* targ_ele = nistMan->FindOrBuildElement( targ_Z );
G4double aTemp = projectile.GetMaterial()->GetTemperature();
const G4DynamicParticle* proj_dp = new G4DynamicParticle ( proj_pd , projectile.Get4Momentum() );
//const G4Element* targ_ele = nistMan->FindOrBuildElement( targ_Z );
//G4double aTemp = projectile.GetMaterial()->GetTemperature();
//090331
@@ -113,9 +116,11 @@ G4HadFinalState* G4QMDReaction::ApplyYourself( const G4HadProjectile & projectil
if ( proj_pd->GetParticleType() == "meson" ) theXS = piNucXS;
G4double xs_0 = theXS->GetCrossSection ( proj_dp , targ_ele , aTemp );
//G4double xs_0 = genspaXS->GetCrossSection ( proj_dp , targ_ele , aTemp );
//G4double xs_0 = theXS->GetCrossSection ( proj_dp , targ_ele , aTemp );
//110822
G4double xs_0 = theXS->GetIsoCrossSection ( proj_dp , targ_Z , targ_A );
//G4double xs_0 = genspaXS->GetCrossSection ( proj_dp , targ_ele , aTemp );
G4double bmax_0 = std::sqrt( xs_0 / pi );
//std::cout << "bmax_0 in fm (fermi) " << bmax_0/fermi << std::endl;
@@ -193,8 +198,11 @@ G4HadFinalState* G4QMDReaction::ApplyYourself( const G4HadProjectile & projectil
}
// Target
G4int iz = int ( target.GetZ() );
G4int ia = int ( target.GetN() );
//G4int iz = int ( target.GetZ() );
//G4int ia = int ( target.GetN() );
//migrate to integer A and Z (GetN_asInt returns number of neutrons in the nucleus since this)
G4int iz = int ( target.GetZ_asInt() );
G4int ia = int ( target.GetA_asInt() );
G4QMDGroundStateNucleus* targ = new G4QMDGroundStateNucleus( iz , ia );