Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include <G4GenericFileManager.hh>
Public Member Functions | |
G4GenericFileManager (const G4AnalysisManagerState &state) | |
~G4GenericFileManager () override=default | |
G4bool | OpenFile (const G4String &fileName) final |
virtual G4bool | OpenFiles () final |
G4bool | WriteFiles () final |
G4bool | CloseFiles () final |
G4bool | DeleteEmptyFiles () final |
void | Clear () final |
G4bool | CreateFile (const G4String &fileName) final |
G4bool | WriteFile (const G4String &fileName) final |
G4bool | CloseFile (const G4String &fileName) final |
G4bool | SetIsEmpty (const G4String &fileName, G4bool isEmpty) final |
G4bool | SetHistoDirectoryName (const G4String &dirName) override |
G4bool | SetNtupleDirectoryName (const G4String &dirName) override |
G4String | GetFileType () const final |
void | SetDefaultFileType (const G4String &value) |
G4String | GetDefaultFileType () const |
std::shared_ptr< G4VFileManager > | GetFileManager (const G4String &fileName) |
template<typename HT > | |
G4bool | WriteTExtra (const G4String &fileName, HT *ht, const G4String &htName) |
std::shared_ptr< G4VNtupleFileManager > | CreateNtupleFileManager (G4AnalysisOutput output) |
Public Member Functions inherited from G4VFileManager | |
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 |
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 |
Protected Attributes inherited from G4VFileManager | |
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 inherited from G4VFileManager | |
static constexpr std::string_view | fkClass { "G4VFileManager" } |
Definition at line 52 of file G4GenericFileManager.hh.
|
explicit |
Definition at line 62 of file G4GenericFileManager.cc.
|
overridedefault |
|
finalvirtual |
Implements G4VFileManager.
Definition at line 298 of file G4GenericFileManager.cc.
Implements G4VFileManager.
Definition at line 339 of file G4GenericFileManager.cc.
|
finalvirtual |
Implements G4VFileManager.
Definition at line 252 of file G4GenericFileManager.cc.
Implements G4VFileManager.
Definition at line 311 of file G4GenericFileManager.cc.
std::shared_ptr< G4VNtupleFileManager > G4GenericFileManager::CreateNtupleFileManager | ( | G4AnalysisOutput | output | ) |
Definition at line 407 of file G4GenericFileManager.cc.
|
finalvirtual |
Implements G4VFileManager.
Definition at line 276 of file G4GenericFileManager.cc.
G4String G4GenericFileManager::GetDefaultFileType | ( | ) | const |
std::shared_ptr< G4VFileManager > G4GenericFileManager::GetFileManager | ( | const G4String & | fileName | ) |
Definition at line 134 of file G4GenericFileManager.cc.
Referenced by CloseFile(), CreateFile(), CreateNtupleFileManager(), GetFileManager(), OpenFile(), OpenFiles(), SetIsEmpty(), and WriteFile().
|
inlinefinalvirtual |
Reimplemented from G4BaseFileManager.
Definition at line 79 of file G4GenericFileManager.hh.
Implements G4VFileManager.
Definition at line 164 of file G4GenericFileManager.cc.
|
finalvirtual |
Implements G4VFileManager.
Definition at line 199 of file G4GenericFileManager.cc.
void G4GenericFileManager::SetDefaultFileType | ( | const G4String & | value | ) |
Definition at line 391 of file G4GenericFileManager.cc.
Reimplemented from G4VFileManager.
Definition at line 365 of file G4GenericFileManager.cc.
Implements G4VFileManager.
Definition at line 353 of file G4GenericFileManager.cc.
Reimplemented from G4VFileManager.
Definition at line 378 of file G4GenericFileManager.cc.
Implements G4VFileManager.
Definition at line 325 of file G4GenericFileManager.cc.
|
finalvirtual |
Implements G4VFileManager.
Definition at line 230 of file G4GenericFileManager.cc.
G4bool G4GenericFileManager::WriteTExtra | ( | const G4String & | fileName, |
HT * | ht, | ||
const G4String & | htName | ||
) |