Erratum: Eur. Phys. J. C (2018) 78:509 https://doi.org/10.1140/epjc/s10052-018-5950-6

In Fig. 3, the y axis titles were mistakenly written showing a single-differential cross section in either dimuon \(p_\textrm{T}\) or rapidity, when in fact the cross section is normalized by both the \(p_\textrm{T}\) and rapidity ranges used for a given measurement point. The corrected version is shown in the new Fig. 3 provided below.

Fig. 3
figure 1

Differential cross section of prompt \(\textrm{J}/\psi \)mesons (left) and \(\textrm{J}/\psi \)mesons from b hadrons (nonprompt \(\textrm{J}/\psi \)) (right) decaying into two muons as a function of dimuon \(p_\textrm{T}\)(upper) and rapidity (lower) in pp and \(\text {PbPb}\) collisions. The \(\text {PbPb}\) cross sections are normalised by \(T_{\text {AA}}\) for direct comparison. The bars (boxes) represent statistical (systematic) point-by-point uncertainties, while global uncertainties are written on the plots