36#include "tools/ntuple_booking"
58void G4XmlNtupleManager::CreateTNtupleFromBooking(
62 if ( ! fFileManager->CreateNtupleFile(ntupleDescription) )
return;
66 =
new tools::waxml::ntuple(
72void G4XmlNtupleManager::FinishTNtuple(
78 if ( ! fFileManager->GetFileName().size() )
return;
81 if ( ! ntupleDescription->
fNtuple ) {
82 CreateTNtupleFromBooking(ntupleDescription);
86 if ( ! ntupleDescription->
fNtuple ) {
88 description <<
"Creating ntuple has failed. ";
96 path.
append(fFileManager->GetNtupleDirectoryName());
100 fFileManager->LockDirectoryNames();
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4GLOB_DLL std::ostream G4cerr
G4String & append(const G4String &)
std::vector< tools::waxml::ntuple * > fNtupleVector
G4XmlNtupleManager(const G4AnalysisManagerState &state)
std::shared_ptr< TF > fFile
tools::ntuple_booking fNtupleBooking