Magnetic resonance imaging and linear accelerator (MR-linac)