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

Method CloseNtupleFiles

source/analysis/root/src/G4RootNtupleFileManager.cc:143–156  ·  view source on GitHub ↗

_____________________________________________________________________________

Source from the content-addressed store, hash-verified

141
142//_____________________________________________________________________________
143G4bool G4RootNtupleFileManager::CloseNtupleFiles()
144{
145 // Take into account main ntuple files if present
146 auto mainNumber = ( fNofNtupleFiles > 0 ) ? 0 : -1;
147
148 auto result = true;
149 auto ntupleVector = fNtupleManager->GetNtupleDescriptionVector();
150 for ( auto ntupleDescription : ntupleVector) {
151 for (G4int i = mainNumber; i < fNofNtupleFiles; ++i ) {
152 result &= fFileManager->CloseNtupleFile(ntupleDescription, i);
153 }
154 }
155 return result;
156}
157
158//
159// public methods

Callers

nothing calls this directly

Calls 1

CloseNtupleFileMethod · 0.45

Tested by

no test coverage detected