Import Geant4 9.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:15:05 +02:00
parent b79225fb37
commit 74cad5e589
3877 changed files with 234205 additions and 167127 deletions
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4InclAblaCascadeInterface.cc,v 1.10 2007/12/10 16:31:55 gunter Exp $
// $Id: G4InclAblaCascadeInterface.cc,v 1.13 2009/12/04 13:16:57 kaitanie Exp $
// Translation of INCL4.2/ABLA V3
// Pekka Kaitaniemi, HIP (translation)
// Christelle Schmidt, IPNL (fission code)
@@ -37,7 +37,8 @@
#include "G4GenericIon.hh"
#include "CLHEP/Random/Random.h"
G4InclAblaCascadeInterface::G4InclAblaCascadeInterface()
G4InclAblaCascadeInterface::G4InclAblaCascadeInterface(const G4String& nam)
:G4VIntraNuclearTransportModel(nam)
{
hazard = new G4Hazard();
const G4long* table_entry = CLHEP::HepRandom::getTheSeeds(); // Get random seed from CLHEP.
@@ -227,24 +228,24 @@ G4HadFinalState* G4InclAblaCascadeInterface::ApplyYourself(const G4HadProjectile
if(bulletType == proton) {
aParticleDefinition = G4Proton::ProtonDefinition();
}
if(bulletType == neutron) {
} else if(bulletType == neutron) {
aParticleDefinition = G4Neutron::NeutronDefinition();
}
if(bulletType == pionPlus) {
} else if(bulletType == pionPlus) {
aParticleDefinition = G4PionPlus::PionPlusDefinition();
}
if(bulletType == pionZero) {
} else if(bulletType == pionZero) {
aParticleDefinition = G4PionZero::PionZeroDefinition();
}
if(bulletType == pionMinus) {
} else if(bulletType == pionMinus) {
aParticleDefinition = G4PionMinus::PionMinusDefinition();
} else { // Projectile was not regognized
aParticleDefinition = 0;
}
cascadeParticle = new G4DynamicParticle();
cascadeParticle->SetDefinition(aParticleDefinition);
cascadeParticle->Set4Momentum(aTrack.Get4Momentum());
theResult.AddSecondary(cascadeParticle);
if(aParticleDefinition != 0) {
cascadeParticle = new G4DynamicParticle();
cascadeParticle->SetDefinition(aParticleDefinition);
cascadeParticle->Set4Momentum(aTrack.Get4Momentum());
theResult.AddSecondary(cascadeParticle);
}
}
// Convert INCL4 output to Geant4 compatible data structures.