Contributions to the systematic uncertainty of the isolated-photon cross sectionand their quadratic sum as a function of \ptg for $R=0.2$ in \pp collisions (bottom left frame) and two \PbPb collisions centrality classes: 0--10\% (top left frame) and 30--50\% (top right frame). Statistical uncertainty is also shown.