Simulation of the formation of an electron ring by picosecond electron beams in a cusp-type magnetic system