44 G4Run* aRun =
nullptr;
47 auto anotherRun = ru->GenerateRun();
48 if(aRun !=
nullptr && anotherRun !=
nullptr)
51 "More than one registered UserRunAction return an instance"
52 " of G4Run, not allowed.");
55 if(anotherRun !=
nullptr)
63 std::for_each(begin(), end(),
69 std::for_each(begin(), end(),
76 std::for_each(begin(), end(),
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::unique_ptr< G4UserRunAction > G4UserRunActionUPtr
virtual G4Run * GenerateRun() override
virtual void BeginOfRunAction(const G4Run *aRun) override
virtual void SetMaster(G4bool val=true) override
virtual void EndOfRunAction(const G4Run *aRun) override
virtual void SetMaster(G4bool val=true)