Both electrons and positive ions lose energy while passing through matter.
However, further down the undulator, the electrons will have lost ground compared to the light wave, and might no longer be sitting on the crest.
Secondary collisions cause subsequent electrons to lose energy before they reach ground level.
Also, electrons lose energy when they collide with atoms.
On the left side, it is usually at low temperature as the electrons lose its mobility due to loss in kinetic energy.
Upon striking the evaporation material, the electrons will lose their energy very rapidly.
The electrons lose energy due to bremsstrahlung at a rate times higher than protons do.
The electrons bumping into atoms lose energy in the form of heat as they travel.
The electron will eventually lose energy (by releasing a photon) and drop into the lower orbital.
You see, if you draw it too quickly, the chain breaks and the electrons lose their cohesion.