43 G4Run* aRun =
nullptr;
44 for (
auto& ru : *
this ) {
45 auto anotherRun = ru->GenerateRun();
46 if ( aRun !=
nullptr && anotherRun !=
nullptr ) {
48 "More than one registered UserRunAction return an instance"\
49 " of G4Run, not allowed.");
52 if( anotherRun !=
nullptr) aRun = anotherRun;
58 std::for_each( begin() , end() ,
64 std::for_each( begin() , end() ,
71 std::for_each( begin() , end() ,