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
@@ -165,9 +165,9 @@ G4DeltaAngle::SampleDirection(const G4DynamicParticle* dp,
G4double x2 = totEnergy*(eTotEnergy - e) - e*eTotEnergy
- totMomentum*eTotMomentum*costet + electron_mass_c2*electron_mass_c2;
G4double y = -x2/x0;
if(std::fabs(y) <= 1.0) {
if(std::abs(y) <= 1.0) {
cost = -(x2 + x1*sqrt(1. - y*y))/x0;
if(std::fabs(cost) <= 1.0) { isOK = true; }
if(std::abs(cost) <= 1.0) { isOK = true; }
else { cost = 1.0; }
}