32 #ifndef G4RootFileManager_h
33 #define G4RootFileManager_h 1
82 std::shared_ptr<tools::wroot::file> fFile;
83 tools::wroot::directory* fHistoDirectory;
84 tools::wroot::directory* fNtupleDirectory;
85 G4int fNofNtupleFiles;
86 std::vector<std::shared_ptr<tools::wroot::file> > fNtupleFiles;
87 std::vector<tools::wroot::directory*> fMainNtupleDirectories;
88 unsigned int fBasketSize;
94 { fNofNtupleFiles = nofFiles; }
97 { fBasketSize = basketSize; }
100 {
return fHistoDirectory; }
103 {
return fNtupleDirectory; }
106 {
return fBasketSize; }
G4bool CreateNtupleDirectory()
unsigned int GetBasketSize() const
G4bool CreateHistoDirectory()
virtual G4bool CloseFile() final
virtual G4bool WriteFile() final
std::shared_ptr< tools::wroot::file > GetNtupleFile(G4int index) const
G4RootFileManager(const G4AnalysisManagerState &state)
virtual G4bool OpenFile(const G4String &fileName) final
virtual ~G4RootFileManager()
tools::wroot::directory * GetNtupleDirectory() const
void SetBasketSize(unsigned int basketSize)
tools::wroot::directory * GetHistoDirectory() const
tools::wroot::directory * GetMainNtupleDirectory(G4int index) const
void SetNofNtupleFiles(G4int nofFiles)