34 #include "tools/waxml/begend"
115 if ( !
fHnFile.get() )
return true;
148 if ( ntupleFile->fail() ) {
150 description <<
" " <<
"Cannot open file "
152 G4Exception(
"G4XmlFileManager::CreateNtupleFile()",
157 tools::waxml::begin(*ntupleFile);
158 ntupleDescription->
fFile = ntupleFile;
182 tools::waxml::end(*(ntupleDescription->
fFile));
183 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)
std::shared_ptr< std::ofstream > fHnFile
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