GPS rotation using rot1 and rot2

Good day!

I have some problems with GPS rotation:
I have collimator, source and detector along the Z axis. I want to rotate my source (cylinder) in the XY plane.
How I can do it using /gps/pos/rot1 and /gps/pos/rot2?