How are photoelectrons generated?
When an atom absorbs an X-ray photon, an electron can be ejected. The kinetic energy (KE) of the electron depends upon the photon energy (hν) and the binding energy (BE) of the electron (i.e., the energy required to remove the electron from the surface).