80 fPlotManager = std::make_unique<G4PlotManager>(
fState);
95G4bool G4ToolsAnalysisManager::WriteHns()
113G4bool G4ToolsAnalysisManager::ResetHns()
129G4bool G4ToolsAnalysisManager::MergeHns()
136 Warn(
"No master G4AnalysisManager instance exists.\n"
137 "Histogram/profile data will not be merged.",
189 result &= MergeHns();
196 result &= WriteHns();
234 Warn(
"Closing files failed",
fkClass,
"CloseFileImpl");
241 Warn(
"Deleting empty files failed",
fkClass,
"CloseFileImpl");
248 Warn(
"Resetting data failed",
fkClass,
"CloseFileImpl");
266 result &= ResetHns();
302 &= fPlotManager->PlotAndWrite<tools::histo::h1d>(
fH1Manager->GetTHnVectorRef());
306 &= fPlotManager->PlotAndWrite<tools::histo::h2d>(
fH2Manager->GetTHnVectorRef());
313 &= fPlotManager->PlotAndWrite<tools::histo::p1d>(
fP1Manager->GetTHnVectorRef());
319 result &= fPlotManager->CloseFile();
330 if (hmpi ==
nullptr)
return false;
338 result &= mpiToolsManager.
Merge<tools::histo::h1d>(
fH1Manager->GetTHnVectorRef());
341 result &= mpiToolsManager.
Merge<tools::histo::h2d>(
fH2Manager->GetTHnVectorRef());
344 result &= mpiToolsManager.
Merge<tools::histo::h3d>(
fH3Manager->GetTHnVectorRef());
347 result &= mpiToolsManager.
Merge<tools::histo::p1d>(
fP1Manager->GetTHnVectorRef());
350 result &= mpiToolsManager.
Merge<tools::histo::p2d>(
fP2Manager->GetTHnVectorRef());
#define G4MUTEX_INITIALIZER
const std::vector< std::pair< HT *, G4HnInformation * > > & GetTHnVectorRef() const
void SetP1Manager(G4VTBaseHnManager< kDim2 > *p1Manager)
void SetP2Manager(G4VTBaseHnManager< kDim3 > *p2Manager)
G4VAnalysisManager()=delete
std::shared_ptr< G4VNtupleFileManager > fVNtupleFileManager
void SetH1Manager(G4VTBaseHnManager< kDim1 > *h1Manager)
void SetH3Manager(G4VTBaseHnManager< kDim3 > *h3Manager)
void Message(G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
G4AnalysisManagerState fState
G4bool WriteAscii(const G4String &fileName)
void SetNtupleManager(std::shared_ptr< G4VNtupleManager > ntupleManager)
std::shared_ptr< G4VFileManager > fVFileManager
void SetH2Manager(G4VTBaseHnManager< kDim2 > *h2Manager)
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)