Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include <G4VFileManager.hh>
Public Member Functions | |
G4VFileManager (const G4AnalysisManagerState &state) | |
G4VFileManager ()=delete | |
~G4VFileManager () override=default | |
virtual G4bool | OpenFile (const G4String &fileName)=0 |
virtual G4bool | CreateFile (const G4String &fileName)=0 |
virtual G4bool | WriteFile (const G4String &fileName)=0 |
virtual G4bool | CloseFile (const G4String &fileName)=0 |
virtual G4bool | SetIsEmpty (const G4String &fileName, G4bool isEmpty)=0 |
virtual G4bool | OpenFiles ()=0 |
virtual G4bool | WriteFiles ()=0 |
virtual G4bool | CloseFiles ()=0 |
virtual G4bool | DeleteEmptyFiles ()=0 |
virtual void | Clear ()=0 |
G4bool | SetFileName (const G4String &fileName) final |
virtual G4bool | SetHistoDirectoryName (const G4String &dirName) |
virtual G4bool | SetNtupleDirectoryName (const G4String &dirName) |
void | LockDirectoryNames () |
void | UnlockDirectoryNames () |
G4bool | IsOpenFile () const |
G4String | GetHistoDirectoryName () const |
G4String | GetNtupleDirectoryName () const |
G4int | GetCycle () const |
template<typename HT > | |
std::shared_ptr< G4VTHnFileManager< HT > > | GetHnFileManager () const |
Public Member Functions inherited from G4BaseFileManager | |
G4BaseFileManager (const G4AnalysisManagerState &state) | |
G4BaseFileManager ()=delete | |
virtual | ~G4BaseFileManager ()=default |
virtual G4bool | SetFileName (const G4String &fileName) |
virtual G4String | GetFileType () const |
virtual G4bool | HasCycles () 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 | GetHnFileName (const G4String &fileName, G4int cycle=0) const |
G4String | GetNtupleFileName (const G4String &ntupleName, G4int cycle=0) const |
G4String | GetNtupleFileName (G4int ntupleFileNumber, G4int cycle=0) const |
G4String | GetPlotFileName () const |
Protected Attributes | |
G4String | fHistoDirectoryName |
G4String | fNtupleDirectoryName |
G4bool | fIsOpenFile { false } |
G4bool | fLockDirectoryNames { false } |
std::shared_ptr< G4VTHnFileManager< tools::histo::h1d > > | fH1FileManager { nullptr } |
std::shared_ptr< G4VTHnFileManager< tools::histo::h2d > > | fH2FileManager { nullptr } |
std::shared_ptr< G4VTHnFileManager< tools::histo::h3d > > | fH3FileManager { nullptr } |
std::shared_ptr< G4VTHnFileManager< tools::histo::p1d > > | fP1FileManager { nullptr } |
std::shared_ptr< G4VTHnFileManager< tools::histo::p2d > > | fP2FileManager { nullptr } |
Protected Attributes inherited from G4BaseFileManager | |
const G4AnalysisManagerState & | fState |
G4String | fFileName |
std::vector< G4String > | fFileNames |
Static Protected Attributes | |
static constexpr std::string_view | fkClass { "G4VFileManager" } |
Additional Inherited Members | |
Protected Member Functions inherited from G4BaseFileManager | |
void | Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const |
Definition at line 51 of file G4VFileManager.hh.
|
explicit |
Definition at line 36 of file G4VFileManager.cc.
|
delete |
Referenced by G4VTFileManager< std::ofstream >::CloseFile().
|
overridedefault |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
|
inline |
Definition at line 122 of file G4VFileManager.hh.
std::shared_ptr< G4VTHnFileManager< HT > > G4VFileManager::GetHnFileManager | ( | ) | const |
|
inline |
Definition at line 125 of file G4VFileManager.hh.
|
inline |
Definition at line 119 of file G4VFileManager.hh.
|
inline |
Definition at line 113 of file G4VFileManager.hh.
Referenced by G4GenericFileManager::OpenFile(), G4Hdf5FileManager::OpenFile(), and G4RootFileManager::OpenFile().
Implemented in G4CsvFileManager, G4GenericFileManager, G4Hdf5FileManager, G4RootFileManager, and G4XmlFileManager.
|
pure virtual |
Reimplemented from G4BaseFileManager.
Definition at line 45 of file G4VFileManager.cc.
Referenced by G4GenericFileManager::OpenFile().
Reimplemented in G4CsvFileManager, and G4GenericFileManager.
Definition at line 61 of file G4VFileManager.cc.
Referenced by G4CsvFileManager::SetHistoDirectoryName(), and G4GenericFileManager::SetHistoDirectoryName().
Reimplemented in G4CsvFileManager, and G4GenericFileManager.
Definition at line 74 of file G4VFileManager.cc.
Referenced by G4CsvFileManager::SetNtupleDirectoryName(), and G4GenericFileManager::SetNtupleDirectoryName().
|
inline |
|
pure virtual |
|
protected |
Definition at line 104 of file G4VFileManager.hh.
Referenced by G4CsvFileManager::G4CsvFileManager(), G4Hdf5FileManager::G4Hdf5FileManager(), G4RootFileManager::G4RootFileManager(), and G4XmlFileManager::G4XmlFileManager().
|
protected |
Definition at line 105 of file G4VFileManager.hh.
Referenced by G4CsvFileManager::G4CsvFileManager(), G4Hdf5FileManager::G4Hdf5FileManager(), G4RootFileManager::G4RootFileManager(), and G4XmlFileManager::G4XmlFileManager().
|
protected |
Definition at line 106 of file G4VFileManager.hh.
Referenced by G4CsvFileManager::G4CsvFileManager(), G4Hdf5FileManager::G4Hdf5FileManager(), G4RootFileManager::G4RootFileManager(), and G4XmlFileManager::G4XmlFileManager().
|
protected |
Definition at line 98 of file G4VFileManager.hh.
Referenced by G4Hdf5FileManager::CreateFileImpl(), G4RootFileManager::CreateFileImpl(), GetHistoDirectoryName(), and SetHistoDirectoryName().
|
protected |
Definition at line 100 of file G4VFileManager.hh.
Referenced by G4GenericFileManager::CloseFiles(), IsOpenFile(), G4CsvFileManager::OpenFile(), G4GenericFileManager::OpenFile(), G4Hdf5FileManager::OpenFile(), G4RootFileManager::OpenFile(), and G4XmlFileManager::OpenFile().
|
staticconstexprprotected |
Definition at line 95 of file G4VFileManager.hh.
Referenced by SetFileName(), SetHistoDirectoryName(), and SetNtupleDirectoryName().
|
protected |
Definition at line 101 of file G4VFileManager.hh.
Referenced by LockDirectoryNames(), SetHistoDirectoryName(), SetNtupleDirectoryName(), and UnlockDirectoryNames().
|
protected |
Definition at line 99 of file G4VFileManager.hh.
Referenced by G4Hdf5FileManager::CreateFileImpl(), G4RootFileManager::CreateFileImpl(), GetNtupleDirectoryName(), and SetNtupleDirectoryName().
|
protected |
Definition at line 107 of file G4VFileManager.hh.
Referenced by G4CsvFileManager::G4CsvFileManager(), G4Hdf5FileManager::G4Hdf5FileManager(), G4RootFileManager::G4RootFileManager(), and G4XmlFileManager::G4XmlFileManager().
|
protected |
Definition at line 108 of file G4VFileManager.hh.
Referenced by G4CsvFileManager::G4CsvFileManager(), G4Hdf5FileManager::G4Hdf5FileManager(), G4RootFileManager::G4RootFileManager(), and G4XmlFileManager::G4XmlFileManager().