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