Import Geant4 6.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:56:29 +02:00
parent 1d812b78b1
commit e083ffb441
1415 changed files with 111223 additions and 21207 deletions
@@ -260,8 +260,16 @@ G4LElastic::ApplyYourself(const G4HadProjectile& aTrack, G4Nucleus& targetNucleu
}
else
{
theParticleChange.SetMomentumChange(pxnew, pynew, pznew);
theParticleChange.SetEnergyChange(sqrt(m1*m1+it0.mag2())-m1);
try
{
theParticleChange.SetMomentumChange(pxnew, pynew, pznew);
theParticleChange.SetEnergyChange(sqrt(m1*m1+it0.mag2())-m1);
}
catch(G4HadronicException)
{
std::cerr << "GHADException originating from components of G4LElastic"<<std::cout;
throw;
}
G4ParticleDefinition * theDef = G4ParticleTable::GetParticleTable()->FindIon(Z,A,0,Z);
G4ThreeVector it(pxre*GeV, pyre*GeV, pzre*GeV);
G4DynamicParticle * aSec =