32#ifndef G4RootNtupleFileManager_h
33#define G4RootNtupleFileManager_h 1
70 void SetFileManager(std::shared_ptr<G4RootFileManager> fileManager);
79 void SetNtupleMergingMode(
G4bool mergeNtuples,
G4int nofNtupleFiles);
80 G4int GetNtupleFileNumber();
84 static constexpr std::string_view fkClass {
"G4RootNtupleFileManager" };
87 G4bool fIsInitialized {
false };
88 G4int fNofNtupleFiles { 0 };
89 G4bool fNtupleRowWise {
false };
90 G4bool fNtupleRowMode {
true };
92 std::shared_ptr<G4RootNtupleManager> fNtupleManager {
nullptr };
93 std::shared_ptr<G4RootPNtupleManager> fSlaveNtupleManager {
nullptr };
94 std::shared_ptr<G4RootFileManager> fFileManager {
nullptr };
98 std::shared_ptr<G4RootFileManager> fileManager)
100 fFileManager = std::move(fileManager);
104{
return fNtupleMergeMode; }
110{
return fNtupleManager; }
void SetNtupleMerging(G4bool mergeNtuples, G4int nofReducedNtupleFiles=0) override
void SetNtupleRowWise(G4bool rowWise, G4bool rowMode=true) override
void SetBasketSize(unsigned int basketSize) override
friend class G4RootMpiNtupleFileManager
G4bool ActionAtCloseFile() override
std::shared_ptr< G4VNtupleManager > CreateNtupleManager() override
~G4RootNtupleFileManager() override
G4bool ActionAtWrite() override
G4bool IsNtupleMergingSupported() const override
void SetBasketEntries(unsigned int basketEntries) override
G4NtupleMergeMode GetMergeMode() const override
void SetFileManager(std::shared_ptr< G4RootFileManager > fileManager)
std::shared_ptr< G4RootNtupleManager > GetNtupleManager() const
G4bool ActionAtOpenFile(const G4String &fileName) override
G4RootNtupleFileManager()=delete