Geant4  10.01.p03
G4XmlFileManager Class Reference

#include <G4XmlFileManager.hh>

+ Inheritance diagram for G4XmlFileManager:
+ Collaboration diagram for G4XmlFileManager:

Public Member Functions

 G4XmlFileManager (const G4AnalysisManagerState &state)
 
 ~G4XmlFileManager ()
 
virtual G4bool OpenFile (const G4String &fileName)
 
virtual G4bool WriteFile ()
 
virtual G4bool CloseFile ()
 
G4bool CreateHnFile ()
 
G4bool CloseHnFile ()
 
G4bool CreateNtupleFile (G4XmlNtupleDescription *ntupleDescription)
 
G4bool CloseNtupleFile (G4XmlNtupleDescription *ntupleDescription)
 
std::ofstream * GetHnFile () 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

std::ofstream * fHnFile
 

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 45 of file G4XmlFileManager.hh.

Constructor & Destructor Documentation

G4XmlFileManager::G4XmlFileManager ( const G4AnalysisManagerState state)

Definition at line 36 of file G4XmlFileManager.cc.

G4XmlFileManager::~G4XmlFileManager ( )

Definition at line 43 of file G4XmlFileManager.cc.

References fHnFile.

Member Function Documentation

G4bool G4XmlFileManager::CloseFile ( )
virtual

Implements G4VFileManager.

Definition at line 70 of file G4XmlFileManager.cc.

References G4VFileManager::fLockFileName.

Referenced by G4XmlAnalysisManager::CloseFileImpl().

+ Here is the caller graph for this function:

G4bool G4XmlFileManager::CloseHnFile ( )

Definition at line 108 of file G4XmlFileManager.cc.

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

Referenced by G4XmlAnalysisManager::CloseFileImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4XmlFileManager::CloseNtupleFile ( G4XmlNtupleDescription ntupleDescription)

Definition at line 168 of file G4XmlFileManager.cc.

References G4XmlNtupleDescription::fFile, G4XmlNtupleDescription::fNtupleBooking, G4BaseFileManager::fState, G4BaseFileManager::GetNtupleFileName(), G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().

Referenced by G4XmlAnalysisManager::CloseNtupleFiles().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4XmlFileManager::CreateHnFile ( )

Definition at line 79 of file G4XmlFileManager.cc.

References fHnFile, G4BaseFileManager::fState, G4Exception(), G4BaseFileManager::GetFullFileName(), G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by G4XmlAnalysisManager::OpenFileImpl(), and G4XmlAnalysisManager::WriteImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4XmlFileManager::CreateNtupleFile ( G4XmlNtupleDescription ntupleDescription)

Definition at line 133 of file G4XmlFileManager.cc.

References G4XmlNtupleDescription::fFile, G4XmlNtupleDescription::fNtupleBooking, G4BaseFileManager::fState, G4Exception(), G4BaseFileManager::GetNtupleFileName(), G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by G4XmlNtupleManager::CreateNtuple(), and G4XmlNtupleManager::CreateNtuplesFromBooking().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::ofstream * G4XmlFileManager::GetHnFile ( ) const
inline

Definition at line 72 of file G4XmlFileManager.hh.

References fHnFile.

Referenced by G4XmlAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::WriteH1(), G4XmlAnalysisManager::WriteH2(), G4XmlAnalysisManager::WriteH3(), G4XmlAnalysisManager::WriteP1(), and G4XmlAnalysisManager::WriteP2().

+ Here is the caller graph for this function:

G4bool G4XmlFileManager::OpenFile ( const G4String fileName)
virtual

Implements G4VFileManager.

Definition at line 53 of file G4XmlFileManager.cc.

References G4BaseFileManager::fFileName, and G4VFileManager::fLockFileName.

Referenced by G4XmlAnalysisManager::OpenFileImpl().

+ Here is the caller graph for this function:

G4bool G4XmlFileManager::WriteFile ( )
virtual

Implements G4VFileManager.

Definition at line 63 of file G4XmlFileManager.cc.

Member Data Documentation

std::ofstream* G4XmlFileManager::fHnFile
private

Definition at line 67 of file G4XmlFileManager.hh.

Referenced by CloseHnFile(), CreateHnFile(), GetHnFile(), and ~G4XmlFileManager().


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