33 #include "tools/wroot/file"
34 #include "tools/wroot/ntuple"
41 fNtupleBuilder(ntupleBuilder),
43 fNtupleDirectory(nullptr),
68 <<
" " <<
"Ntuple file must be defined first."
70 <<
" " <<
"Cannot create main ntuples from builder.";
71 G4Exception(
"G4RootAnalysisManager::CreateNtuplesFromBooking",
80 ->
Message(
"create",
"main ntuple", ntupleBooking.name());
87 ntuple->set_basket_size(basketSize);
94 ->
Message(
"create",
"main ntuple", ntupleBooking.name());
107 <<
" " <<
"Ntuple file must be defined first."
109 <<
" " <<
"Cannot create main ntuples from builder.";
110 G4Exception(
"G4RootAnalysisManager::CreateNtuplesFromBooking",
115 auto& ntupleDescriptionVector
118 for (
auto ntupleDescription : ntupleDescriptionVector ) {
127 ntuple->merge_number_of_entries();
137 if ( deleteNtuple ) {
142 fNtupleVector.clear();