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

Method CloseNtupleFile

source/analysis/root/src/G4RootFileManager.cc:237–250  ·  view source on GitHub ↗

_____________________________________________________________________________

Source from the content-addressed store, hash-verified

235
236//_____________________________________________________________________________
237G4bool G4RootFileManager::CloseNtupleFile(
238 RootNtupleDescription* ntupleDescription, G4int mainNumber)
239{
240 // auto result = true;
241
242 // Notify not empty file
243 auto ntupleFileName = GetNtupleFileName(ntupleDescription, true, mainNumber);
244 auto result = SetIsEmpty(ntupleFileName, ! ntupleDescription->GetHasFill());
245
246 // Ntuple files will be closed with CloseFiles() calls
247 ntupleDescription->GetFile().reset();
248
249 return result;
250}

Callers 1

CloseNtupleFilesMethod · 0.45

Calls 4

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

Tested by

no test coverage detected