34 #include "tools/waxml/begend"
36 using namespace G4Analysis;
93 if ( fHnFile->fail() ) {
102 tools::waxml::begin(*fHnFile);
116 if ( ! fHnFile.get() )
return true;
124 tools::waxml::end(*fHnFile);
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();
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
const G4AnalysisManagerState & fState
std::ostringstream G4ExceptionDescription
G4String GetNtupleFileName(const G4String &ntupleName) const
G4XmlFileManager(const G4AnalysisManagerState &state)
virtual G4bool OpenFile(const G4String &fileName) final
virtual G4bool CloseFile() final
virtual G4bool WriteFile() final
const G4AnalysisVerbose * GetVerboseL4() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4bool CloseNtupleFile(NtupleDescriptionType *ntupleDescription)
G4bool CreateNtupleFile(NtupleDescriptionType *ntupleDescription)
tools::ntuple_booking fNtupleBooking
G4String GetFullFileName(const G4String &baseFileName="", G4bool isPerThread=true) const
const G4AnalysisVerbose * GetVerboseL1() const