It is the main cause of scattered radiation in a material. It occurs due to the interaction of the X-ray or gamma photon with the outermost valence electron at the atomic level. The resultant incident photon gets scattered as well as ejects the electron , which further ionizes other atoms. Therefore the Compton effect is a partial absorption process and as the original photon has lost energy, this is known as Compton shift .