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.1.1
Operating System:
Compiler/Version:
CMake Version:
—I used a small detector to simulate the process of particle collection in an open sky. The particle emission angle is random, but only a very small portion of the emitted particles reach the detector, which is a waste of time. Therefore, I wanted to control the termination area of particle emission or find a way to limit the particles from reaching a certain area during transmission, but I have not found a solution.