ATLAS Offline Software
Loading...
Searching...
No Matches
G4UA::SyncEventAction Class Reference

#include <SyncEventAction.h>

Inheritance diagram for G4UA::SyncEventAction:
Collaboration diagram for G4UA::SyncEventAction:

Public Member Functions

virtual void BeginOfEventAction (const G4Event *) override

Detailed Description

Definition at line 13 of file SyncEventAction.h.

Member Function Documentation

◆ BeginOfEventAction()

void G4UA::SyncEventAction::BeginOfEventAction ( const G4Event * event)
overridevirtual

Definition at line 15 of file SyncEventAction.cxx.

16{
17 const auto* eventInfo = dynamic_cast<const AtlasG4SyncEventUserInfo*>(
18 event->GetUserInformation());
19 if(!eventInfo) {
20 // A closed event queue supplies no sync event user info.
21 G4RunManager::GetRunManager()->AbortRun();
22 }
23 else if(eventInfo->EventPreparationFailed()) {
24 // Event preparation failed. Abort only this event so that the worker can
25 // continue processing subsequent Athena events.
26 G4RunManager::GetRunManager()->AbortEvent();
27 }
28}

The documentation for this class was generated from the following files: