31#ifndef G4RootFileManager_h
32#define G4RootFileManager_h 1
72 G4int mainNumber = -1);
75 G4int mainNumber = -1)
const;
77 G4int mainNumber = -1);
95 tools::wroot::directory* CreateDirectory(
96 tools::wroot::file* rfile,
102 G4int mainNumber = -1)
const;
105 static constexpr std::string_view fkClass {
"G4RootFileManager" };
116{ fBasketSize = basketSize; }
120{ fBasketEntries = basketEntries; }
124{
return fBasketSize; }
128{
return fBasketEntries; }
std::tuple< std::shared_ptr< tools::wroot::file >, tools::wroot::directory *, tools::wroot::directory * > G4RootFile
G4String GetNtupleFileName(const G4String &ntupleName, G4int cycle=0) const
unsigned int GetBasketSize() const
std::shared_ptr< G4RootFile > CreateFileImpl(const G4String &fileName) final
unsigned int GetBasketEntries() const
G4bool HasCycles() const final
~G4RootFileManager() override=default
void SetBasketSize(unsigned int basketSize)
G4bool CloseNtupleFile(RootNtupleDescription *ntupleDescription, G4int mainNumber=-1)
G4bool CloseFileImpl(std::shared_ptr< G4RootFile > file) final
G4RootFileManager()=delete
std::shared_ptr< G4RootFile > GetNtupleFile(RootNtupleDescription *ntupleDescription, G4bool perThread=true, G4int mainNumber=-1) const
void SetBasketEntries(unsigned int basketEntries)
G4bool OpenFile(const G4String &fileName) final
G4bool WriteFileImpl(std::shared_ptr< G4RootFile > file) final
std::shared_ptr< G4RootFile > CreateNtupleFile(RootNtupleDescription *ntupleDescription, G4int mainNumber=-1)
G4String GetFileType() const final
G4bool WriteFile(const G4String &fileName) final
G4bool CloseFile(const G4String &fileName) final
constexpr unsigned int kDefaultBasketSize
constexpr unsigned int kDefaultBasketEntries