Alternatively, the charged particles might be electrons to which gamma rays or x-rays have transferred energy via the photoelectric effect, Compton scattering or pair production. Most of these gamma ray or x-ray interactions occur in the wall of the detector, but some also occur in the chamber fill gas. If the chamber wall is thin enough, these electrons might even originate in gamma ray or x-ray interactions outside the chamber.