31#ifndef G4RootFileManager_h
32#define G4RootFileManager_h 1
68 G4int mainNumber = -1);
71 G4int mainNumber = -1)
const;
91 tools::wroot::directory* CreateDirectory(
92 std::shared_ptr<tools::wroot::file> rfile,
98 G4int mainNumber = -1)
const;
101 unsigned int fBasketSize;
102 unsigned int fBasketEntries;
109{ fBasketSize = basketSize; }
113{ fBasketEntries = basketEntries; }
117{
return fBasketSize; }
121{
return fBasketEntries; }
std::tuple< std::shared_ptr< tools::wroot::file >, tools::wroot::directory *, tools::wroot::directory * > G4RootFile
G4String GetNtupleFileName(const G4String &ntupleName) const
G4bool CloseNtupleFile(RootNtupleDescription *ntupleDescription)
G4bool WriteNtupleFile(RootNtupleDescription *ntupleDescription)
unsigned int GetBasketSize() const
virtual std::shared_ptr< G4RootFile > CreateFileImpl(const G4String &fileName) final
unsigned int GetBasketEntries() const
virtual ~G4RootFileManager()
void SetBasketSize(unsigned int basketSize)
virtual G4String GetFileType() const final
virtual G4bool CloseFileImpl(std::shared_ptr< G4RootFile > file) final
std::shared_ptr< G4RootFile > GetNtupleFile(RootNtupleDescription *ntupleDescription, G4bool perThread=true, G4int mainNumber=-1) const
void SetBasketEntries(unsigned int basketEntries)
virtual G4bool OpenFile(const G4String &fileName) final
virtual G4bool WriteFileImpl(std::shared_ptr< G4RootFile > file) final
std::shared_ptr< G4RootFile > CreateNtupleFile(RootNtupleDescription *ntupleDescription, G4int mainNumber=-1)
virtual G4bool WriteFile(const G4String &fileName) final
virtual G4bool CloseFile(const G4String &fileName) final