74 fNtupleManager(nullptr),
81 <<
"G4XmlAnalysisManager already exists."
82 <<
"Cannot create another instance.";
83 G4Exception(
"G4XmlAnalysisManager::G4XmlAnalysisManager",
117 if ( ! h1Vector.size() )
return true;
122 auto directoryName =
fFileManager->GetHistoDirectoryName();
123 result =
WriteT(h1Vector, hnVector, directoryName,
"h1");
142 if ( ! h2Vector.size() )
return true;
147 auto directoryName =
fFileManager->GetHistoDirectoryName();
148 result =
WriteT(h2Vector, hnVector, directoryName,
"h2");
167 if ( ! h3Vector.size() )
return true;
172 auto directoryName =
fFileManager->GetHistoDirectoryName();
173 result =
WriteT(h3Vector, hnVector, directoryName,
"h3");
192 if ( ! p1Vector.size() )
return true;
197 auto directoryName =
fFileManager->GetHistoDirectoryName();
198 result =
WriteT(p1Vector, hnVector, directoryName,
"p1");
217 if ( ! p2Vector.size() )
return true;
222 auto directoryName =
fFileManager->GetHistoDirectoryName();
223 result =
WriteT(p2Vector, hnVector, directoryName,
"p2");
241 for (
auto ntuple : ntupleVector ) {
242 if (
ntuple->fNtuple )
ntuple->fNtuple->write_trailer();
254 for (
auto ntupleDescription : ntupleDescriptionVector) {
267 auto finalResult =
true;
270 finalResult = finalResult && result;
273 finalResult = finalResult && result;
285 auto finalResult =
true;
287 finalResult = finalResult && result;
298 finalResult = finalResult && result;
303 finalResult = finalResult && result;
321 auto finalResult =
true;
339 <<
" " <<
"No master G4XmlAnalysisManager instance exists."
341 <<
" " <<
"Histogram data will not be merged.";
347 if ( ! result )
return false;
352 finalResult = finalResult && result;
356 finalResult = finalResult && result;
360 finalResult = finalResult && result;
364 finalResult = finalResult && result;
368 finalResult = finalResult && result;
373 finalResult = finalResult && result;
388 auto finalResult =
true;
397 finalResult = finalResult && result;
401 finalResult = finalResult && result;
405 finalResult = finalResult && result;
416 description <<
" " <<
"Resetting data failed";
420 finalResult = finalResult && result;
427 result = ! std::remove(
fFileManager->GetFullFileName());
431 description <<
" " <<
"Removing file "
436 finalResult = finalResult && result;
447 ->
Message(
"close",
"files",
"");