Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4Hdf5RFileManager Class Reference

#include <G4Hdf5RFileManager.hh>

+ Inheritance diagram for G4Hdf5RFileManager:

Public Member Functions

 G4Hdf5RFileManager (const G4AnalysisManagerState &state)
 
virtual ~G4Hdf5RFileManager ()
 
virtual G4String GetFileType () const final
 
hid_t GetRFile (const G4String &fileName, G4bool isPerThread) const
 
hid_t GetHistoRDirectory (const G4String &fileName, const G4String &dirName, G4bool isPerThread)
 
hid_t GetNtupleRDirectory (const G4String &fileName, const G4String &dirName, G4bool isPerThread)
 
- Public Member Functions inherited from G4BaseFileManager
 G4BaseFileManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseFileManager ()
 
virtual G4bool SetFileName (const G4String &fileName)
 
virtual G4String GetFileType () const
 
void AddFileName (const G4String &fileName)
 
G4String GetFileName () const
 
G4String GetFullFileName (const G4String &baseFileName="", G4bool isPerThread=true) const
 
const std::vector< G4String > & GetFileNames () const
 
G4String GetHnFileName (const G4String &hnType, const G4String &hnName) const
 
G4String GetNtupleFileName (const G4String &ntupleName) const
 
G4String GetNtupleFileName (G4int ntupleFileNumber) const
 
G4String GetPlotFileName () const
 

Additional Inherited Members

- Protected Attributes inherited from G4BaseFileManager
const G4AnalysisManagerStatefState
 
G4String fFileName
 
std::vector< G4StringfFileNames
 

Detailed Description

Definition at line 41 of file G4Hdf5RFileManager.hh.

Constructor & Destructor Documentation

◆ G4Hdf5RFileManager()

G4Hdf5RFileManager::G4Hdf5RFileManager ( const G4AnalysisManagerState state)
explicit

Definition at line 45 of file G4Hdf5RFileManager.cc.

46 : G4BaseFileManager(state),
47 fRFiles()
48{
49}

◆ ~G4Hdf5RFileManager()

G4Hdf5RFileManager::~G4Hdf5RFileManager ( )
virtual

Definition at line 52 of file G4Hdf5RFileManager.cc.

53{
54}

Member Function Documentation

◆ GetFileType()

virtual G4String G4Hdf5RFileManager::GetFileType ( ) const
inlinefinalvirtual

Reimplemented from G4BaseFileManager.

Definition at line 47 of file G4Hdf5RFileManager.hh.

47{ return "hdf5"; }

◆ GetHistoRDirectory()

hid_t G4Hdf5RFileManager::GetHistoRDirectory ( const G4String fileName,
const G4String dirName,
G4bool  isPerThread 
)

Definition at line 187 of file G4Hdf5RFileManager.cc.

189{
190 return GetRDirectory("histograms", fileName, dirName, isPerThread);
191}

◆ GetNtupleRDirectory()

hid_t G4Hdf5RFileManager::GetNtupleRDirectory ( const G4String fileName,
const G4String dirName,
G4bool  isPerThread 
)

Definition at line 194 of file G4Hdf5RFileManager.cc.

196{
197 return GetRDirectory("ntuples", fileName, dirName, isPerThread);
198}

Referenced by G4Hdf5AnalysisReader::ReadNtupleImpl().

◆ GetRFile()

hid_t G4Hdf5RFileManager::GetRFile ( const G4String fileName,
G4bool  isPerThread 
) const

Definition at line 171 of file G4Hdf5RFileManager.cc.

173{
174 // Get full file name
175 G4String name = GetFullFileName(fileName, isPerThread);
176
177 std::map<G4String, hid_t>::const_iterator it
178 = fRFiles.find(name);
179 if ( it != fRFiles.end() )
180 return it->second;
181 else {
182 return kInvalidId;
183 }
184}
G4String GetFullFileName(const G4String &baseFileName="", G4bool isPerThread=true) const
const G4int kInvalidId
const char * name(G4int ptype)

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