33 #include "tools/waxml/begend"
144 std::ofstream* ntupleFile
146 if ( ntupleFile->fail() ) {
148 description <<
" " <<
"Cannot open file "
150 G4Exception(
"G4XmlFileManager::CreateNtupleFile()",
155 tools::waxml::begin(*ntupleFile);
156 ntupleDescription->
fFile = ntupleFile;
180 tools::waxml::end(*(ntupleDescription->
fFile));
181 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)
tools::ntuple_booking * fNtupleBooking
G4bool CreateNtupleFile(G4XmlNtupleDescription *ntupleDescription)
virtual G4bool WriteFile()
const G4AnalysisVerbose * GetVerboseL4() const
virtual G4bool CloseFile()
virtual G4bool OpenFile(const G4String &fileName)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4bool CloseNtupleFile(G4XmlNtupleDescription *ntupleDescription)
G4String GetFullFileName(const G4String &baseFileName="", G4bool isPerThread=true) const
const G4AnalysisVerbose * GetVerboseL1() const