MCPcopy Create free account
hub / github.com/Geant4/geant4 / CloseNtupleFile

Method CloseNtupleFile

source/analysis/hdf5/src/G4Hdf5FileManager.cc:237–249  ·  view source on GitHub ↗

_____________________________________________________________________________

Source from the content-addressed store, hash-verified

235
236//_____________________________________________________________________________
237G4bool G4Hdf5FileManager::CloseNtupleFile(
238 Hdf5NtupleDescription* ntupleDescription)
239{
240 // Notify not empty file
241 auto ntupleFileName = GetNtupleFileName(ntupleDescription);
242 auto result = SetIsEmpty(ntupleFileName, ! ntupleDescription->GetHasFill());
243
244 // Ntuple files are registered in file manager map.
245 // they will be closed with CloseFiles() calls
246 ntupleDescription->GetFile().reset();
247
248 return result;
249}
250
251//_____________________________________________________________________________
252hid_t G4Hdf5FileManager::GetHistoDirectory() const

Callers 1

ActionAtCloseFileMethod · 0.45

Calls 4

GetNtupleFileNameFunction · 0.85
GetHasFillMethod · 0.80
resetMethod · 0.45
GetFileMethod · 0.45

Tested by

no test coverage detected