Typically, medical imaging is used to form a "virtual patient" for a computer-aided design procedure. A CT scan is often the primary image set for treatment planning while magnetic resonance imaging provides excellent secondary image set for soft tissue contouring. Positron emission tomography is less commonly used and reserved for cases where specific uptake studies can enhance planning target volume delineation. Modern treatment planning systems provide tools for multimodality image matching, also known as image coregistration or fusion. Treatment simulations are used to plan the geometric, radiological, and dosimetric aspects of the therapy using radiation transport simulations and optimization. For intensity modulated radiation therapy (IMRT), this process involves selecting the appropriate beam type (which may include photons, electrons and protons), energy (e.g. 6, 18 megaelectronvolt (MeV) photons) and physical arrangements. In brachytherapy planning involves selecting the appropriate catheter positions and source dwell times