Fraction of J/$\psi$ originating from $b$-hadron decays as a function of J/$\psi$ $p_{\rm T}$ in comparison with analogous measurements, also at midrapidity, in pp and p--Pb collisions by the ALICE and ATLAS collaborations . The statistical and systematic uncertainties of the measurements were added in quadrature.