39 G4Run* aRun =
nullptr;
42 auto anotherRun = ru->GenerateRun();
43 if(aRun !=
nullptr && anotherRun !=
nullptr)
46 "More than one registered UserRunAction return an instance"
47 " of G4Run, not allowed.");
50 if(anotherRun !=
nullptr)
59 std::for_each(begin(), end(),
66 std::for_each(begin(), end(),
74 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)