39 using namespace G4Analysis;
48 fFileManager(nullptr),
49 fIsCommentedHeader(true),
69 if (
fFileManager->CreateNtupleFile(ntupleDescription) ) {
73 (ntupleDescription->
fNtuple)->set_title(title);
84 if ( !
fFileManager->CreateNtupleFile(ntupleDescription) )
return;
97 if ( ! ntupleDescription->
fNtuple )
return;
103 <<
"Writing ntuple header has failed. ";
118 return ntuple->write_commented_header(
G4cout);
123 ntuple->write_hippo_header();
virtual void CreateTNtuple(NtupleDescriptionType *ntupleDescription, const G4String &name, const G4String &title) final
std::ostringstream G4ExceptionDescription
std::shared_ptr< G4CsvFileManager > fFileManager
G4bool WriteHeader(NtupleType *ntuple) const
virtual void FinishTNtuple(NtupleDescriptionType *ntupleDescription) final
virtual void CreateTNtupleFromBooking(NtupleDescriptionType *ntupleDescription) final
G4bool fIsCommentedHeader
G4GLOB_DLL std::ostream G4cerr
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
tools::ntuple_booking fNtupleBooking
G4CsvNtupleManager(const G4AnalysisManagerState &state)
std::vector< tools::wcsv::ntuple * > fNtupleVector