Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
+13 -3
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4SteppingManager.cc,v 1.23 2001/12/04 17:15:50 radoone Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4SteppingManager.cc,v 1.28 2002/02/07 04:00:22 tsasaki Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
//
//---------------------------------------------------------------
@@ -259,9 +259,10 @@ void G4SteppingManager::SetInitialStep(G4Track* valueTrack)
// If the primary track has 'zero' kinetic energy, set the track
// state to 'StopButAlive'.
if(fTrack->GetKineticEnergy() <= 0.0){
fTrack->SetTrackStatus( fStopButAlive );
fTrack->SetTrackStatus( fStopButAlive );
}
// Set Touchable to track and a private attribute of G4SteppingManager
@@ -296,6 +297,15 @@ void G4SteppingManager::SetInitialStep(G4Track* valueTrack)
// If track is already outside the world boundary, kill it
if( fCurrentVolume==0 ){
// If the track is a primary, stop processing
if(fTrack->GetParentID()==0)
{
G4cerr << "Primary particle starting at "
<< fTrack->GetPosition()
<< " is outside of the world volume." << G4endl;
G4Exception("G4SteppingManager::Primary vertex outside of the world");
}
fTrack->SetTrackStatus( fStopAndKill );
G4cerr << "G4SteppingManager::SetInitialStep(): warning: "
<< "initial track position is outside world! "