92 std::shared_ptr<G4NtupleBookingManager> bookingManger,
93 std::shared_ptr<G4RootMainNtupleManager> main,
101 tools::wroot::ntuple* mainNtuple);
102 void CreateNtupleDescriptionsFromBooking();
103 void CreateNtuplesFromMain();
104 void CreateNtuplesIfNeeded();
123 virtual G4bool Merge() final;
133 void SetActivation(
G4bool activation) final;
134 void SetActivation(
G4int ntupleId,
G4bool activation) final;
138 void SetNewCycle(
G4bool value) final;
139 G4bool GetNewCycle() const final;
147 tools::wroot::base_pntuple*
149 tools::wroot::ntuple*
152 template <typename T>
155 template <typename T>
156 G4bool FillNtupleTColumn(
G4int columnId, const T& value);
159 static constexpr
std::string_view fkClass {
"G4RootPNtupleManager" };
162 std::shared_ptr<G4NtupleBookingManager> fBookingManager;
163 std::shared_ptr<G4RootMainNtupleManager> fMainNtupleManager;
164 std::vector<G4RootPNtupleDescription*> fNtupleDescriptionVector;
165 std::vector<tools::wroot::imt_ntuple*> fNtupleVector;
168 G4bool fCreateNtuples {
true };
169 G4bool fNewCycle {
false };