Import Geant4 10.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 14:11:04 +02:00
parent c9b32a6c0a
commit d4af681f38
4886 changed files with 420149 additions and 1023309 deletions
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4mplIonisationModel.cc 85013 2014-10-23 09:45:07Z gcosmo $
// $Id: G4mplIonisationModel.cc 91869 2015-08-07 15:21:02Z gcosmo $
//
// -------------------------------------------------------------------
//
@@ -246,10 +246,12 @@ G4double G4mplIonisationModel::SampleFluctuations(
do {
loss = twomeanLoss*G4UniformRand();
x = (loss - meanLoss)/siga;
// Loop checking, 07-Aug-2015, Vladimir Ivanchenko
} while (1.0 - 0.5*x*x < G4UniformRand());
} else {
do {
loss = G4RandGauss::shoot(meanLoss,siga);
// Loop checking, 07-Aug-2015, Vladimir Ivanchenko
} while (0.0 > loss || loss > twomeanLoss);
}
return loss;