Geant4  10.03
G4BaseFileManager Class Reference

#include <G4BaseFileManager.hh>

+ Inheritance diagram for G4BaseFileManager:
+ Collaboration diagram for G4BaseFileManager:

Public Member Functions

 G4BaseFileManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseFileManager ()
 
virtual G4bool SetFileName (const G4String &fileName)
 
G4String GetFileName () const
 
G4String GetFullFileName (const G4String &baseFileName="", G4bool isPerThread=true) const
 
G4String GetHnFileName (const G4String &hnType, const G4String &hnName) const
 
G4String GetNtupleFileName (const G4String &ntupleName) const
 
G4String GetNtupleFileName (G4int ntupleFileNumber) const
 
G4String GetPlotFileName () const
 
G4String GetFileType () const
 

Protected Member Functions

G4String TakeOffExtension (G4String &name) const
 

Protected Attributes

const G4AnalysisManagerStatefState
 
G4String fFileName
 

Detailed Description

Definition at line 38 of file G4BaseFileManager.hh.

Constructor & Destructor Documentation

G4BaseFileManager::G4BaseFileManager ( const G4AnalysisManagerState state)
explicit

Definition at line 35 of file G4BaseFileManager.cc.

G4BaseFileManager::~G4BaseFileManager ( )
virtual

Definition at line 42 of file G4BaseFileManager.cc.

Member Function Documentation

G4String G4BaseFileManager::GetFileName ( ) const
inline

Definition at line 95 of file G4BaseFileManager.hh.

References fFileName.

G4String G4BaseFileManager::GetFileType ( ) const

Definition at line 175 of file G4BaseFileManager.cc.

References fState, G4AnalysisManagerState::GetType(), and G4String::toLower().

Referenced by TakeOffExtension().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4BaseFileManager::GetFullFileName ( const G4String baseFileName = "",
G4bool  isPerThread = true 
) const

Definition at line 70 of file G4BaseFileManager.cc.

References G4String::append(), fFileName, fState, G4Threading::G4GetThreadId(), G4AnalysisManagerState::GetIsMaster(), G4InuclParticleNames::name(), and TakeOffExtension().

Referenced by G4RootFileManager::CloseFile(), G4XmlFileManager::CloseHnFile(), G4XmlFileManager::CreateHnFile(), G4CsvAnalysisReader::GetHnFileName(), G4XmlRFileManager::GetRFile(), G4RootRFileManager::GetRFile(), G4RootFileManager::OpenFile(), G4XmlRFileManager::OpenRFile(), G4RootRFileManager::OpenRFile(), and G4RootFileManager::WriteFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4BaseFileManager::GetHnFileName ( const G4String hnType,
const G4String hnName 
) const

Definition at line 140 of file G4BaseFileManager.cc.

References G4String::append(), fFileName, G4InuclParticleNames::name(), and TakeOffExtension().

Referenced by G4CsvAnalysisReader::GetHnFileName().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4BaseFileManager::GetNtupleFileName ( const G4String ntupleName) const

Definition at line 94 of file G4BaseFileManager.cc.

References G4String::append(), fFileName, fState, G4Threading::G4GetThreadId(), G4AnalysisManagerState::GetIsMaster(), G4InuclParticleNames::name(), and TakeOffExtension().

Referenced by G4RootFileManager::CloseFile(), G4CsvFileManager::CloseNtupleFile(), G4XmlFileManager::CloseNtupleFile(), G4CsvFileManager::CreateNtupleFile(), G4XmlFileManager::CreateNtupleFile(), G4RootFileManager::OpenNtupleFiles(), G4CsvAnalysisReader::ReadNtupleImpl(), G4XmlAnalysisReader::ReadNtupleImpl(), and G4RootFileManager::WriteFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4BaseFileManager::GetNtupleFileName ( G4int  ntupleFileNumber) const

Definition at line 120 of file G4BaseFileManager.cc.

References G4String::append(), fFileName, G4InuclParticleNames::name(), and TakeOffExtension().

+ Here is the call graph for this function:

G4String G4BaseFileManager::GetPlotFileName ( ) const

Definition at line 161 of file G4BaseFileManager.cc.

References G4String::append(), fFileName, G4InuclParticleNames::name(), and TakeOffExtension().

+ Here is the call graph for this function:

G4bool G4BaseFileManager::SetFileName ( const G4String fileName)
inlinevirtual

Reimplemented in G4VFileManager.

Definition at line 90 of file G4BaseFileManager.hh.

References fFileName.

Referenced by G4VFileManager::SetFileName().

+ Here is the caller graph for this function:

G4String G4BaseFileManager::TakeOffExtension ( G4String name) const
protected

Definition at line 51 of file G4BaseFileManager.cc.

References G4String::append(), and GetFileType().

Referenced by GetFullFileName(), GetHnFileName(), GetNtupleFileName(), and GetPlotFileName().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation


The documentation for this class was generated from the following files: