CT uses radiation to produce 3D images of the body. It was originally used for oncology and cardiology but is now used more broadly. During a CT scan, x-rays pass through the body and are measured to construct images. There are several types of interactions between x-rays and matter, such as the photoelectric effect where an x-ray ejects an electron from an atom. X-rays are produced in an x-ray tube, where a stream of electrons accelerated toward a metal target produce x-rays through bremsstrahlung radiation. The x-ray tube is a key component of devices used for medical imaging and radiation therapy.