Quite new to using the analysis manager in Geant4. Trying to use it to output energy deposition of hits in ntuples in a root file format. My executable builds without any errors, but when I use the command /run/beamOn to start a run I get the following issue, where a root file is opened, and then the executable is exited.
There are no errors or anything, the program just exits. I can’t imagine what the problem is, I’ve made sure to include the Write() and CloseFile() methods.
Any help would be much appreciated.