How to create a particle shower at a solid angle by using gps

Geant4 Version:_10.6
_Operating System:_Fedora 36
Plz help me !!!
How to create a particle shower at a user defined solid angle by using a gps ? The sources has been confined in a small plastic tube .