Dear experts,
I would like to ask related to root output file using multithread mode.
I am modifiying radioprotection example in Geant4 version 10-06-patch-02 by inserting SOI detector inside water phantom.
The root output file will dividing depends on number of thread.
When I run it in single thread it got no problem but when changes to multithread mode some of root output file was empty and error.
I tried to run the radioprotection example with 100K primaries (with the run.mac macro) with Geant4 11.1 and do not see anything suspect in the ROOT output files.
The problem can be in your updates to the example. Also you are using quite old version of Geant4, but we did not had a similar problem report that would be fixed since 10.6.
To investigate more, we would need more details on your additions to the example.
Thank you so much for your reply and help.
I simulate 131 MeV proton beams with a DetectorConstruction.cc (19.0 KB) PhysicsList.cc (11.3 KB)
silicon bridge detector inside water in Geant4 version 10-06-patch-02
The details of my simulation as attached files.
I use 8 threads and founds the problem occurs when more than 1000 events recorded in detector, it is weird that some root output file are fine and some are corrupt.
As I wrote earlier, you are using quite old version of Geant4, and as your problem cannot be reproduced with the current version, it is highly probable, that it has been already fixed.