An efficient numerical tool for dose deposition prediction applied to synchrotron medical imaging and radiation therapy. (12th July 2013)