Cross sections at midrapidity for ${\rm c \overline{c}}$ production as a function of $\sqrt{s}$ in pp collisions. The coloured markers represent the measured midrapidity cross sections at $\sqrt{s}$ = 5.02, 7, and 13 TeV which are derived using either PYTHIA 6 (blue circles) or POWHEG (red squares) simulations . The systematic and statistical uncertainty of the data points are summed in quadrature and represented by vertical bars. The measurements in the dielectron analysis are compared to measurements performed with fully reconstructed charm hadrons ($\mathrm{H_{c}}$) at the same energies (open markers). In addition, measurements are compared to FONLL calculations (black solid line) with corresponding model uncertainties (dashed lines), with next-to-next-to-leading-order (NNLO) calculations (magenta) .