Construct the distribution of the generated electrons

I need to plot the distribution of generated electrons when photons hit the scintillator plate. I don’t understand a bit how this can be implemented (the task is simple, but I’m new to Geant 4 and just learning). That is, in geometry definitionI make a plate from scintillator material, but how can I track the knocked out electrons? Tell me, please.