34 #include "tools/hdf5/h2file"
40 using namespace G4Analysis;
74 hid_t newFile = H5Fopen(name, H5F_ACC_RDONLY, H5P_DEFAULT);
77 description <<
" " <<
"Cannot open file " <<
name;
86 std::map<G4String, hid_t>::iterator it
98 ->
Message(
"open",
"read analysis file", name);
113 auto directory = tools_H5Gopen(file, directoryName);
114 if ( directory < 0 ) {
117 <<
"cannot open directory " << directoryName;
139 auto rfile =
GetRFile(fileName, isPerThread);
143 rfile =
GetRFile(fileName, isPerThread);
147 auto newDirName = dirName;
148 if ( newDirName ==
"" ) {
159 newDirName += directoryType;
178 std::map<G4String, hid_t>::const_iterator it
191 return GetRDirectory(
"histograms", fileName, dirName, isPerThread);
198 return GetRDirectory(
"ntuples", fileName, dirName, isPerThread);
const G4AnalysisVerbose * GetVerboseL2() const
hid_t GetRFile(const G4String &fileName, G4bool isPerThread) const
std::ostringstream G4ExceptionDescription
hid_t OpenRFile(const G4String &fileName, G4bool isPerThread)
std::map< G4String, hid_t > fRFiles
hid_t GetRDirectory(const G4String &directoryType, const G4String &fileName, const G4String &dirName, G4bool isPerThread)
hid_t OpenDirectory(hid_t file, const G4String &directoryName)
G4String GetFullFileName(const G4String &baseFileName="", G4bool isPerThread=true) const
static const G4String fgkDefaultDirectoryName
hid_t GetNtupleRDirectory(const G4String &fileName, const G4String &dirName, G4bool isPerThread)
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisManagerState & fState
G4Hdf5RFileManager(const G4AnalysisManagerState &state)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual ~G4Hdf5RFileManager()
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
hid_t GetHistoRDirectory(const G4String &fileName, const G4String &dirName, G4bool isPerThread)
const G4AnalysisVerbose * GetVerboseL1() const