Open charm production in proton–proton collisions represents an important tool to investigate some of the most fundamental aspects of quantum chromodynamics, from the partonic mechanisms of heavy-quark production to the process of heavy-quark hadronisation. Over the last decade, the measurement of the production cross sections of charm mesons and baryons in proton–proton (pp) collisions was at the centre of a wide experimental effort at the Large Hadron Collider. Thanks to the complementarity of the different experiments, the production of charm hadrons was measured over a wide transverse momentum region and in different rapidity ranges. In this paper, the measurements of the charm hadrons D0\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$D^{0}$$\\end{document}, D∗+\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$D^{*+}$$\\end{document}, D+\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$D^{+}$$\\end{document}, Ds+\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$D^{+}_{s}$$\\end{document}, Λc+\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$\\Lambda _{c}^{+}$$\\end{document} and Ξc0\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$\\Xi _{c}^{0}$$\\end{document} performed by the ALICE, CMS and LHCb collaborations in pp collisions at the centre-of-mass energy s=5.02\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$\\sqrt{s}=5.02$$\\end{document} TeV are combined to determine the total charm quark production cross section σcc¯\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$\\sigma _{c\\bar{c}}$$\\end{document} in a novel data-driven approach. The resulting total cc¯\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$c\\overline{c}$$\\end{document} cross section is σcc¯(pp,5.02TeV)=8.34±0.22(stat.)-0.37+0.37(syst.)-0.46+0.36(extr.)-0+0.68(Ωc)mb.\\documentclass[12pt]{minimal} \\usepackage{amsmath} \\usepackage{wasysym} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{amsbsy} \\usepackage{mathrsfs} \\usepackage{upgreek} \\setlength{\\oddsidemargin}{-69pt} \\begin{document}$$\\begin{aligned} \\begin{aligned} \\sigma _{c\\overline{c}} ({\ extrm{pp}},5.02\\,{\ extrm{TeV}}) ={}&8.34 \\pm 0.22\\mathrm { (stat.) } {}^{+0.37}_{-0.37} \\mathrm { (syst.) } {}^{+0.36}_{-0.46} \\mathrm { (extr.) } {}^{+0.68}_{-0} (\\Omega _c) \\,{\ ext {mb}}. \\end{aligned} \\end{aligned}$$\\end{document}The measured charm hadron distributions and corresponding cross sections are compared with the most recent theoretical calculations.