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

Method GetNtupleFileName

source/analysis/root/src/G4RootFileManager.cc:82–108  ·  view source on GitHub ↗

_____________________________________________________________________________

Source from the content-addressed store, hash-verified

80
81//_____________________________________________________________________________
82G4String G4RootFileManager::GetNtupleFileName(
83 RootNtupleDescription* ntupleDescription,
84 G4bool perThread,
85 G4int mainNumber) const
86{
87 // get ntuple file name
88
89 auto ntupleFileName = ntupleDescription->GetFileName();
90 if (ntupleFileName.size() != 0u) {
91 if ( perThread ) {
92 ntupleFileName = GetTnFileName(ntupleFileName, GetFileType());
93 }
94 }
95 else {
96 // get default file name
97 ntupleFileName = GetFullFileName(fFileName, perThread);
98 }
99
100 // update filename per mainNumber
101 if ( mainNumber > -1 ) {
102 // update filename per mainNumber
103 ntupleFileName
104 = G4Analysis::GetNtupleFileName(ntupleFileName, GetFileType(), mainNumber);
105 }
106
107 return ntupleFileName;
108}
109
110//
111// protected methods

Callers

nothing calls this directly

Calls 4

GetTnFileNameFunction · 0.85
GetNtupleFileNameFunction · 0.85
GetFileNameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected