Radiation detector response function calculation