Dependence of the detector energy resolution for a NaI detector (squares) and a BGO detector (triangles).