Let's understand how to convert electrons into photons