Left: raw yield as a function of the BDT selection and extracted contributions from prompt and non-prompt D$^{*+}$ mesons with $4 < p_{\rm T} < 6$ GeV/$c$ and $|y|0.8$ in the 30-50% centrality class. Right: measured fraction of prompt D$^{*+}$ mesons as a function of $p_{\rm T}$ in the 0--10% and 30--50% centrality classes. Only the statistical uncertainties are reported.