How to create a cone beam

Hello everyone,
I’m a newbie. I want to create a photon cone-beam along X-axis from a point source located O(0,0,0). I created a macro file as shown in the attached figure. Please check the macro file for me. After that could you help me to create a cone shape with 15 degrees of opening angle?. Thanks in advance.

documentation is here: Geant4 General Particle Source — Book For Application Developers 10.7 documentation

you will probably need something like

/gps/ang/type iso
/gps/ang/maxtheta 7.5 deg

and maybe rotate the reference coordinate system

/gps/ang/rot1 0 1 0
/gps/ang/rot2 0 0 1

just play around with the commands, I am not sure :slight_smile: