34 #include "tools/wroot/file"
35 #include "tools/rroot/file"
47 fHistoDirectory(nullptr),
48 fNtupleDirectory(nullptr)
70 fFile->add_ziper(
'Z',tools::compress_buffer);
73 if ( !
fFile->is_open() ) {
75 description <<
" " <<
"Cannot open file " << fileName;
103 auto result =
fFile->write(n);
144 G4Exception(
"G4RootFileManager::CreateHistoDirectory()",
178 G4Exception(
"G4RootFileManager::CreateNtupleDirectory()",
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
G4bool CreateNtupleDirectory()
const G4AnalysisManagerState & fState
G4bool fLockHistoDirectoryName
G4int GetCompressionLevel() const
G4String fNtupleDirectoryName
std::ostringstream G4ExceptionDescription
G4bool CreateHistoDirectory()
tools::wroot::directory * fNtupleDirectory
virtual G4bool CloseFile() final
virtual G4bool WriteFile() final
G4String fHistoDirectoryName
tools::wroot::directory * fHistoDirectory
const G4AnalysisVerbose * GetVerboseL2() const
G4RootFileManager(const G4AnalysisManagerState &state)
G4GLOB_DLL std::ostream G4cout
virtual G4bool OpenFile(const G4String &fileName) final
const G4AnalysisVerbose * GetVerboseL4() const
virtual ~G4RootFileManager()
std::unique_ptr< tools::wroot::file > fFile
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4bool fLockNtupleDirectoryName
G4String GetFullFileName(const G4String &baseFileName="", G4bool isPerThread=true) const
const G4AnalysisVerbose * GetVerboseL1() const