Linear accelerator for security, industrial and medical applications with rapid beam parameter variation. (June 2021)