39 fMpiSlaveNtupleManager(nullptr)
52 tools::impi* impi,
G4int mpiRank,
G4int mpiSize)
61 case G4MpiNtupleMergeMode::kNone:
68 case G4MpiNtupleMergeMode::kMain: {
77 case G4MpiNtupleMergeMode::kSlave: {
78 auto destinationRank = mpiSize;
100 ->
Message(
"set",
"mpi ntuple merging mode",
"");
103 auto canMerge =
true;
109 <<
" " <<
"Merging ntuples is not applicable on a single rank."
111 <<
" " <<
"Setting was ignored.";
112 G4Exception(
"G4RootMpiAnalysisManager::SetMpiNtupleMergingMode()",
120 mergingMode =
"G4MpiNtupleMergeMode::kNone";
129 if ( mpiRank >= mpiSize ) {
132 mergingMode =
"G4MpiNtupleMergeMode::kMain";
136 mergingMode =
"G4MpiNtupleMergeMode::kSlave";
143 ->
Message(
"set",
"ntuple merging mode", mergingMode);
151 G4int nofNtupleFiles)
183 auto finalResult =
true;
185 finalResult = finalResult && result;
197 finalResult = finalResult && result;
201 G4cout <<
"Main: Go to create ntuples from booking " <<
G4endl;
218 finalResult = finalResult && result;
222 G4cout <<
"Slave: Go to create ntuples from booking" <<
G4endl;
244 auto finalResult =
true;
248 auto result =
Reset();
251 description <<
" " <<
"Resetting data failed";
255 finalResult = finalResult && result;
273 auto finalResult =
true;
286 finalResult = result && finalResult;
291 finalResult = result && finalResult;
312 auto finalResult =
true;
315 finalResult = finalResult && result;
319 finalResult = result && finalResult;
324 finalResult = result && finalResult;