ATLAS Offline Software
Loading...
Searching...
No Matches
SyncRunAction.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "SyncRunAction.h"
6
7#include "G4Run.hh"
8#include "G4RunManager.hh"
9#include "G4SystemOfUnits.hh"
10
11namespace G4UA
12{
13
15 : G4UserRunAction(), m_g4RunTool(g4RunTool)
16{
17}
18
19void SyncRunAction::BeginOfRunAction(const G4Run* /*run*/)
20{
21 if(isMaster) {
22 G4cout << "Notify Athena that Geant4 run has started"<< G4endl;
23 m_g4RunTool->NotifyBeginRun();
24 }
25}
26
27void SyncRunAction::EndOfRunAction(const G4Run* /*run*/)
28{
29}
30
31} // namespace G4UA
virtual void BeginOfRunAction(const G4Run *) override
SyncRunAction(IG4RunTool *)
virtual void EndOfRunAction(const G4Run *) override
IG4RunTool * m_g4RunTool
Provides an interface to interact with the Geant4 run.
Definition IG4RunTool.h:22