Import Geant4 10.3.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2016-06-30 14:12:05 +02:00
parent a654a7ab1f
commit 4ec577e5c4
2021 changed files with 100995 additions and 78277 deletions
@@ -57,7 +57,7 @@
#include "G4IonTable.hh"
#include <set>
G4ParticleHPContAngularPar::G4ParticleHPContAngularPar( G4ParticleDefinition* projectile)
G4ParticleHPContAngularPar::G4ParticleHPContAngularPar( G4ParticleDefinition* projectile )
{
theAngular = 0;
fCache.Get()->currentMeanEnergy = -2;
@@ -518,12 +518,12 @@ G4ParticleHPContAngularPar::G4ParticleHPContAngularPar( G4ParticleDefinition* pr
G4double incidentMass = theProjectile->GetPDGMass();
G4double productEnergy = fsEnergy;
G4double productMass = result->GetMass();
G4int targetZ = G4int(theTargetCode/1000);
G4int targetA = G4int(theTargetCode-1000*targetZ);
G4int targetZ = G4int(fCache.Get()->theTargetCode/1000);
G4int targetA = G4int(fCache.Get()->theTargetCode-1000*targetZ);
// To correspond to natural composition (-nat-) data files.
if ( targetA == 0 )
targetA = G4int ( theTarget->GetMass()/amu_c2 + 0.5 );
G4double targetMass = theTarget->GetMass();
targetA = G4int ( fCache.Get()->theTarget->GetMass()/amu_c2 + 0.5 );
G4double targetMass = fCache.Get()->theTarget->GetMass();
G4int residualA = targetA+1-A;
G4int residualZ = targetZ-Z;
G4double residualMass = residualZ*G4Proton::Proton()->GetPDGMass();