#include <G4MultiRunAction.hh>
Definition at line 63 of file G4MultiRunAction.hh.
◆ G4MultiRunAction()
G4MultiRunAction::G4MultiRunAction |
( |
| ) |
|
|
default |
◆ ~G4MultiRunAction()
virtual G4MultiRunAction::~G4MultiRunAction |
( |
| ) |
|
|
virtualdefault |
◆ BeginOfRunAction()
void G4MultiRunAction::BeginOfRunAction |
( |
const G4Run * |
aRun | ) |
|
|
overridevirtual |
Reimplemented from G4UserRunAction.
Definition at line 61 of file G4MultiRunAction.cc.
62{
63 std::for_each(begin(), end(),
65}
std::unique_ptr< G4UserRunAction > G4UserRunActionUPtr
◆ EndOfRunAction()
void G4MultiRunAction::EndOfRunAction |
( |
const G4Run * |
aRun | ) |
|
|
overridevirtual |
◆ GenerateRun()
G4Run * G4MultiRunAction::GenerateRun |
( |
| ) |
|
|
overridevirtual |
Reimplemented from G4UserRunAction.
Definition at line 42 of file G4MultiRunAction.cc.
43{
44 G4Run* aRun =
nullptr;
45 for(auto& ru : *this)
46 {
47 auto anotherRun = ru->GenerateRun();
48 if(aRun != nullptr && anotherRun != nullptr)
49 {
51 "More than one registered UserRunAction return an instance"
52 " of G4Run, not allowed.");
53 return nullptr;
54 }
55 if(anotherRun != nullptr)
56 aRun = anotherRun;
57 }
58 return aRun;
59}
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: