Commit 008745bb authored by Håkan Wennlöf's avatar Håkan Wennlöf Committed by Simon Spannagel
Browse files

Changed AbortEvent() to AbortRun().

They do the same in this case, but AbortRun() is a bit more flexible. We have also used it before in the framework, and have our own version implemented int he runmanagers.
parent 3d6c0bda
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ void StepInfoUserHookG4::UserSteppingAction(const G4Step* aStep) {
    if(aStep->GetStepLength() < 0) {
        LOG(WARNING) << "Negative step length found; aborting event.";

        // Load the G4 run manager (which is owned by the geometry builder), and call AbortEvent()
        G4RunManager::GetRunManager()->AbortEvent();
        // Load the G4 run manager (which is owned by the geometry builder), and call AbortRun() to abort the current event
        G4RunManager::GetRunManager()->AbortRun();
    }
}