A Scintillating Fiber Dosimeter for Radiology and Brachytherapy with photodiode readout