Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include <G4RootFileManager.hh>
Public Member Functions | |
G4RootFileManager (const G4AnalysisManagerState &state) | |
G4RootFileManager ()=delete | |
~G4RootFileManager () override=default | |
G4bool | OpenFile (const G4String &fileName) final |
G4String | GetFileType () const final |
G4bool | HasCycles () const final |
std::shared_ptr< G4RootFile > | CreateNtupleFile (RootNtupleDescription *ntupleDescription, G4int mainNumber=-1) |
std::shared_ptr< G4RootFile > | GetNtupleFile (RootNtupleDescription *ntupleDescription, G4bool perThread=true, G4int mainNumber=-1) const |
G4bool | CloseNtupleFile (RootNtupleDescription *ntupleDescription, G4int mainNumber=-1) |
void | SetBasketSize (unsigned int basketSize) |
void | SetBasketEntries (unsigned int basketEntries) |
unsigned int | GetBasketSize () const |
unsigned int | GetBasketEntries () const |
G4String | GetNtupleFileName (const G4String &ntupleName, G4int cycle=0) const |
G4String | GetNtupleFileName (G4int ntupleFileNumber, G4int cycle=0) const |
Public Member Functions inherited from G4VTFileManager< G4RootFile > | |
G4VTFileManager (const G4AnalysisManagerState &state) | |
~G4VTFileManager () override=default | |
G4bool | CreateFile (const G4String &fileName) final |
G4bool | WriteFile (const G4String &fileName) final |
virtual G4bool | WriteFile (const G4String &fileName)=0 |
G4bool | CloseFile (const G4String &fileName) final |
virtual G4bool | CloseFile (const G4String &fileName)=0 |
G4bool | SetIsEmpty (const G4String &fileName, G4bool isEmpty) final |
G4bool | OpenFiles () final |
G4bool | WriteFiles () final |
G4bool | CloseFiles () final |
G4bool | DeleteEmptyFiles () final |
void | Clear () final |
std::shared_ptr< G4RootFile > | GetFile () const |
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 |
Public Member Functions inherited from G4TFileManager< FT > | |
G4TFileManager (const G4AnalysisManagerState &state) | |
G4TFileManager ()=delete | |
virtual | ~G4TFileManager () |
std::shared_ptr< FT > | CreateTFile (const G4String &fileName) |
G4bool | WriteTFile (const G4String &fileName) |
G4bool | CloseTFile (const G4String &fileName) |
G4bool | SetIsEmpty (const G4String &fileName, G4bool isEmpty) |
std::shared_ptr< FT > | GetTFile (const G4String &fileName, G4bool warn=true) const |
G4bool | OpenFiles () |
G4bool | WriteFiles () |
G4bool | CloseFiles () |
G4bool | DeleteEmptyFiles () |
void | ClearData () |
Protected Member Functions | |
std::shared_ptr< G4RootFile > | CreateFileImpl (const G4String &fileName) final |
G4bool | WriteFileImpl (std::shared_ptr< G4RootFile > file) final |
G4bool | CloseFileImpl (std::shared_ptr< G4RootFile > file) final |
Protected Member Functions inherited from G4BaseFileManager | |
void | Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const |
Protected Member Functions inherited from G4TFileManager< FT > | |
virtual std::shared_ptr< FT > | CreateFileImpl (const G4String &fileName)=0 |
virtual G4bool | WriteFileImpl (std::shared_ptr< FT > file)=0 |
virtual G4bool | CloseFileImpl (std::shared_ptr< FT > file)=0 |
Additional Inherited Members | |
Protected Attributes inherited from G4VTFileManager< G4RootFile > | |
std::shared_ptr< G4RootFile > | fFile |
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 53 of file G4RootFileManager.hh.
|
explicit |
Definition at line 42 of file G4RootFileManager.cc.
|
delete |
|
overridedefault |
|
finalprotected |
Definition at line 158 of file G4RootFileManager.cc.
G4bool G4RootFileManager::CloseNtupleFile | ( | RootNtupleDescription * | ntupleDescription, |
G4int | mainNumber = -1 |
||
) |
Definition at line 237 of file G4RootFileManager.cc.
|
finalprotectedvirtual |
Implements G4TFileManager< FT >.
Definition at line 116 of file G4RootFileManager.cc.
std::shared_ptr< G4RootFile > G4RootFileManager::CreateNtupleFile | ( | RootNtupleDescription * | ntupleDescription, |
G4int | mainNumber = -1 |
||
) |
Definition at line 205 of file G4RootFileManager.cc.
|
inline |
Definition at line 127 of file G4RootFileManager.hh.
|
inline |
Definition at line 123 of file G4RootFileManager.hh.
|
inlinefinalvirtual |
Reimplemented from G4BaseFileManager.
Definition at line 67 of file G4RootFileManager.hh.
std::shared_ptr< G4RootFile > G4RootFileManager::GetNtupleFile | ( | RootNtupleDescription * | ntupleDescription, |
G4bool | perThread = true , |
||
G4int | mainNumber = -1 |
||
) | const |
Definition at line 227 of file G4RootFileManager.cc.
G4String G4BaseFileManager::GetNtupleFileName | ( | const G4String & | ntupleName, |
G4int | cycle = 0 |
||
) | const |
Definition at line 80 of file G4BaseFileManager.cc.
Definition at line 88 of file G4BaseFileManager.cc.
|
inlinefinalvirtual |
Reimplemented from G4BaseFileManager.
Definition at line 68 of file G4RootFileManager.hh.
Implements G4VFileManager.
Definition at line 178 of file G4RootFileManager.cc.
|
inline |
Definition at line 119 of file G4RootFileManager.hh.
|
inline |
Definition at line 115 of file G4RootFileManager.hh.
|
finalprotected |
Definition at line 148 of file G4RootFileManager.cc.