MCPcopy Create free account
hub / github.com/Geant4/geant4 / AbortRun

Method AbortRun

source/run/src/G4RunManager.cc:706–720  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

704
705// --------------------------------------------------------------------
706void G4RunManager::AbortRun(G4bool softAbort)
707{
708 // This method is valid only for GeomClosed or EventProc state
709 G4ApplicationState currentState = G4StateManager::GetStateManager()->GetCurrentState();
710 if (currentState == G4State_GeomClosed || currentState == G4State_EventProc) {
711 runAborted = true;
712 if (currentState == G4State_EventProc && !softAbort) {
713 currentEvent->SetEventAborted();
714 eventManager->AbortCurrentEvent();
715 }
716 }
717 else {
718 G4cerr << "Run is not in progress. AbortRun() ignored." << G4endl;
719 }
720}
721
722// --------------------------------------------------------------------
723void G4RunManager::AbortEvent()

Callers 8

BroadcastAbortRunMethod · 0.45
NotifyMethod · 0.45
SetNewValueMethod · 0.45
EndOfEventMethod · 0.45
TryForcedTerminateMethod · 0.45
GeneratePrimaryVertexMethod · 0.45
GeneratePrimaryVertexMethod · 0.45
GeneratePrimariesMethod · 0.45

Calls 2

SetEventAbortedMethod · 0.80
AbortCurrentEventMethod · 0.80

Tested by

no test coverage detected