Import Geant4 9.5.0 source tree
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4EventManager.cc,v 1.32 2010/11/08 21:31:35 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: G4EventManager.cc,v 1.32 2010-11-08 21:31:35 asaim Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
//
|
||||
@@ -54,7 +54,8 @@ G4EventManager::G4EventManager()
|
||||
{
|
||||
if(fpEventManager)
|
||||
{
|
||||
G4Exception("G4EventManager::G4EventManager() has already been made.");
|
||||
G4Exception("G4EventManager::G4EventManager","Event0001",FatalException,
|
||||
"G4EventManager::G4EventManager() has already been made.");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -97,14 +98,14 @@ G4int G4EventManager::operator!=(const G4EventManager &right) const { }
|
||||
|
||||
void G4EventManager::DoProcessing(G4Event* anEvent)
|
||||
{
|
||||
abortRequested = false;
|
||||
G4StateManager* stateManager = G4StateManager::GetStateManager();
|
||||
G4ApplicationState currentState = stateManager->GetCurrentState();
|
||||
if(currentState!=G4State_GeomClosed)
|
||||
{
|
||||
G4Exception("G4EventManager::ProcessOneEvent",
|
||||
"IllegalApplicationState",
|
||||
JustWarning,
|
||||
"Geometry is not closed : cannot process an event.");
|
||||
"Event0002", JustWarning,
|
||||
"IllegalApplicationState -- Geometry is not closed : cannot process an event.");
|
||||
return;
|
||||
}
|
||||
currentEvent = anEvent;
|
||||
@@ -365,8 +366,7 @@ void G4EventManager::SetUserInformation(G4VUserEventInformation* anInfo)
|
||||
if(currentState!=G4State_EventProc || currentEvent==0)
|
||||
{
|
||||
G4Exception("G4EventManager::SetUserInformation",
|
||||
"IllegalApplicationState",
|
||||
JustWarning,
|
||||
"Event0003", JustWarning,
|
||||
"G4VUserEventInformation cannot be set because of ansense of G4Event.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user