Import Geant4 10.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 12:08:39 +02:00
parent 286caacf06
commit c9b32a6c0a
5770 changed files with 1050949 additions and 367105 deletions
@@ -86,6 +86,7 @@ G4double G4InteractionLawPhysical::SampleInteractionLength()
G4double G4InteractionLawPhysical::UpdateInteractionLengthForStep(G4double truePathLength)
{
fNumberOfInteractionLength -= truePathLength*fCrossSection;
if ( fNumberOfInteractionLength < 0 )
{
G4ExceptionDescription ed;
@@ -96,5 +97,5 @@ G4double G4InteractionLawPhysical::UpdateInteractionLengthForStep(G4double
ed);
fNumberOfInteractionLength = 0.;
}
return fNumberOfInteractionLength;
return fNumberOfInteractionLength/fCrossSection;
}