ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4RunManagement
src
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
11
namespace
G4UA
12
{
13
14
SyncRunAction::SyncRunAction
(
IG4RunTool
* g4RunTool)
15
: G4UserRunAction(),
m_g4RunTool
(g4RunTool)
16
{
17
}
18
19
void
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
27
void
SyncRunAction::EndOfRunAction
(
const
G4Run*
/*run*/
)
28
{
29
}
30
31
}
// namespace G4UA
SyncRunAction.h
G4UA::SyncRunAction::BeginOfRunAction
virtual void BeginOfRunAction(const G4Run *) override
Definition
SyncRunAction.cxx:19
G4UA::SyncRunAction::SyncRunAction
SyncRunAction(IG4RunTool *)
Definition
SyncRunAction.cxx:14
G4UA::SyncRunAction::EndOfRunAction
virtual void EndOfRunAction(const G4Run *) override
Definition
SyncRunAction.cxx:27
G4UA::SyncRunAction::m_g4RunTool
IG4RunTool * m_g4RunTool
Definition
SyncRunAction.h:27
IG4RunTool
Provides an interface to interact with the Geant4 run.
Definition
IG4RunTool.h:22
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
Generated on
for ATLAS Offline Software by
1.17.0