#include <G4MultiRunAction.hh>
Definition at line 56 of file G4MultiRunAction.hh.
◆ G4MultiRunAction()
G4MultiRunAction::G4MultiRunAction |
( |
| ) |
|
|
default |
◆ ~G4MultiRunAction()
G4MultiRunAction::~G4MultiRunAction |
( |
| ) |
|
|
overridedefault |
◆ BeginOfRunAction()
void G4MultiRunAction::BeginOfRunAction |
( |
const G4Run * | aRun | ) |
|
|
overridevirtual |
◆ EndOfRunAction()
void G4MultiRunAction::EndOfRunAction |
( |
const G4Run * | aRun | ) |
|
|
overridevirtual |
◆ GenerateRun()
G4Run * G4MultiRunAction::GenerateRun |
( |
| ) |
|
|
overridevirtual |
Reimplemented from G4UserRunAction.
Definition at line 38 of file G4MultiRunAction.cc.
39{
40 G4Run* aRun =
nullptr;
41 for (auto& ru : *this) {
42 auto anotherRun = ru->GenerateRun();
43 if (aRun != nullptr && anotherRun != nullptr) {
45 "More than one registered UserRunAction return an instance"
46 " of G4Run, not allowed.");
47 return nullptr;
48 }
49 if (anotherRun != nullptr) aRun = anotherRun;
50 }
51 return aRun;
52}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
◆ SetMaster()
void G4MultiRunAction::SetMaster |
( |
G4bool | val = true | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: