48 fFileManager(nullptr),
49 fIsCommentedHeader(true),
69 if (
fFileManager->CreateNtupleFile(ntupleDescription) ) {
71 =
new tools::wcsv::ntuple(*(ntupleDescription->
fFile));
73 (ntupleDescription->
fNtuple)->set_title(title);
84 if ( !
fFileManager->CreateNtupleFile(ntupleDescription) )
return;
88 =
new tools::wcsv::ntuple(
96 <<
"Writing ntuple header has failed. ";
97 G4Exception(
"G4CsvNtupleManager::CreateNtupleFromBooking()",
110 <<
"Writing ntuple header has failed. ";
125 return ntuple->write_commented_header(
G4cout);
130 ntuple->write_hippo_header();
std::ostringstream G4ExceptionDescription
G4CsvNtupleManager(const G4AnalysisManagerState &state)
virtual void FinishTNtuple(NtupleDescriptionType *ntupleDescription) final
std::shared_ptr< G4CsvFileManager > fFileManager
G4GLOB_DLL std::ostream G4cout
G4bool fIsCommentedHeader
virtual void CreateTNtupleFromBooking(NtupleDescriptionType *ntupleDescription) final
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::vector< tools::wcsv::ntuple * > fNtupleVector
virtual void CreateTNtuple(NtupleDescriptionType *ntupleDescription, const G4String &name, const G4String &title) final
G4bool WriteHeader(NtupleType *ntuple) const
tools::ntuple_booking fNtupleBooking
G4GLOB_DLL std::ostream G4cerr