A linac machine uses electricity to form a stream of fast-moving subatomic particles. This creates high-energy radiation that may be used to treat cancer.