Import Geant4 8.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:55:03 +02:00
parent 216a75eeb1
commit fe73f43734
6714 changed files with 118229 additions and 68144 deletions
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4ParticleChangeForTransport.cc,v 1.18 2006/06/29 21:15:11 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// $Id: G4ParticleChangeForTransport.cc,v 1.19 2006/11/03 17:45:04 japost Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
//
// --------------------------------------------------------------
@@ -198,7 +198,7 @@ G4Step* G4ParticleChangeForTransport::UpdateStepForPostStep(G4Step* pStep)
{
// A physics process always calculates the final state of the particle
// Change volume if any kinetic energy remanes
// Change volume only if some kinetic energy remains
G4StepPoint* pPostStepPoint = pStep->GetPostStepPoint();
if(pPostStepPoint->GetKineticEnergy() > 0.0) {
@@ -210,6 +210,11 @@ G4Step* G4ParticleChangeForTransport::UpdateStepForPostStep(G4Step* pStep)
pPostStepPoint->SetMaterialCutsCouple( theMaterialCutsCoupleChange );
pPostStepPoint->SetSensitiveDetector( theSensitiveDetectorChange );
}
if( this->GetLastStepInVolume() ){
pStep->SetLastStepFlag();
}else{
pStep->ClearLastStepFlag();
}
// It used to call base class's method
// - but this would copy uninitialised data members
// return G4ParticleChange::UpdateStepForPostStep(pStep);