Left panel: prompt D-meson $\RAA$ (average of $\Dzero$, $\Dplus$, and $\Dstar$) as a function of $\pt$ measured in \PbPb collisions at $\sqrtsNN = 5.02 \TeV$ (2018 data sample) in the 0--10\% and 30--50\% centrality classes compared with published results in the 60--80\% centrality class (2015 data sample) and in \pPb collisions at the same centre-of-mass energy . Statistical (bars), systematic (boxes), and normalisation (shaded box around unity) uncertainties are shown. Right panel: prompt D-meson $\RAA$ in the 10\% most central \PbPb collisions at $\sqrtsNN= $5.02 TeV and 2.76 TeV compared to the $\Dzero$ $\RAA$ measured by the STAR collaboration in $\AuAu$ collisions at $\sqrtsNN= $200 GeV .