Import Geant4 8.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:36:02 +02:00
parent d93e1e39a9
commit 8a51e0bc40
5471 changed files with 99628 additions and 55248 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ParticleChangeForGamma.hh,v 1.3 2005/05/30 18:23:35 vnivanch Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4ParticleChangeForGamma.hh,v 1.4 2005/12/05 17:19:02 maire Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -30,10 +30,11 @@
//
//
// ------------------------------------------------------------
// 15 April 2005 V.Ivanchenko for gamma EM processes
// 15 April 2005 V.Ivanchenko for gamma EM processes
//
// Modified:
// 30.05.05 V.Ivanchenko add UpdateStepForAtRest
// Modified:
// 30.05.05 : add UpdateStepForAtRest (V.Ivanchenko)
// 04.12.05 : apply UpdateStepForPostStep in any case (mma)
//
// ------------------------------------------------------------
//
@@ -188,16 +189,16 @@ inline G4Step* G4ParticleChangeForGamma::UpdateStepForAtRest(G4Step* pStep)
inline G4Step* G4ParticleChangeForGamma::UpdateStepForPostStep(G4Step* pStep)
{
if(theStatusChange == fAlive) {
G4StepPoint* pPostStepPoint = pStep->GetPostStepPoint();
pPostStepPoint->SetKineticEnergy( proposedKinEnergy );
pPostStepPoint->SetMomentumDirection( proposedMomentumDirection );
pPostStepPoint->AddPolarization( proposedPolarization );
}
G4StepPoint* pPostStepPoint = pStep->GetPostStepPoint();
pPostStepPoint->SetKineticEnergy( proposedKinEnergy );
pPostStepPoint->SetMomentumDirection( proposedMomentumDirection );
pPostStepPoint->AddPolarization( proposedPolarization );
// update weight
// this feature is commented out, it should be overwritten in case
// if energy loss processes will use biasing
// pPostStepPoint->SetWeight( theProposedWeight );
pStep->AddTotalEnergyDeposit( theLocalEnergyDeposit );
return pStep;
}