Geant4  10.01.p03
G4RootFileManager Class Reference

#include <G4RootFileManager.hh>

+ Inheritance diagram for G4RootFileManager:
+ Collaboration diagram for G4RootFileManager:

Public Member Functions

 G4RootFileManager (const G4AnalysisManagerState &state)
 
virtual ~G4RootFileManager ()
 
virtual G4bool OpenFile (const G4String &fileName)
 
virtual G4bool WriteFile ()
 
virtual G4bool CloseFile ()
 
G4bool CreateHistoDirectory ()
 
G4bool CreateProfileDirectory ()
 
G4bool CreateNtupleDirectory ()
 
tools::wroot::file * GetFile () const
 
tools::wroot::directory * GetHistoDirectory () const
 
tools::wroot::directory * GetProfileDirectory () const
 
tools::wroot::directory * GetNtupleDirectory () const
 
- Public Member Functions inherited from G4VFileManager
 G4VFileManager (const G4AnalysisManagerState &state)
 
virtual ~G4VFileManager ()
 
void LockHistoDirectoryName ()
 
void LockProfileDirectoryName ()
 
void LockNtupleDirectoryName ()
 
virtual G4bool SetFileName (const G4String &fileName)
 
G4bool SetHistoDirectoryName (const G4String &dirName)
 
G4bool SetProfileDirectoryName (const G4String &dirName)
 
G4bool SetNtupleDirectoryName (const G4String &dirName)
 
G4String GetHistoDirectoryName () const
 
G4String GetProfileDirectoryName () const
 
G4String GetNtupleDirectoryName () const
 
- Public Member Functions inherited from G4BaseFileManager
 G4BaseFileManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseFileManager ()
 
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 GetFileType () const
 

Private Attributes

tools::wroot::file * fFile
 
tools::wroot::directory * fHistoDirectory
 
tools::wroot::directory * fProfileDirectory
 
tools::wroot::directory * fNtupleDirectory
 

Additional Inherited Members

- Protected Member Functions inherited from G4BaseFileManager
G4String TakeOffExtension (G4String &name) const
 
- Protected Attributes inherited from G4VFileManager
G4String fHistoDirectoryName
 
G4String fProfileDirectoryName
 
G4String fNtupleDirectoryName
 
G4bool fLockFileName
 
G4bool fLockHistoDirectoryName
 
G4bool fLockProfileDirectoryName
 
G4bool fLockNtupleDirectoryName
 
- Protected Attributes inherited from G4BaseFileManager
const G4AnalysisManagerStatefState
 
G4String fFileName
 

Detailed Description

Definition at line 47 of file G4RootFileManager.hh.

Constructor & Destructor Documentation

G4RootFileManager::G4RootFileManager ( const G4AnalysisManagerState state)

Definition at line 41 of file G4RootFileManager.cc.

G4RootFileManager::~G4RootFileManager ( )
virtual

Definition at line 51 of file G4RootFileManager.cc.

References fFile.

Member Function Documentation

G4bool G4RootFileManager::CloseFile ( )
virtual

Implements G4VFileManager.

Definition at line 115 of file G4RootFileManager.cc.

References fFile, and G4VFileManager::fLockFileName.

Referenced by G4RootAnalysisManager::CloseFileImpl().

+ Here is the caller graph for this function:

G4bool G4RootFileManager::CreateHistoDirectory ( )

Definition at line 125 of file G4RootFileManager.cc.

References fFile, fHistoDirectory, G4VFileManager::fHistoDirectoryName, G4BaseFileManager::fState, G4Exception(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by OpenFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootFileManager::CreateNtupleDirectory ( )

Definition at line 193 of file G4RootFileManager.cc.

References fFile, fNtupleDirectory, G4VFileManager::fNtupleDirectoryName, G4BaseFileManager::fState, G4Exception(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by OpenFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootFileManager::CreateProfileDirectory ( )

Definition at line 159 of file G4RootFileManager.cc.

References fFile, fProfileDirectory, G4VFileManager::fProfileDirectoryName, G4BaseFileManager::fState, G4Exception(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by OpenFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tools::wroot::file * G4RootFileManager::GetFile ( ) const
inline

Definition at line 78 of file G4RootFileManager.hh.

References fFile.

tools::wroot::directory * G4RootFileManager::GetHistoDirectory ( ) const
inline

Definition at line 81 of file G4RootFileManager.hh.

References fHistoDirectory.

Referenced by G4RootAnalysisManager::WriteH1(), G4RootAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH3().

+ Here is the caller graph for this function:

tools::wroot::directory * G4RootFileManager::GetNtupleDirectory ( ) const
inline

Definition at line 87 of file G4RootFileManager.hh.

References fNtupleDirectory.

Referenced by G4RootAnalysisManager::OpenFileImpl().

+ Here is the caller graph for this function:

tools::wroot::directory * G4RootFileManager::GetProfileDirectory ( ) const
inline

Definition at line 84 of file G4RootFileManager.hh.

References fProfileDirectory.

Referenced by G4RootAnalysisManager::WriteP1(), and G4RootAnalysisManager::WriteP2().

+ Here is the caller graph for this function:

G4bool G4RootFileManager::OpenFile ( const G4String fileName)
virtual

Implements G4VFileManager.

Definition at line 60 of file G4RootFileManager.cc.

References CreateHistoDirectory(), CreateNtupleDirectory(), CreateProfileDirectory(), fFile, G4BaseFileManager::fFileName, G4VFileManager::fLockFileName, G4VFileManager::fLockHistoDirectoryName, G4VFileManager::fLockNtupleDirectoryName, G4VFileManager::fLockProfileDirectoryName, G4cout, G4Exception(), G4BaseFileManager::GetFullFileName(), JustWarning, and name.

Referenced by G4RootAnalysisManager::OpenFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4RootFileManager::WriteFile ( )
virtual

Implements G4VFileManager.

Definition at line 96 of file G4RootFileManager.cc.

References fFile, G4BaseFileManager::fState, G4BaseFileManager::GetFullFileName(), G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and n.

Referenced by G4RootAnalysisManager::WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

tools::wroot::file* G4RootFileManager::fFile
private
tools::wroot::directory* G4RootFileManager::fHistoDirectory
private

Definition at line 71 of file G4RootFileManager.hh.

Referenced by CreateHistoDirectory(), and GetHistoDirectory().

tools::wroot::directory* G4RootFileManager::fNtupleDirectory
private

Definition at line 73 of file G4RootFileManager.hh.

Referenced by CreateNtupleDirectory(), and GetNtupleDirectory().

tools::wroot::directory* G4RootFileManager::fProfileDirectory
private

Definition at line 72 of file G4RootFileManager.hh.

Referenced by CreateProfileDirectory(), and GetProfileDirectory().


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