67 std::shared_ptr<G4NtupleBookingManager> bookingManager,
84 void SetFileManager(std::shared_ptr<G4RootFileManager> fileManager);
94 {
return fNtupleVector; }
99 static constexpr std::string_view fkClass {
"G4RootMainNtupleManager" };
103 std::shared_ptr<G4RootFile> ntupleFile);
107 std::shared_ptr<G4NtupleBookingManager> fBookingManager {
nullptr };
108 std::shared_ptr<G4RootFileManager> fFileManager {
nullptr };
111 std::vector<tools::wroot::ntuple*> fNtupleVector;
112 std::vector<RootMainNtupleDescription> fNtupleDescriptionVector;
113 G4bool fNewCycle {
false };
std::pair< RootNtupleDescription *, std::shared_ptr< G4RootFile > > RootMainNtupleDescription
void CreateNtuplesFromBooking()
void SetFileManager(std::shared_ptr< G4RootFileManager > fileManager)
~G4RootMainNtupleManager() override=default
const std::vector< tools::wroot::ntuple * > & GetNtupleVector()
std::shared_ptr< G4RootFile > GetNtupleFile(RootNtupleDescription *ntupleDescription) const
G4RootMainNtupleManager()=delete
unsigned int GetBasketEntries() const
void SetNewCycle(G4bool value)
void SetRowWise(G4bool rowWise)
void CreateNtuple(RootNtupleDescription *ntupleDescription, G4bool warn=true)
G4bool GetNewCycle() const