Define divergent beam using the GPS method(solved)

Hello friends. How can I define a point source in gps method that generates divergent beam? (Like the accelerator source)
Suppose theta = 45 and phi = 45 deg

Hi
It is all described in
http://geant4-userdoc.web.cern.ch/geant4-userdoc/UsersGuides/ForApplicationDeveloper/html/GettingStarted/generalParticleSource.html

Thanks for your response. I was able to generate a diverging beam using this code:

/gps/particle gamma
/gps/pos/type Plane
/gps/pos/shape Circle
/gps/pos/radius 0.05 cm
/gps/pos/centre 0. 0. 0. cm
/gps/ang/maxtheta 45. deg
/gps/ene/type Mono
/gps/ene/mono 0.5 MeV
/run/beamOn 1000