Define accelerator disk shape

Hello,
I want to build an pill box cavity and the cell disk is circular shape. I think it can be created by sweeping a half of circle offset the beam axis. Can I have a similar Geant4 example (I need to know the commands) to show how to create a surface shape and then a volume through sweeping the surface?
Thanks.
Anna