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

Method CloseNtupleFile

source/analysis/xml/src/G4XmlFileManager.cc:160–172  ·  view source on GitHub ↗

_____________________________________________________________________________

Source from the content-addressed store, hash-verified

158
159//_____________________________________________________________________________
160G4bool G4XmlFileManager::CloseNtupleFile(
161 XmlNtupleDescription* ntupleDescription)
162{
163 // Notify not empty file
164 auto ntupleFileName = GetNtupleFileName(ntupleDescription);
165 auto result = SetIsEmpty(ntupleFileName, ! ntupleDescription->GetHasFill());
166
167 // Ntuple files are registered in file manager map.
168 // they will be closed with CloseFiles() calls
169 ntupleDescription->GetFile().reset();
170
171 return result;
172}

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