I am using Geant4 version 11.2.1
Before using the output.root file, I got the photon position, detector position etc
After adding the output.root, it will give error massage after the projection of beam.
"Detector Position: (-115,25,490)
Segmentation fault (core dumped)"
I have replaced g4root.hh to G4AnalysisManager.hh in run.hh. There is no compiling error. The error occurs during writing the output file.
please suggest me how to rectify the error.