34 #include "tools/waxml/begend"
36 using namespace G4Analysis;
116 if ( !
fHnFile.get() )
return true;
149 if ( ntupleFile->fail() ) {
152 description <<
" " <<
"Cannot open file "
154 G4Exception(
"G4XmlFileManager::CreateNtupleFile()",
159 tools::waxml::begin(*ntupleFile);
160 ntupleDescription->
fFile = ntupleFile;
176 if ( ! ntupleDescription->
fFile )
return true;
187 tools::waxml::end(*(ntupleDescription->
fFile));
188 ntupleDescription->
fFile->close();
virtual G4bool CloseFile() final
std::ostringstream G4ExceptionDescription
G4String GetNtupleFileName(const G4String &ntupleName) const
G4bool CloseNtupleFile(NtupleDescriptionType *ntupleDescription)
G4XmlFileManager(const G4AnalysisManagerState &state)
virtual G4bool WriteFile() final
G4String GetFullFileName(const G4String &baseFileName="", G4bool isPerThread=true) const
virtual G4bool OpenFile(const G4String &fileName) final
G4bool CreateNtupleFile(NtupleDescriptionType *ntupleDescription)
const G4AnalysisVerbose * GetVerboseL4() const
const G4AnalysisManagerState & fState
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::shared_ptr< std::ofstream > fHnFile
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
tools::ntuple_booking fNtupleBooking
const G4AnalysisVerbose * GetVerboseL1() const