No output data on multithreading

Hello to the whole community,

The issue I’m having is that when I run the program in single-threaded mode, I get the output files, but it’s too slow for a large number of runs.

That’s why I switched to multithreading, but now I’m not getting any data in the output—even when I forced each thread to write to its own file, there’s still no data.

I don’t know where I went wrong in defining the data, because there are no compilation errors.

(Using Geant4 11.2.1, CMake 3.16, and GCC++ 12)"

Here’s the link to the compressed folder :