The dependence of the mean value of $v_2$ ($\langle v_2 \rangle$) on \pt{} for different particle species and centralities in Pb--Pb collisions at $\sqrt{s_{\mathrm{NN}}} = 5.02$ TeV. The vertical error bars and the filled boxes represent statistical and systematic uncertainties, respectively.