Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4StateManager.cc,v 1.3.2.2 2001/06/28 20:18:54 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4StateManager.cc,v 1.5 2001/07/18 17:59:23 asaim Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -40,7 +40,8 @@ G4StateManager* G4StateManager::theStateManager = 0;
G4StateManager::G4StateManager()
: theCurrentState(PreInit),
thePreviousState(PreInit),
theBottomDependent(0)
theBottomDependent(0),
suppressAbortion(0)
{
}
@@ -159,6 +160,10 @@ G4StateManager::GetPreviousState() const
G4bool
G4StateManager::SetNewState(G4ApplicationState requestedState)
{
if(requestedState==Abort && suppressAbortion>0) {
if(suppressAbortion==2) return false;
if(theCurrentState==EventProc) return false;
}
size_t i=0;
G4bool ack = true;
G4ApplicationState savedState = thePreviousState;