Dose calculations for external photon beams in radiotherapy Dose calculations for external photon beams in radiotherapy