Geant4 output suggestions

Geant4 Version: 11.3.2
Operating System: Ubuntu 24.04 LTS (Noble Numbat)
Compiler/Version: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
CMake Version: 3.28.3

Hello :slightly_smiling_face:
I’m trying to understand if it is convenient to move to HDF5 output format for my Geant4 application, the reason is that I’m not working specifically in HEP environment so I can have better integration with other tools.

On the other hand I’m trying to understand if this is requiring a lot of code modification (or also this format is handled by Geant4 behind the curtain, and so I can use the same writing logic ‘G4AnalysisManager’ but changing the DefaultFileType from “root” to “hdf5” )

And there are drawbacks for the multithreading part? Is this working similarly or is not supported?

Thanks in advance,
Michael

Changing the DefaultFileType to “hdf5” should be sufficient. See basic example B4, and extended example AnaEx01.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.