Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!
Geant4 Version: 11
_Operating System:_windows 10
_Compiler/Version:_VS 2019
_CMake Version:_3.22