A scintillating fiber dosimeter for radiotherapy.