Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -84,8 +84,13 @@ G4double G4EmSaturation::VisibleEnergyDeposition(
G4double edep,
G4double niel) const
{
// no energy deposition
if(edep <= 0.0) { return 0.0; }
// zero step length may happens only if step limiter process
// is applied, in that case saturation should not be applied
if(length <= 0.0) { return edep; }
G4double evis = edep;
G4double bfactor = couple->GetMaterial()->GetIonisation()->GetBirksConstant();
@@ -105,7 +110,7 @@ G4double G4EmSaturation::VisibleEnergyDeposition(
G4double eloss = edep - nloss;
// neutrons and neutral hadrons
if(0.0 == p->GetPDGCharge() || eloss < 0.0 || length <= 0.0) {
if(0.0 == p->GetPDGCharge() || eloss < 0.0) {
nloss = edep;
eloss = 0.0;
} else {