Percentage depth dose

Dear Geant4 users,
I’m a new user and I need help. I want to calculate the percentage depth dose (PDD) in water phantom for X-rays. How can I do that? What is the simpliest way to do it? Where can I find example for this?
I’ll appriciate every help.

Kind regards,
Toth Arpad