34 #include "tools/wroot/file"
35 #include "tools/wroot/ntuple"
42 fNtupleBuilder(ntupleBuilder),
44 fNtupleDirectory(nullptr),
69 <<
" " <<
"Ntuple file must be defined first."
71 <<
" " <<
"Cannot create main ntuples from builder.";
72 G4Exception(
"G4RootAnalysisManager::CreateNtuplesFromBooking",
81 ->
Message(
"create",
"main ntuple", ntupleBooking.name());
88 ntuple->set_basket_size(basketSize);
95 ->
Message(
"create",
"main ntuple", ntupleBooking.name());
108 <<
" " <<
"Ntuple file must be defined first."
110 <<
" " <<
"Cannot create main ntuples from builder.";
111 G4Exception(
"G4RootAnalysisManager::CreateNtuplesFromBooking",
116 auto& ntupleDescriptionVector
119 for (
auto ntupleDescription : ntupleDescriptionVector ) {
128 ntuple->merge_number_of_entries();
138 if ( deleteNtuple ) {
143 fNtupleVector.clear();
std::vector< tools::wroot::ntuple * > fNtupleVector
std::ostringstream G4ExceptionDescription
~G4RootMainNtupleManager()
void CreateNtuple(const tools::ntuple_booking &ntupleBooking, G4bool warn=true)
G4bool Reset(G4bool deleteNtuple)
unsigned int GetBasketSize() const
void CreateNtuplesFromBooking()
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisVerbose * GetVerboseL3() const
const std::vector< NtupleDescriptionType * > & GetNtupleDescriptionVector() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4RootNtupleManager * fNtupleBuilder
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
tools::wroot::directory * fNtupleDirectory
const G4AnalysisManagerState & fState
G4RootMainNtupleManager(G4RootNtupleManager *ntupleBuilder, G4bool rowWise, const G4AnalysisManagerState &state)