1 Introduction

Measurements of open charm and beauty production in neutral current (NC) deep inelastic electronFootnote 1–proton scattering (DIS) at HERA provide important input for tests of the theory of strong interactions, quantum chromodynamics (QCD). Measurements at HERA [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24] have shown that heavy-flavour production in DIS proceeds predominantly via the boson-gluon-fusion process, \(\gamma g\rightarrow {\mathrm{Q}}\overline{\mathrm{Q}}\), where Q is the heavy quark. The cross section therefore depends strongly on the gluon distribution in the proton and the heavy-quark mass. This mass provides a hard scale for the applicability of perturbative QCD (pQCD). However, other hard scales are also present in this process: the transverse momenta of the outgoing quarks and the negative four momentum squared, \(Q^2\), of the exchanged photon. The presence of several hard scales complicates the calculation of heavy-flavour production in pQCD. Different approaches have been developed to cope with the multiple scale problem inherent in this process. In this paper, the massive fixed-flavour-number scheme (FFNS) [25,26,27,28,29,30,31,32,33,34,35,36] and different implementations of the variable-flavour-number scheme (VFNS) [37,38,39,40,41] are considered.

At HERA, different flavour tagging methods are applied for charm and beauty cross-section measurements: the full reconstruction of D or \(D^{*\pm }\) mesons  [1, 2, 4,5,6, 10,11,12, 15, 17, 20,21,22], which is almost exclusively sensitive to charm production; the lifetime of heavy-flavoured hadrons [7,8,9, 14, 23] and their semi-leptonic decays [13, 16, 19], both enabling the measurement of the charm and beauty cross section simultaneously. In general, the different methods explore different regions of the heavy-quark phase space and show different dependencies on sources of systematic uncertainties. Therefore, by using different tagging techniques a more complete picture of heavy-flavour production is obtained.

In this paper, a simultaneous combination of charm and beauty production cross-section measurements is presented. This analysis is an extension of the previous H1 and ZEUS combination of charm measurements in DIS [42], including new charm and beauty data [13, 14, 16, 19, 21,22,23] and extracting combined beauty cross sections for the first time. As a result, a single consistent dataset from HERA of reduced charm and beauty cross sections in DIS is obtained, including all correlations. This dataset covers the kinematic range of photon virtuality 2.5 GeV\(^2 \le Q^2 \le 2000\) GeV\(^2\) and Bjorken scaling variable \(3 \times 10^{-5} \le x_\mathrm{Bj} \le 5 \times 10^{-2}\).

The procedure follows the method used previously [42,43,44,45,46,47]. The correlated systematic uncertainties and the normalisation of the different measurements are accounted for such that one consistent dataset is obtained. Since different experimental techniques of charm and beauty tagging have been employed using different detectors and methods of kinematic reconstruction, this combination leads to a significant reduction of statistical and systematic uncertainties with respect to the individual measurements. The simultaneous combination of charm and beauty cross-section measurements reduces the correlations between them and hence also the uncertainties. The combined reduced charm cross sections of the previous analysis [42] are superseded by the new results presented in this paper.

The combined data are compared to theoretical predictions obtained in the FFNS at next-to-leading order (NLO, \(O(\alpha _s^2)\)) QCD using HERAPDF2.0 [48], ABKM09 [29, 30] and ABMP16 [32] parton distribution functions (PDFs), and to approximate next-to-next-to-leading order (NNLO, \(O(\alpha _s^3)\)) using ABMP16 [32] PDFs. In addition, QCD calculations in the RTOPT [37] VFNS at NLO and approximate NNLO are compared with the data. The NLO calculations are at \(O(\alpha _s^2)\) except for the massless parts of the coefficient functions, which are at \(O(\alpha _s)\); the NNLO calculations are one order of \(\alpha _s\) higher. A comparison is also made to predictions of two variants of the FONLL-C scheme [38,39,40] (\(O(\alpha _s^3)\) (NNLO) in the PDF evolution, \(O(\alpha _s^2)\) in all coefficient functions): the default scheme, which includes next-to-leading-log (NLL) resummation of quasi-collinear final state gluon radiation, and a variant which includes NLL low-x resummation in the PDFs and the matrix elements (NLLsx)  [41] in addition.

The new data are subjected to a QCD analysis together with the final inclusive DIS cross-section data from HERA [48] allowing for the determination at NLO of the running charm- and beauty-quark masses, as defined from the QCD Lagrangian in the modified minimum-subtraction (\(\overline{\mathrm{MS}}\)) scheme.

The paper is organised as follows. In Sect. 2, the reduced heavy-flavour cross section is defined and the theoretical framework is briefly introduced. The heavy-flavour tagging methods, the data samples and the combination method are presented in Sect. 3. The resulting reduced charm and beauty cross sections are presented in Sects. 4 and  5, where they are compared with theoretical calculations based on existing PDF sets and with existing predictions at NLO and at NNLO in the FFNS and VFNS. In Sect. 6, the NLO QCD analysis is described and the measurement of the running masses of the charm and beauty quarks in the \(\overline{\mathrm{MS}}\) scheme at NLO is presented. The conclusions are given in Sect. 7.

Table 1 Datasets used in the combination. For each dataset, the tagging method, the \(Q^2\) range, integrated luminosity (\(\mathcal{L}\)), centre-of-mass energy (\(\sqrt{s}\)) and the numbers of charm (\(N_c\)) and beauty (\(N_b\)) measurements are given. The tagging method VTX denotes inclusive measurements based on lifetime information using a silicon vertex detector. Charge conjugates are always implied for the particles given in the column ’Tagging’
Table 2 Reduced cross section for charm production, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), obtained by the combination of H1 and ZEUS measurements. The cross-section values are given together with the statistical \((\delta _{\mathrm{stat}})\) and the uncorrelated \((\delta _{\mathrm{uncor}})\) and correlated \((\delta _{\mathrm{cor}})\) systematic uncertainties. The total uncertainties \((\delta _{\mathrm{tot}})\) are obtained through adding the statistical, uncorrelated and correlated systematic uncertainties in quadrature

2 Heavy-flavour production in DIS

In this paper, charm and beauty production via NC DIS are considered. In the kinematic range explored by the analysis of the data presented here, \(Q^2\) is much smaller than \(M_Z^2\), such that the virtual photon exchange dominates. Contributions from Z exchange and \(\gamma Z\) interference are small and therefore neglected. The cross section for the production of a heavy flavour of type Q, with Q being either beauty, b, or charm, c, may then be written in terms of the heavy-flavour contributions to the structure functions \(F_2\) and \(F_{\mathrm{L}}\), \(F^{\mathrm{Q}}\overline{\mathrm{Q}}_2(x_{\mathrm{Bj}},Q^2)\) and \(F^{\mathrm{Q}}\overline{\mathrm{Q}}_{\mathrm{L}}(x_{\mathrm{Bj}},Q^2)\), as

$$\begin{aligned} \frac{ {\mathrm{d}}^2 \sigma ^{{\mathrm{Q}}\overline{\mathrm{Q}}}}{{\mathrm{d}}x_{\mathrm{Bj}} {\mathrm{d}}Q^2}= & \frac{2\pi \alpha ^2(Q^2)}{x_{\mathrm{Bj}}Q^4} ( [1+(1-y)^2] \\ &\times\, F^{{\mathrm{Q}}\overline{\mathrm{Q}}}_2 (x_{\mathrm{Bj}},Q^2) -y^2F_{\mathrm{L}}^{{\mathrm{Q}}\overline{\mathrm{Q}}} (x_{\mathrm{Bj}},Q^2) )\ , \end{aligned}$$
(1)

where y denotes the lepton inelasticity. The superscripts \({\mathrm{Q}}{\overline{\mathrm{Q}}}\) indicate the presence of a heavy quark pair in the final state. The cross section \({\mathrm{d}}^2 \sigma^{{\mathrm{Q}}\overline{\mathrm{Q}}}/{\mathrm{d}x_{\mathrm{Bj}} {\mathrm{d}}Q^2}\) is given at the Born level without QED and electroweak radiative corrections, except for the running electromagnetic coupling, \(\alpha (Q^2)\).

In this paper, the results are presented in terms of reduced cross sections, defined as follows:

$$\begin{aligned} \sigma_{\mathrm{red}}^{{\mathrm{Q}}\overline{\mathrm{Q}}}= & \frac{\mathrm{d}^2\sigma ^{{\mathrm{Q}}\overline{\mathrm{Q}}}}{{\mathrm{d}}x_{\mathrm{Bj}} {\mathrm{d}}Q^2} \cdot \frac{x_{\mathrm{Bj}}Q^4}{2\pi \alpha ^2(Q^2)\,(1+(1-y)^2)}\\= & F_2^{{\mathrm{Q}}\overline{\mathrm{Q}}}-\frac{y^2}{1+(1-y)^2}F^{{\mathrm{Q}}\overline{\mathrm{Q}}}_{\mathrm{L}}. \end{aligned}$$
(2)

In the kinematic range addressed, the expected contribution from the exchange of longitudinally polarised photons, \(F_{\mathrm{L}}^{{\mathrm{Q}}\overline{Q}}\), is small. In charm production it is expected to reach a few per cent at high y [49]. The structure functions \(F_2^{{\mathrm{Q}}\overline{Q}}\) and \(F_{\mathrm{L}}^{{\mathrm{Q}}\overline{Q}}\) are calculated to the same order (in most cases \(O(\alpha _s^2)\)) in all calculations explicitly performed in this paper.

Various theoretical approaches can be used to describe heavy-flavour production in DIS. At values of \(Q^2\) not very much larger than the heavy-quark mass, \(m_{\mathrm{Q}}\), heavy flavours are predominantly produced dynamically by the photon-gluon-fusion process. The creation of a \({\mathrm{Q}}\overline{Q}\) pair sets a lower limit of \(2m_{\mathrm{Q}}\) to the mass of the hadronic final state. This low mass cutoff affects the kinematics and the higher order corrections in the phase space accessible at HERA. Therefore, a careful theoretical treatment of the heavy-flavour masses is mandatory for the pQCD analysis of heavy-flavour production as well as for the determination of the PDFs of the proton from data including heavy flavours.

In this paper, the FFNS is used for pQCD calculations for the corrections of measurements to the full phase space and in the QCD fits. In this scheme, heavy quarks are always treated as massive and therefore are not considered as partons in the proton. The number of (light) active flavours in the PDFs, \(n_f\), is set to three and heavy quarks are produced only in the hard-scattering process. The leading-order (LO) contribution to heavy-flavour production (\(O(\alpha _s)\) in the coefficient functions) is the photon-gluon-fusion process. The NLO massive coefficient functions using on-shell mass renormalisation (pole masses) [25,26,27,28] were adopted by many global QCD analysis groups [31, 33,34,35], providing PDFs derived from this scheme. They were extended to the \(\overline{\mathrm{MS}}\) scheme [30], using scale dependent (running) heavy-quark masses. The advantages of performing heavy-flavour calculations in the \(\overline{\mathrm{MS}}\) scheme are reduced scale uncertainties and improved theoretical precision of the mass definition [24, 36]. In all FFNS heavy-flavour calculations presented in this paper, the default renormalisation scale \(\mu _r\) and factorisation scale \(\mu _f\) are set to \(\mu _r=\mu _f=\sqrt{Q^2+4m_\mathrm{Q}^2}\), where \(m_\mathrm{Q}\) is the appropriate pole or running mass.

For the extraction of the combined reduced cross sections of charm and beauty production, it is necessary to predict inclusive cross sections as well as exclusive cross sections with certain phase-space restrictions applied. For this purpose, the FFNS at NLO is used to calculate inclusive [25,26,27,28] and exclusive [50] quantities in the pole-mass scheme. This is currently the only scheme for which exclusive NLO calculations are available.

The QCD analysis at next-to-leading orderFootnote 2 including the extraction of the heavy-quark running masses is performed in the FFNS with the OPENQCDRAD programme [31, 51, 52] in the xFitter (former HERAFitter) framework [53]. In OPENQCDRAD, heavy-quark production is calculated either using the \( {\overline{\mathrm{MS}}}\) or the pole-mass scheme of heavy-quark masses. In this paper, the \({\overline{\mathrm{MS}}}\) scheme is adopted.

Predictions from different variants of the VFNS are also compared to the data. The expectations from the NLO and approximate NNLO RTOPT [37] implementation as used for HERAPDF2.0 [48] are confronted with both the charm and beauty cross sections while the FONLL-C calculations [39,40,41] are compared to the charm data only. In the VFNS, heavy quarks are treated as massive at small \(Q^2\) up to \(Q^2\approx O(m_\mathrm{Q}^2)\) and as massless at \(Q^2\gg m_\mathrm{Q}^2\), with interpolation prescriptions between the two regimes which avoid double counting of common terms. In the FONLL-C calculations, the massive part of the charm coefficient functions is treated at NLO (\(O(\alpha _s^2)\)) while the massless part and the PDFs are treated at NNLO (\(O(\alpha _s^2)\) and \(O(\alpha _s^3\)), respectively). In addition to the default FONLL-C scheme the NLLsx variant [41] is considered.

Table 3 Reduced cross section for beauty production, \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), obtained by the combination of H1 and ZEUS measurements. The cross-section values are given together with the statistical \((\delta _\mathrm{stat})\) and the uncorrelated \((\delta _\mathrm{uncor})\) and correlated \((\delta _\mathrm{cor})\) systematic uncertainties. The total uncertainties \((\delta _\mathrm{tot})\) are obtained through adding the statistical, uncorrelated and correlated systematic uncertainties in quadrature
Table 4 The \(\chi ^2\), p values and number of data points of the charm and beauty data with respect to the NLO and approximate NNLO calculations using various PDFs as described in the text. The measurements at \(Q^2=2.5~\hbox {GeV}^2\) are excluded in the calculations of the \(\chi ^2\) values for the NNPDF3.1sx predictions, by which the number of data points is reduced to 47, as detailed in the caption of Fig. 12

3 Combination of H1 and ZEUS measurements

The different charm- and beauty-tagging methods exploited at HERA enable a comprehensive study of heavy-flavour production in NC DIS.

Using fully reconstructed D or \(D^{*\pm }\) mesons gives the best signal-to-background ratio for measurements of the charm production process. Although the branching ratios of beauty hadrons to D and \(D^{*\pm }\) mesons are large, the contributions from beauty production to the observed D or \(D^{*\pm }\) meson samples are small for several reasons. Firstly, beauty production in ep collisions is suppressed relative to charm production by a factor 1 / 4 due to the quark’s electric charge coupling to the photon. Secondly, the photon-gluon-fusion cross section depends on the invariant mass of the outgoing partons, \(\hat{s}\), which has a threshold value of \(4m_\mathrm{Q}^2\). Because the beauty-quark mass, \(m_b\), is about three times the charm-quark mass, \(m_c\), beauty production is significantly suppressed. Thirdly, in beauty production D and \(D^{*\pm }\) mesons originate from the fragmentation of charm quarks that are produced by the weak decay of B mesons. Therefore the momentum fraction of the beauty quark carried by the D or \(D^{*\pm }\) meson is small, so that the mesons often remain undetected.

Fully inclusive analyses based on the lifetime of the heavy-flavoured mesons are sensitive to both charm and beauty production. Although the first two reasons given above for the suppression of beauty production relative to charm production also hold in this case, sensitivity to beauty production can be enhanced by several means. The proper lifetime of B mesons is on average a factor of 2 to 3 that of D mesons [59]. Therefore, the charm and beauty contributions can be disentangled by using observables directly sensitive to the lifetime of the decaying heavy-flavoured hadrons. The separation can be further improved by the simultaneous use of observables sensitive to the mass of the heavy-flavoured hadron: the relative transverse momentum, \(p_\mathrm{T}^\mathrm{rel}\), of the particle with respect to the flight direction of the decaying heavy-flavoured hadron; the number of tracks with lifetime information; the invariant mass calculated from the charged particles attached to a secondary-vertex candidate.

The analysis of lepton production is sensitive to semi-leptonic decays of both charm and beauty hadrons. When taking into account the fragmentation fractions of the heavy quarks as well as the fact that in beauty production leptons may originate both from the \(b\rightarrow c\) and the \(c\rightarrow s\) transitions, the semi-leptonic branching fraction of B mesons is about twice that of D mesons [59]. Because of the large masses of B mesons and the harder fragmentation of beauty quarks compared to charm quarks, leptons originating directly from the B decays have on average higher momenta than those produced in D meson decays. Therefore, the experimentally observed fraction of beauty-induced leptons is enhanced relative to the observed charm-induced fraction. Similar methods as outlined in the previous paragraph are then used to further facilitate the separation of the charm and beauty contributions on a statistical basis.

While the measurement of fully reconstructed D or \(D^{*\pm }\) mesons yields the cleanest charm production sample, it suffers from small branching fractions and significant losses, because all particles from the D or \(D^{*\pm }\) meson decay have to be measured. Fully inclusive and semi-inclusive-lepton analyses, which are sensitive to both charm and beauty production, profit from larger branching fractions and better coverage in polar angle. However, they are affected by a worse signal to background ratio and the large statistical correlations between charm and beauty measurements inherent to these methods.

Table 5 List of uncertainties for the charm- and beauty-quark mass determination. The PDF parameterisation uncertainties not shown have no effect on \(m_c(m_c)\) and \(m_b(m_b)\)
Fig. 1
figure 1

The pull distribution for the combination of the charm and beauty reduced cross sections. The solid line shows a fit of a Gaussian to the pull distribution. The mean and the width quoted are the results from the fit

Fig. 2
figure 2

Combined measurements of the reduced charm production cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), (full circles) as a function of \(x_\mathrm{Bj}\) for different values of \(Q^2\). The inner error bars indicate the uncorrelated part of the uncertainties and the outer error bars represent the total uncertainties. The input measurements with their total uncertainties are also shown by different markers. For better visibility the individual input data are slightly displaced in \(x_\mathrm{Bj}\) towards larger values

Fig. 3
figure 3

Combined measurements of the reduced beauty production cross sections, \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), (full circles) as a function of \(x_\mathrm{Bj}\) for different values of \(Q^2\). The inner error bars indicate the uncorrelated part of the uncertainties and the outer error bars represent the total uncertainties. The input measurements with their total uncertainties are also shown by different markers. For better visibility the individual input data are slightly displaced in \(x_\mathrm{Bj}\) towards larger values

3.1 Data samples

The H1 [60,61,62] and ZEUS [63] detectors were general purpose instruments which consisted of tracking systems surrounded by electromagnetic and hadronic calorimeters and muon detectors, ensuring close to \(4\pi \) coverage of the ep interaction region. Both detectors were equipped with high-resolution silicon vertex detectors [64, 65].

The datasets included in the combination are listed in Table 1. The data have been obtained from both the HERA I (in the years 1992–2000) and HERA II (in the years 2003–2007) data-taking periods. The combination includes measurements using different tagging techniques: the reconstruction of particular decays of D mesons [4, 6, 10, 12, 15, 20,21,22] (datasets \(2-7, 9, 10\)), the inclusive analysis of tracks exploiting lifetime information [14, 23] (datasets 1, 11) and the reconstruction of electrons and muons from heavy-flavour semileptonic decays [13, 16, 19] (datasets 8, 12, 13).

The datasets 1–8 have already been used in the previous combination [42] of charm cross-section measurements, while the datasets 9–13 are included for the first time in this analysis. Dataset 9 of the current analysis supersedes one dataset of the previous charm combination (dataset 8 in Table 1 of [42]), because the earlier analysis was based on a subset of only about \(30\,\%\) of the final statistics collected during the HERA II running period.

For the inclusive lifetime analysis [14] (dataset 1) the reduced cross sections \(\sigma _{\mathrm{red}}^{ c\overline{c}}\) and \(\sigma _{\mathrm{red}}^{ b\overline{b}}\) are taken directly from the publication. For all other measurements, the combination starts from the measured double-differential visible cross sections \(\sigma _\mathrm{vis,bin}\) in bins of \(Q^2\) and either \(x_\mathrm{Bj}\) or y, where the visibility is defined by the particular range of transverse momentum \(p_T\) and pseudorapidityFootnote 3 \(\eta \) of the D meson, lepton or jet as given in the corresponding publications. In case of inclusive D meson cross sections, small beauty contributions as estimated in the corresponding papers are subtracted. Consistent with Eq. (1), all published visible cross-section measurements are corrected to Born level apart from the running of \(\alpha \), i.e. they include corrections for radiation of real photons from the incoming and outgoing lepton using the HERACLES programme [66]. QED corrections to the incoming and outgoing quarks are judged to be negligible and are therefore not considered. All cross sections are updated using the most recent hadron decay branching ratios [59].

Fig. 4
figure 4

Reduced cross sections as a function of \(x_\mathrm{Bj}\) at \(Q^2 = 32\) GeV\(^2\) for a charm and b beauty production. The combined cross sections (full circles) are compared to the input measurements shown by different markers. For the combined measurements, the inner error bars indicate the uncorrelated part of the uncertainties and the outer error bars represent the total uncertainties. For better visibility the individual input data are slightly displaced in \(x_\mathrm{Bj}\) towards larger values

Fig. 5
figure 5

Combined reduced cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), (full circles) as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\), compared to the results of the previous combination [42], denoted as ‘HERA 2012’ (open circles)

Fig. 6
figure 6

Combined reduced charm cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), (full circles) as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\), compared to the NLO QCD FFNS predictions based on the HERAPDF2.0 FF3A (solid lines), ABKM09 (dashed lines) and ABMP16 (dotted lines) PDF sets. Also shown is the approximate NNLO prediction using ABMP16 (dashed-dotted lines). The shaded bands on the HERAPDF2.0 FF3A predictions show the theory uncertainties obtained by adding PDF, scale and charm-quark mass uncertainties in quadrature

Fig. 7
figure 7

Combined reduced beauty cross sections, \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), (full circles) as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\), compared to the NLO QCD FFNS predictions based on the HERAPDF2.0 FF3A (solid lines) and ABMP16 (dotted lines) PDF sets. Also shown is the approximate NNLO prediction using ABMP16 (dashed-dotted lines). The shaded bands on the HERAPDF2.0 FF3A predictions show the theory uncertainties obtained by adding PDF, scale and beauty-quark mass uncertainties in quadrature

Fig. 8
figure 8

Ratio of reduced charm cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\) for the combined data (full circles) and the NLO (dashed and dotted lines) and approximate NNLO (dashed-dotted lines) QCD FFNS predictions, obtained using various PDFs, as in Fig. 6, with respect to the FFNS NLO predictions, \(\sigma ^{ c\overline{c}\ {\mathrm{nom}}}_{\mathrm{red}}\), obtained using HERAPDF2.0 FF3A (solid lines with shaded uncertainty bands)

3.2 Extrapolation of visible cross sections to \({\varvec{\sigma }}_{\mathrm{red}}^{{{\rm Q}\overline{\rm Q}}}\)

Except for dataset 1 of Table 1, for which only measurements expressed in the full phase space are available, the visible cross sections \(\sigma _{\mathrm{vis, bin}}\) measured in a limited phase space are converted to reduced cross sections \(\sigma _{\mathrm{red}}^{{\rm Q}\overline{\rm Q}}\) using a common theory. The reduced cross section of a heavy flavour Q at a reference (\(x_{\mathrm{Bj}}, Q^2\)) point is extracted according to

$$\begin{aligned} \sigma _{\mathrm{red}}^{{\rm Q}\overline{\rm Q}}(x_{\mathrm{Bj}},Q^2)=\sigma _{\mathrm{vis, bin}} \frac{\sigma _{\mathrm{red}}^{{\mathrm{Q}}\overline{\mathrm{Q}}, th}(x_\mathrm{Bj},Q^2)}{\sigma ^{\mathrm{th}}_{\mathrm{vis, bin}}}. \end{aligned}$$
(3)

The programme for heavy-quark production in DIS, HVQDIS [50], is used with running \(\alpha \) to calculate the theory predictions for \(\sigma _{\mathrm{red}}^{{\mathrm{Q}}\overline{\mathrm{Q}}, th}(x_{\mathrm{Bj}},Q^2)\) and \(\sigma ^\mathrm{th}_\mathrm{vis, bin}\) in the NLO FFNS. Since the ratio in Eq. (3) describes the extrapolation from the visible phase space in \(p_T\) and \(\eta \) of the heavy-flavour tag to the full phase space, only the shape of the cross-section predictions in \(p_T\) and \(\eta \) is relevant for the corrections, while theory uncertainties related to normalisation cancel.

In pQCD, \(\sigma _\mathrm{red}^\mathrm{th}\) can be written as a convolution integral of proton PDFs with hard matrix elements. For the identification of heavy-flavour production, however, specific particles used for tagging have to be measured in the hadronic final state. This requires that in the calculation of \(\sigma _\mathrm{vis}^\mathrm{th}\), the convolution includes the proton PDFs, the hard matrix elements and the fragmentation functions. In the case of the HVQDIS programme, non-perturbative fragmentation functions are used. The different forms of the convolution integrals for \(\sigma _\mathrm{red}^\mathrm{th}\) and \(\sigma _\mathrm{vis}^\mathrm{th}\) necessitate the consideration of different sets of theory parameters.

The following parameters are used in these NLO calculations and are varied within the quoted limits to estimate the uncertainties in the predictions introduced by these parameters:

  • The renormalisation and factorisation scales are taken as \(\mu _\mathrm{r}=\mu _\mathrm{f}=\sqrt{Q^2+4m_\mathrm{Q}^2}\). The scales are varied simultaneously up or down by a factor of two.

  • The pole masses of the charm and beauty quarks are set to \(m_c=1.50 \pm 0.15\) GeV, \(m_b=4.50 \pm 0.25\) GeV, respectively. These variations also affect the values of the renormalisation and factorisation scales.

  • For the strong coupling constant, the value \(\alpha _s^{n_f=3}(M_Z) = 0.105 \pm 0.002\) is chosen, which corresponds to \(\alpha _s^{n_f=5}(M_Z) = 0.116 \pm 0.002\).

  • The proton PDFs are described by a series of FFNS variants of the HERAPDF1.0 set [42, 45] at NLO determined within the xFitter framework. No heavy-flavour measurements were included in the determination of these PDF sets. These PDF sets are those used in the previous combination [42] which were calculated for \(m_c=1.5\pm 0.15\) GeV,  \(\alpha _s^{n_f=3}(M_Z) = 0.105 \pm 0.002\) and simultaneous variations of the renormalisation and factorisation scales up or down by a factor two. For the determination of the PDFs, the beauty-quark mass was fixed at \(m_b=4.50\) GeV. The renormalisation and factorisation scales were set to \(\mu _r=\mu _f=Q\) for the light flavours and to \(\mu _r=\mu _f=\sqrt{Q^2+4m_\mathrm{Q}^2}\) for the heavy flavours. For all parameter settings considered, the respective HERAPDF1.0 set is used. As a cross check of the extrapolation procedure, the cross sections are also evaluated with the 3-flavour NLO versions of the HERAPDF2.0 set (FF3A) [48]; the differences are found to be smaller than the PDF-related cross-section uncertainties.

For the calculation of \(\sigma _\mathrm{vis}^\mathrm{th}\), assumptions have been made on the fragmentation of the heavy quarks into particular hadrons and, when necessary, on the subsequent decays of the heavy flavoured hadrons into the particles used for tagging. In the calculation of \(\sigma _\mathrm{vis}^\mathrm{th}\) the following settings and parameters are used in addition to those needed for \(\sigma _\mathrm{red}^\mathrm{th}\) and are varied within the quoted limits:

  • The charm fragmentation function is described by the Kartvelishvili function [67] controlled by a single parameter \(\alpha _K\) to describe the longitudinal fraction of the charm-quark momentum transferred to the D or \(D^{*\pm }\) meson. Depending on the invariant mass \(\hat{s}\) of the outgoing parton system, different values of \(\alpha _K\) and their uncertainties are used as measured at HERA [68, 69] for \(D^{*\pm }\) mesons. The variation of \(\alpha _K\) as a function of \(\hat{s}\) observed in \(D^{*\pm }\) measurements has been adapted to the longitudinal-fragmentation function of ground state D mesons not originating from \(D^{*\pm }\) decays [42]. Transverse fragmentation is modelled by assigning to the charmed hadron a transverse momentum \(k_T\) with respect to the direction of the charmed quark with an average value of \(\langle k_T\rangle =0.35\pm 0.15\) GeV [42].

  • The charm fragmentation fractions of a charm quark into a specific charmed hadron and their uncertainties are taken from [70].

  • The beauty fragmentation function is parameterised according to Peterson et al. [71] with \(\epsilon _{b}=0.0035 \pm 0.0020\) [72].

  • The branching ratios of D and \( D^{*\pm }\) mesons into the specific decay channels analysed and their uncertainties are taken from [59].

  • The branching fractions of semi-leptonic decays of heavy quarks to a muon or electron and their uncertainties are taken from [59].

  • The decay spectra of leptons originating from charmed hadrons are modelled according to [73].

  • The decay spectra for beauty hadrons into leptons are taken from the PYTHIA[74] Monte Carlo (MC) programme, mixing direct semi-leptonic decays and cascade decays through charm according to the measured branching ratios [59]. It is checked that the MC describes BELLE and BABAR data [75, 76] well.

  • When necessary for the extrapolation procedure, parton-level jets are reconstructed using the same clustering algorithms as used on detector level, and the cross sections are corrected for jet-hadronisation effects using corrections derived in the original papers [16, 23].Footnote 4

While the central values for the extrapolation factors \({\sigma _{\mathrm{red}}^\mathrm{Q\overline{Q}, th}(x_{\mathrm{Bj}},Q^2)}/{\sigma ^{\mathrm{th}}_{\mathrm{vis, bin}}}\) (see Eq. 3) are obtained in the FFNS pole-mass scheme at NLO, their uncertainties are calculated such that they should cover potential deviations from the unknown ‘true’ QCD result. The resulting reduced cross sections, with these uncertainties included, thus can be compared to calculations in any QCD scheme to any order.

Fig. 9
figure 9

Ratio of reduced beauty cross sections, \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\) for the combined data (full circles) and the NLO (dashed and dotted lines) and approximate NNLO (dashed-dotted lines) QCD FFNS predictions, obtained using the same PDF sets as in Fig. 7, with respect to the FFNS NLO predictions, \(\sigma ^{ b\overline{b}\ {\mathrm{nom}}}_{\mathrm{red}}\), obtained using HERAPDF2.0 FF3A (solid lines with shaded uncertainty bands)

Fig. 10
figure 10

Ratio of reduced charm cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\) for the combined data (full circles) and the NLO (dashed-dotted lines) and approximate NNLO (dashed lines) VFNS predictions, obtained using the respective HERAPDF2.0 PDF sets, with respect to the FFNS NLO predictions, \(\sigma ^{ c\overline{c}\ {\mathrm{nom}}}_{\mathrm{red}}\), obtained using HERAPDF2.0 FF3A (solid lines with shaded uncertainty bands). The uncertainties for the VFNS predictions (not shown) are of similar size to those presented for the FFNS calculation

Fig. 11
figure 11

Ratio of reduced beauty cross sections, \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\) for the combined data (full circles) and the NLO (dashed-dotted lines) and approximate NNLO (dashed lines) VFNS predictions, obtained using the respective HERAPDF2.0 PDF sets, with respect to the FFNS NLO predictions, \(\sigma ^{ b\overline{b}\ {\mathrm{nom}}}_{\mathrm{red}}\), obtained using HERAPDF2.0 FF3A (solid lines with shaded uncertainty bands). The uncertainties for the VFNS predictions (not shown) are of similar size to those presented for the FFNS calculation

Fig. 12
figure 12

Ratio of reduced charm cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\) for the combined data (full circles) and the NNLO VFNS predictions of the NNPDF group with respect to the FFNS predictions, \(\sigma ^{ c\overline{c}\ {\mathrm{nom}}}_{\mathrm{red}}\), obtained using HERAPDF2.0 FF3A (solid lines with shaded uncertainty bands). Results from two different calculations are shown: without (FONLL-C, dotted lines with uncertainty bands) and with low-x resummation (FONLL-C+NLLsx, dashed lines). For the calculations the NNPDF3.1sx PDF set is used. For better clarity of the presentation the uncertainties of the FONLL+NLLsx calculations are not shown. These are in size similar to those shown for the FONLL calculations. No FONLL predictions based on NNPDF3.1sx are shown at \(Q^2=2.5~\hbox {GeV}^2\) because this value lies below the starting scale of the QCD evolution in the calculation (\(2.6~\hbox {GeV}^2\))

Fig. 13
figure 13

Parton density functions \(xf(x,Q^2)\) at the starting scale \(\mu ^2_\mathrm{f} = \mu ^2_\mathrm{f,0}=1.9~\hbox {GeV}^2\) with \(f=u_v,d_v,g,\Sigma \) for the valence up quark (a), the valence down quark (b), the gluon (c) and the sea quarks (d) of HERAPDF-HQMASS (solid dark lines) and obtained from the fit to the combined inclusive data only (light grey lines). The experimental/fit uncertainties obtained from the fit to inclusive data only are indicated by the hatched bands. For better visibility the uncertainties for HERAPDF-HQMASS, which are of similar size, are not shown

Fig. 14
figure 14

Combined reduced charm cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), (full circles) as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\), compared to the NLO QCD FFNS predictions based on HERAPDF-HQMASS (dashed lines) and on HERAPDF2.0 FF3A (solid lines). The shaded bands on the HERAPDF2.0 FF3A predictions show the theory uncertainties obtained by adding PDF, scale and charm-quark mass uncertainties in quadrature

Fig. 15
figure 15

Combined reduced beauty cross sections, \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), (full circles) as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\), compared to the NLO QCD FFNS predictions based on HERAPDF-HQMASS (dashed lines) and on HERAPDF2.0 FF3A (solid lines). The shaded bands on the predictions using the fitted PDF set show the theory uncertainties obtained by adding PDF, scale and beauty-quark mass uncertainties in quadrature

Fig. 16
figure 16

Ratio of reduced charm cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\) for the combined data (full circles) and the NLO FFNS predictions using HERAPDF-HQMASS (dashed lines) with respect to the reference cross sections, \(\sigma ^{ c\overline{c}\ {\mathrm{nom}}}_{\mathrm{red}}\), based on HERAPDF2.0 FF3A (solid lines with uncertainty bands)

Fig. 17
figure 17

Ratio of reduced beauty cross sections, \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\) for the combined data (full circles) and the NLO FFNS predictions using HERAPDF-HQMASS (dashed lines) with respect to the reference cross sections, \(\sigma ^{ b\overline{b}\ {\mathrm{nom}}}_{\mathrm{red}}\), based on HERAPDF2.0 FF3A (solid lines with uncertainty bands)

3.3 Combination method

The quantities to be combined are the reduced charm and beauty cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \)  and \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), respectively. The combined cross sections are determined at common (\(x_\mathrm{Bj} , Q^2\)) grid points. For \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), the grid is chosen to be the same as in [42]. The results are given for a centre-of-mass energy of \(\sqrt{s}=318\) GeV. When needed, the measurements are transformed to the common grid \((x_\mathrm{Bj} ,Q^2)\) points using inclusive NLO FFNS calculations [25,26,27,28]. The uncertainties on the resulting scaling factors are found to be negligible.

The combination is based on the \(\chi ^2\)-minimisation procedure [43] used previously [42, 44, 45, 48]. The total \(\chi ^2\) is defined as

$$\begin{aligned}&\chi ^2_\mathrm{exp}\left( \varvec{m},\varvec{b}\right) \nonumber \\&\quad = \sum _{e}\ \left[ \sum _{i} \frac{\left( m^i-\sum \nolimits _j\gamma _j^{\ i,e}m^ib_j-\mu ^{i,e}\right) ^2}{\left( \mu ^{i,e}\cdot \delta _{i,e,\mathrm{stat}}\right) ^2+\left( m^i\cdot \delta _{i,e,\mathrm{uncorr}}\right) ^2} \right] + \sum _j{b_j}^2. \end{aligned}$$
(4)

The three sums run over the different input datasets e, listed in Table 1, the (\(x_\mathrm{Bj} , Q^2\)) grid points i, for which the measured cross sections \(\mu ^{i,e}\) are combined to the cross sections \(m^i\), and the sources j of the shifts \(b_j\) in units of standard deviations of the correlated uncertainties. The correlated uncertainties comprise the correlated systematic uncertainties and the statistical correlation between the charm and beauty cross-section measurements. The quantities \(\gamma _j^{\ i,e}\), \(\delta _{i,e,\mathrm{stat}}\) and \(\delta _{i,e,\mathrm{uncorr}}\) denote the relative correlated systematic, relative statistical and relative uncorrelated systematic uncertainties, respectively. The components of the vector \(\varvec{m}\) are the combined cross sections \(m^i\) while those of the vector \(\varvec{b}\) are the shifts \(b_j\).

In the present analysis, the correlated and uncorrelated systematic uncertainties are predominantly of multiplicative nature, i.e. they are proportional to the expected cross sections \(m^i\). The statistical uncertainties are mainly background dominated and thus are treated as constant. All experimental systematic uncertainties are treated as independent between H1 and ZEUS. For the datasets 1, 8 and 11 of Table 1, statistical correlations between charm and beauty cross sections are accounted for as reported in the original papers. Where necessary, the statistical correlation factors are corrected to take into account differences in the kinematic region of the charm and beauty measurements (dataset 11) or binning schemes (dataset 1), using theoretical predictions calculated with the HVQDIS programme. The consistent treatment of the correlations of statistical and systematic uncertainties, including the correlations between the charm and beauty data sets where relevant, yields a significant reduction of the overall uncertainties of the combined data, as detailed in the following section.

Fig. 18
figure 18

Ratio of the combined reduced cross sections, a \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \)and b \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), to the respective NLO FFNS cross-section predictions \(\sigma _\mathrm{red}^\mathrm{nom}\), based on HERAPDF-HQMASS, as a function of the partonic \(\langle x\rangle \) for different values of \(Q^2\)

Fig. 19
figure 19

The values of \(\chi ^2\) per degree of freedom of the QCD fit to the inclusive and heavy-flavour data: (triangles) for the heavy-flavour data only and (dots) for the inclusive plus heavy-flavour data when including in the fit only inclusive data with \(x_\mathrm{Bj}\ge x_\mathrm{Bj,min}\)

Fig. 20
figure 20

Parton density functions \(xf(x,Q^2)\) at the starting scale \(\mu ^2_\mathrm{f} = \mu ^2_\mathrm{f,0}=1.9~\hbox {GeV}^2\) with \(f=u_v,d_v,g,\Sigma \) for the valence up quark (a), the valence down quark (b), the gluon (c) and the sea quarks (d) of HERAPDF-HQMASS (full lines) and obtained from the QCD fit to the combined inclusive and heavy-flavour data with imposing a minimum cut of \(x_\mathrm{Bj}\ge 0.01\) to the inclusive data included in the fit. The experimental/fit uncertainties are shown by the hatched bands

Fig. 21
figure 21

Ratio of combined reduced charm cross sections, \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \), (full circles) as a function of \(x_\mathrm{Bj}\) for given values of \(Q^2\), compared to the NLO FFNS predictions based on HERAPDF-HQMASS (dashed lines) and those resulting from the alternative fit when requiring \(x_{\mathrm{Bj}}\ge 0.01\) for the inclusive data (dashed dotted lines), with respect to the reference cross sections, \(\sigma ^{ c\overline{c}\ {\mathrm{nom}}}_{\mathrm{red}}\), based on HERAPDF2.0 FF3A (full line with uncertainty bands)

Fig. 22
figure 22

Ratio of combined reduced NC cross sections, \(\sigma ^{+}_\mathrm{r,NC}\), (full circles) as a function of \(x_\mathrm{Bj}\) for selected values of \(Q^2\), compared to the NLO FFNS predictions based on HERAPDF-HQMASS (dashed lines) and those resulting from the alternative fit with \(x_{\mathrm{Bj}}\ge 0.01\) required for the inclusive data (dashed-dotted lines), with respect to the reference cross sections, \(\sigma ^{+~\mathrm{nom}}_\mathrm{r,NC}\), based on HERAPDF2.0 FF3A (solid lines with uncertainty bands)

4 Combined cross sections

The values of the combined cross sections \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \)and \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), together with the statistical, the uncorrelated and correlated systematic and the total uncertainties, are listed in Tables 2 and 3. A total of 209 charm and 57 beauty data points are combined simultaneously to obtain 52 reduced charm and 27 reduced beauty cross-section measurements. A \(\chi ^2\) value of 149 for 187 degrees of freedom (d.o.f.) is obtained in the combination, indicating good consistency of the input datasets. The distribution of pulls of the 266 input data points with respect to the combined cross sections is presented in Fig. 1. It is consistent with a Gaussian around zero without any significant outliers. The observed width of the pull distribution is smaller than unity which indicates a conservative estimate of the systematic uncertainties.

There are 167 sources of correlated uncertainties in total. These are 71 experimental systematic sources, 16 sources due to the extrapolation procedure (including the uncertainties on the fragmentation fractions and branching ratios) and 80 statistical charm and beauty correlations. The sources of correlated systematic and extrapolation uncertainties are listed in the “Appendix”, together with the cross-section shifts induced by the sources and the reduction factors of the uncertainties, obtained as a result of the combination. Both quantities are given in units of \(\sigma \) of the original uncertainties. All shifts of the systematic sources with respect to their nominal values are smaller than \(1.5\sigma \). Several systematic uncertainties are reduced significantly – by up to factors of two or more. The reductions are due to the different heavy-flavour tagging methods applied and to the fact that for a given process (charm or beauty production), an unique cross section is probed by the different measurements at a given \((x_\mathrm{Bj},Q^2)\) point. Those uncertainties for which large reductions have been observed already in the previous analysis [42] are reduced to at least the same level in the current combination, some are further significantly reduced due to the inclusion of new precise data [21,22,23]. The shifts and reductions obtained for the 80 statistical correlations between charm and beauty cross sections are not shown. Only small reductions in the range of \(10\%\) are observed and these reductions are independent of \(x_\mathrm{Bj} \) and \(Q^2\). The cross-section tables of the combined data together with the full information on the uncertainties can be found elsewhere [77].

The combined reduced cross sections \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \)and \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \)are shown as a function of \(x_\mathrm{Bj} \) in bins of \(Q^2\) together with the input H1 and ZEUS data in Figs. 2 and 3, respectively. The combined cross sections are significantly more precise than any of the individual input datasets for charm as well as for beauty production. This is illustrated in Fig. 4, where the charm and beauty measurements for \(Q^2 = 32~\hbox {GeV}^2\) are shown. The uncertainty of the combined reduced charm cross section is \(9\%\) on average and reaches values of about \(5\%\) or better in the region \(12~\hbox {GeV}^2\le Q^2\le 60~\hbox {GeV}^2\). The uncertainty of the combined reduced beauty cross section is about \(25\%\) on average and reaches about \(15\%\) at small \(x_\mathrm{Bj} \) and \(12~\hbox {GeV}^2\le Q^2\le 200~\hbox {GeV}^2\).

In Fig. 5, the new combined reduced charm cross sections are compared to the results of the previously published combination [42]. Good consistency between the different combinations can be observed. A detailed analysis of the cross-section measurements reveals a relative improvement in precision of about \(20\,\%\) on average with respect to the previous measurements. The improvement reaches about \(30\,\%\) in the range \(7~\hbox {GeV}^2\le Q^2\le 60~\hbox {GeV}^2\), where the newly added datasets (datasets 9–11 in Table 1) contribute with high precision.

5 Comparison with theory predictions

The combined heavy-flavour data are compared with calculations using various schemes and PDF sets. Predictions using the FFNS [25,26,27,28,29,30,31,32,33,34,35] and the VFNS [37,38,39,40,41] are considered, focussing on results using HERAPDF2.0 PDF sets. The data are also compared to FFNS predictions based on different variants of PDF sets at NLO and approximate NNLO provided by the ABM group [29, 32]. In the case of the VFNS, recent calculations of the NNPDF group based on the NNPDF3.1sx PDF set [41] at NNLO, which specifically aim for a better description of the DIS structure functions at small \(x_\mathrm{Bj} \) and \(Q^2\), are also confronted with the measurements. The calculations in the FFNS based on the HERAPDF2.0 FF3A PDF set will be considered as reference calculations in the subsequent parts of the paper.

5.1 FFNS predictions

In Figs. 6 and 7, theoretical predictions of the FFNS in the \(\overline{\mathrm{MS}}\) running mass scheme are compared to the combined reduced cross sections \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \)and \(\sigma _{\mathrm{red}}^{b\overline{b}}\, \), respectively. The theoretical predictions are obtained within the open-source QCD fit framework for PDF determination xFitter [53], which uses the OPENQCDRAD programme [31, 51, 52] for the cross-section calculations. The running heavy-flavour masses are set to the world average values [59] of \(m_c(m_c)=1.27\pm 0.03\) GeV and \(m_b(m_b)=4.18\pm 0.03\) GeV. The predicted reduced cross sections are calculated using the HERAPDF2.0 FF3A [48] and ABMP16 [32] NLO PDF sets using NLO \((O(\alpha _s^2))\) coefficient functions and the ABMP16 [32] NNLO PDF set using approximate NNLO coefficient functions. The charm data are also compared to NLO predictions based on the ABKM09 [29] NLO PDF set used in the previous analysis [42] of combined charm data. This PDF set was determined using a charm-quark mass of \(m_c(m_c)=1.18\) GeV. The PDF sets considered were extracted without explicitly using heavy-flavour data from HERA with the exception of the ABMP16 set, in which the HERA charm data from the previous combination [42] and some of the beauty data [14, 23] have been included. For the predictions based on the HERAPDF2.0 FF3A set, theory uncertainties are given which are calculated by adding in quadrature the uncertainties from the PDF set, simultaneous variations of \(\mu _r\) and \(\mu _f\) by a factor of two up or down and the variation of the quark masses within the quoted uncertainties.

The FFNS calculations reasonably describe the charm data (Fig. 6) although in the kinematic range where the data are very precise, the data show a \(x_\mathrm{Bj}\) dependence somewhat steeper than predicted by the calculations. For the different PDF sets and QCD orders considered, the predictions are quite similar at larger \(Q^2\) while some differences can be observed at smaller \(Q^2\) or \(x_\mathrm{Bj}\). For beauty production (Fig. 7) the predictions are in good agreement with the data within the considerably larger experimental uncertainties.

The description of the charm-production data is illustrated further in Fig. 8, which shows the ratios of the reduced cross sections for data, ABKM09 and ABMP16 at NLO and approximate NNLO with respect to the NLO reduced cross sections predicted in the FFNS using the HERAPDF2.0 FF3A set. For \(Q^2\ge 18~\hbox {GeV}^2\), the theoretical predictions are similar to each other in the kinematic region accessible at HERA. In this region, the predictions based on the different PDF sets and orders are well within the theoretical uncertainties obtained for the HERAPDF2.0 FF3A set. Towards smaller \(Q^2\) and \(x_\mathrm{Bj}\), some differences in the predictions become evident. In the region of \(7~\hbox {GeV}^2\le Q^2\le 120~\hbox {GeV}^2\), the theory tends to be below the data at small \(x_\mathrm{Bj}\) and above the data at large \(x_\mathrm{Bj}\), independent of the PDF set and order used.

In Fig. 9, the corresponding ratios are shown for the beauty data. In the kinematic region accessible at HERA, the predictions are very similar to each other. Within the experimental uncertainties, the data are well described by all calculations.

5.2 VFNS predictions

In Fig. 10, predictions of the RTOPT [37] NLO and approximate NNLO VFNS using the corresponding NLO and NNLO HERAPDF2.0 PDF sets are compared to the charm measurements. As in Fig. 8, the ratio of data and theory predictions to the reference calculations are shown. While the NLO VFNS predictions are in general consistent with both the data cross sections and the reference calculations, the approximate NNLO cross sections show somewhat larger differences, about \(10\%\) smaller than the reference cross sections in the region \(12~\hbox {GeV}^2\le Q^2\le 120~\hbox {GeV}^2\). On the other hand, at \(Q^2\le 7~\hbox {GeV}^2\) the \(x_\mathrm{Bj}\) slopes of the NNLO VFNS predictions tend to describe the data somewhat better than the reference calculations. Overall, the NLO and approximate NNLO VFNS predictions describe the data about equally well, but not better than the reference FFNS calculations.

In Fig. 11, the same ratios as in the preceding paragraph are shown for beauty production. In the kinematic region accessible in DIS beauty production at HERA, the differences between the different calculations are small in comparison to the experimental uncertainties of the measurements.

The calculations considered so far generally show some tension in describing the \(x_\mathrm{Bj}\) slopes of the measured charm data over a large range in \(Q^2\). Therefore the charm data are compared in Fig. 12 to recent calculations[41, 78] in the FONLL-C scheme with (NNLO+NLLsx) and without (NNLO) low-x resummation in both \(O(\alpha _s^2)\) matrix elements and \(O(\alpha _s^3)\) PDF evolution, using the NNPDF3.1sx framework, which aim for a better description of the proton structure functions at low \(x_\mathrm{Bj} \) and \(Q^2\). The charm data from the previous combination have already been used for the determination of the NNPDF3.1sx PDFs. Both calculations provide a better description of the \(x_\mathrm{Bj}\) shape of the measured charm cross sections for \(Q^2< 32~\hbox {GeV}^2\). However, the predictions lie significantly below the data in most of the phase space. This is especially the case for the NNLO+NLLsx calculations. Overall, the description is not improved with respect to the FFNS reference calculations.

5.3 Summary of the comparison to theoretical predictions

The comparison to data of the different predictions considered is summarised in Table 4 in which the agreement with data is expressed in terms of \(\chi ^2\) and the corresponding fit probabilities (p values). The table also includes a comparison to the previous combined charm data [42]. The agreement of the various predictions with the charm cross-section measurements of the current analysis is poorer than with the results of the previous combination, for which consistency between theory and data within the experimental uncertainties is observed for most of the calculations. As shown in Sect. 4, the charm cross sections of the current analysis agree well with the previous measurements but have considerably smaller uncertainties. The observed changes in the \(\chi ^2\) values are consistent with the improvement in data precision if the predictions do not fully describe reality. The tension observed between the central theory predictions and the charm data ranges from \(\sim 3\sigma \) to more than \(6\sigma \), depending on the prediction. Among the calculations considered, the NLO FFNS calculations provide the best description of the charm data. For the beauty cross sections, good agreement of theory and data is observed within the larger experimental uncertainties. In all cases, the effect of the PDF uncertainties on the \(\chi ^2\) values is negligible.

6 QCD analysis

The combined charm and beauty data are used together with the combined HERA inclusive DIS data [48] to perform a QCD analysis in the FFNS using the \(\overline{\mathrm{MS}}\) mass-renormalisation scheme at NLO. The main focus of this analysis is the simultaneous determination of the running heavy-quark masses \(m_c(m_c)\) and \(m_b(m_b)\). The theory description of the \(x_\mathrm{Bj}\) dependence of the reduced charm cross section is also investigated.

6.1 Theoretical formalism and settings

The analysis is performed with the xFitter [53] programme, in which the scale evolution of partons is calculated through DGLAP equations [79,80,81,82,83,84,85,86] at NLO, as implemented in the QCDNUM programme [87]. The theoretical FFNS predictions for the HERA data are obtained using the OPENQCDRAD programme [31, 51, 52] interfaced in the xFitter framework. The number of active flavours is set to \(n_f = 3\) at all scales. For the heavy-flavour contributions the scales are set to \(\mu _r = \mu _f=\sqrt{Q^2+4m_\mathrm{Q}^2}\). The heavy-quark masses are left free in the fit unless stated otherwise. For the light-flavour contributions to the inclusive DIS cross sections, the pQCD scales are set to \(\mu _r = \mu _f = Q\). The massless contribution to the longitudinal structure function \(F_\mathrm{L}\) is calculated to \(O(\alpha _s)\). The strong coupling strength is set to \(\alpha _s^{n_f=3}(M_Z) = 0.106\), corresponding to \(\alpha _s^{n_f=5}(M_Z) = 0.118\). In order to perform the analysis in the kinematic region where pQCD is assumed to be applicable, the \(Q^2\) range of the inclusive HERA data is restricted to \(Q^2 \ge Q^2_\mathrm{min} = 3.5~\hbox {GeV}^2\). No such cut is applied to the charm and beauty data, since the relevant scales \(\mu _r^2 = \mu _f^2=Q^2+4m_\mathrm{Q}^2\) are above \(3.5~\hbox {GeV}^2\) for all measurements.

This theory setup is slightly different from that used for the original extraction [48] of HERAPDF2.0 FF3A. In contrast to the analysis presented here, HERAPDF2.0 FF3A was determined using the on-shell mass (pole-mass) scheme for the calculation of heavy-quark production and \(F_\mathrm{L}\) was calculated to \(O(\alpha ^2_s)\).

Perturbative QCD predictions were fit to the data using the same \(\chi ^2\) definition as for the fits to the inclusive DIS data (equation (32) in reference [48]). It includes an additional logarithmic term that is relevant when the estimated statistical and uncorrelated systematic uncertainties in the data are rescaled during the fit [88]. The correlated systematic uncertainties are treated through nuisance parameters.

The procedure for the determination of the PDFs follows the approach of HERAPDF2.0 [48]. At the starting scale \(\mu _\mathrm{f,0}\), the density functions of a parton f of the proton are parametrised using the generic form:

$$\begin{aligned} xf(x)=Ax^B\left( 1-x\right) ^C\left( 1+Dx+Ex^2\right) , \end{aligned}$$
(5)

where x is the fraction of the incoming proton momentum carried by the incoming parton in the proton’s infinite-momentum frame. The parametrised PDFs are the gluon distribution xg(x), the valence quark distributions \(xu_v(x)\) and \(xd_v(x)\), and the u- and d-type antiquark distributions \(x\overline{U}(x)\) and \(x\overline{D}(x)\).

At the initial QCD evolution scaleFootnote 5 \(\mu _\mathrm{f, 0}^2 = 1.9~\hbox {GeV}^2\), the default parameterisation of the PDFs has the form:

$$\begin{aligned} xg(x)= & {} A_{g} x^{B_{g}}\,(1-x)^{C_{g}} - A'_{g} x^{B'_{g}}\,(1-x)^{C'_{g}}, \nonumber \\ xu_v(x)= & {} A_{u_v}x^{B_{u_v}}\,(1-x)^{C_{u_v}}\,(1+E_{u_v}x^2) , \nonumber \\ xd_v(x)= & {} A_{d_v}x^{B_{d_v}}\,(1-x)^{C_{d_v}}, \nonumber \\ x\overline{U}(x)= & {} A_{\overline{U}}x^{B_{\overline{U}}}\, (1-x)^{C_{\overline{U}}}\, (1+D_{\overline{U}}x), \nonumber \\ x\overline{D}(x)= & {} A_{\overline{D}}x^{B_{\overline{D}}}\, (1-x)^{C_{\overline{D}}}. \end{aligned}$$
(6)

The gluon density function, xg(x), is different from Eq. (5), it includes an additional term \(- A'_{g} x^{B'_{g}}\,(1-x)^{C'_{g}}\). The antiquark density functions, \(x\overline{U}(x)\) and \(x\overline{D}(x)\), are defined as \(x\overline{U}(x) = x\overline{u}(x)\) and \(x\overline{D}(x) = x\overline{d}(x) + x\overline{s}(x)\), where \(x\overline{u}(x)\), \(x\overline{d}(x)\), and \(x\overline{s}(x)\) are the up-, down-, and strange-antiquark distributions, respectively. The total quark density functions are \(xU(x)=xu_v(x)+x\overline{U}(x)\) and \(xD(X)=xd_v(x)+x\overline{D}(x)\). The sea-antiquark distribution is defined as \(x\Sigma (x)=x\overline{u}(x)+x\overline{d}(x)+x\overline{s}(x)\). The normalisation parameters \(A_{u_{{v}}}\), \(A_{d_{v}}\), and \(A_{g}\) are determined by the QCD sum rules. The B and \(B'\) parameters determine the PDFs at small x, and the C parameters describe the shape of the distributions as \(x\,{\rightarrow }\,1\). The parameter \(C'_{g}=25\) is fixed [89]. Additional constraints \(B_{\overline{{U}}} = B_{\overline{{D}}}\) and \(A_{\overline{{U}}} = A_{\overline{{D}}}(1 - f_{s})\) are imposed to ensure the same normalisation for the \(x\overline{u}\) and \(x\overline{d}\) distributions as \(x \rightarrow 0\). The strangeness fraction \(f_{s} = x\overline{s}/( x\overline{d} + x\overline{s})\) is fixed to \(f_{s}=0.4\) as in the HERAPDF2.0 analysis [48].

The selection of parameters in Eq. (6) from the general form, Eq. (5), is made by first fitting with all D and E parameters set to zero, and then including them one at a time in the fit. The improvement in the \(\chi ^2\) of the fit is monitored. If \(\chi ^2\) improves significantly, the parameter is added and the procedure is repeated until no further significant improvement is observed. This leads to the same 14 free PDF parameters as in the inclusive HERAPDF2.0 analysis [48].

The PDF uncertainties are estimated according to the general approach of HERAPDF2.0 [48], in which the experimental, model, and parameterisation uncertainties are taken into account. The experimental uncertainties are determined from the fit using the tolerance criterion of \(\Delta \chi ^2 =1\). Model uncertainties arise from the variations of the strong coupling constant \(\alpha _s^{n_f=3}(M_Z) = 0.1060 \pm 0.0015\), simultaneous variations of the factorisation and renormalisation scales up or down by a factor of two, the variation of the strangeness fraction \(0.3 \le f_{s} \le 0.5\), and the value of \(2.5~\hbox {GeV}^2\le Q^2_{\text {min}}\le 5.0~\hbox {GeV}^2\) imposed on the inclusive HERA data. The total model uncertainties are obtained by adding the individual contributions in quadrature. The parameterisation uncertainty is estimated by extending the functional form in Eq. (6) of all parton density functions with additional parameters D and E added one at a time. An additional parameterisation uncertainty is considered by using the functional form in Eq. (6) with \(E_{u_v} = 0\). The \(\chi ^2\) in this variant of the fit is only 5 units worse than that with the released \(E_{u_v}\) parameter; changing this parameter noticeably affects the mass determination. In addition, \(\mu _\mathrm{f,0}^2\) is varied within \(1.6~\hbox {GeV}^2< \mu _\mathrm{f, 0}^2 < 2.2~\hbox {GeV}^2\). The parameterisation uncertainty is determined at each \(x_\mathrm{Bj} \) value from the maximal differences between the PDFs resulting from the central fit and all parameterisation variations. The total uncertainty is obtained by adding the fit, model and parameterisation uncertainties in quadrature. The values of the input parameters for the fit and their variations considered, to evaluate model and parameterisation uncertainties, are given in Table 5.

6.2 QCD fit and determination of the running heavy-quark masses

In the QCD fit, the running heavy-quark masses are fitted simultaneously with the PDF parameters in Eq. (6). The fit yields a total \(\chi ^2=1435\) for 1208 degrees of freedom. The ratio \(\chi ^2/\mathrm{d.o.f.}=1.19\) is similar in size to the values obtained in the analysis of the HERA combined inclusive data [48]. The resulting PDF set is termed HERAPDF-HQMASS. The central values of the fitted parameters are given in the “Appendix”.

In Fig. 13, the PDFs at the scale \(\mu ^2_{\mathrm{f ,0}}=1.9~\hbox {GeV}^2\) are presented. Also shown are the PDFs, including experimental uncertainties, obtained by a fit to the inclusive data only with the heavy-quark masses fixed to \(m_c(m_c)=1.27\) GeV and \(m_b(m_b)=4.18\) GeV [59]. No significant differences between the two PDF sets are observed. Only a slight enhancement in the gluon density of HERAPDF-HQMASS compared to that determined from the inclusive data only can be observed around \(x=2\cdot 10^{-3}\). This corresponds to the region in x where the charm data are most precise. When used together with the inclusive HERA data, the heavy-flavour data have only little influence on the shape of the PDFs determined with quark masses fixed to their expected values. This confirms the findings [48] made with the previously published combined charm data. However, the smaller uncertainties of the new combination reduce the uncertainty of the charm-quark mass determination with respect to the previous resultFootnote 6 [42]. The beauty-quark mass determination improves the previous result based on a single dataset [23]. The running heavy-quark masses are determined as:

$$\begin{aligned} m_c(m_c)= & {} 1.290^{+0.046}_{-0.041} \mathrm{(exp/fit)} {}^{+0.062}_{-0.014} \nonumber \mathrm{(model)} \\& {}^{+0.003}_{-0.031} \mathrm{(parameterisation)}~\mathrm{GeV}, \nonumber \\ m_b(m_b)= & {} 4.049^{+0.104}_{-0.109} \mathrm{(exp/fit)} {}^{+0.090}_{-0.032}\nonumber \mathrm{(model)} \\& {}^{+0.001}_{-0.031} \mathrm{(parameterisation)}~\mathrm{GeV}. \end{aligned}$$
(7)

The individual contributions to the uncertainties are listed in Table 5. The model uncertainties are dominated by those arising from the QCD scale variations. In the case of the charm-quark mass, the variation in \(\alpha _s\) also yields a sizeable contribution while the other sources lead to uncertainties of typically a few MeV, both for \(m_c(m_c)\) and \(m_b(m_b)\). The main contribution to the parameterisation uncertainties comes from the fit variant in which the term \(E_{u_v}\) is set to zero, other contributions are negligible. Both mass values are in agreement with the corresponding PDG values [59] and the value of \(m_c(m_c)\) determined here agrees well with the result from the previous analysis of HERA combined charm cross sections [42].

A cross check is performed using the Monte Carlo method [90, 91]. It is based on analysing a large number of pseudo datasets called replicas. For this cross check, 500 replicas are created by taking the combined data and fluctuating the values of the reduced cross sections randomly within their statistical and systematic uncertainties taking into account correlations. All uncertainties are assumed to follow a Gaussian distribution. The central values for the fitted parameters and their uncertainties are estimated using the mean and RMS values over the replicas. The obtained heavy-quark masses and their experimental/fit uncertainties are in agreement with those quoted in Eq. (7).

In order to study the influence of the inclusive data on the mass determination, fits to the combined inclusive data only are also tried. In this case, the fit results are very sensitive to the choice of the PDF parameterisation. When using the default 14 parameters, the masses are determined to be \(m_c(m_c) = 1.80^{+0.14}_{-0.13} \mathrm{(exp/fit)}~\mathrm{GeV}\), \(m_b(m_b) = 8.45^{+2.28}_{-1.81} \mathrm{(exp/fit)}~\mathrm{GeV}\), where only the experimental/fit uncertainties are quoted. In the variant of the fit using the inclusive data only and the reduced parameterisation with \(E_{u_v} = 0\), the central fitted values for the heavy-quark masses are: \(m_c(m_c) = 1.45~\mathrm{GeV}\), \(m_b(m_b) = 4.00~\mathrm{GeV}\). The sensitivity to the PDF parameterisation and the large experimental/fit uncertainties for a given parameterisation demonstrate that attempts to extract heavy-quark masses from inclusive HERA data alone are not reasonable in this framework. The large effect on the fitted masses observed here, when setting \(E_{u_v} = 0\), motivates the \(E_{u_v}\) variation in the HERAPDF-HQMASS fit.

The NLO FFNS predictions based on HERAPDF-HQMASS are compared to the combined charm and beauty cross sections in Figs. 14 and 15, respectively. The predictions based on the HERAPDF2.0 set are included in the figures. Only minor differences between the different predictions can be observed. This is to be expected because of the similarities of the PDFs, in particular that of the gluon and the values of the heavy-quark masses. The description of the data is similar to that observed for the predictions based on the HERAPDF2.0 FF3A set.

In Fig. 16, the ratios of data and predictions based HERAPDF-HQMASS to the predictions based on HERAPDF2.0 FF3A are shown for charm production. The description of the data is almost identical for both calculations. The data show a steeper \(x_\mathrm{Bj}\) dependence than expected in NLO FFNS. The partial \(\chi ^2\) value of 116 for the heavy-flavour dataFootnote 7 (d.o.f. \(=79\)) in the fit presented is somewhat large. It corresponds to a p valueFootnote 8 of 0.004, which is equivalent to \(2.9\sigma \). A similar behaviour can be observed already for the charm cross sections from the previous combination [42], albeit at lower significance due to the larger uncertainties.

In Fig. 17, the same ratios as in Fig. 16 are shown for beauty production. Agreement is observed between theory and data within the large uncertainties of the measurements.

6.3 Reduced heavy-flavour cross sections as a function of the partonic \(\varvec{x}\)

Since in LO QCD heavy-flavour production proceeds via boson-gluon-fusion, at least two partons, the heavy-quark pair, are present in the final state. Therefore, already in LO, the x of the incoming parton is different from \(x_\mathrm{Bj}\) measured at the photon vertex. At LO, the gluon x is given by

$$\begin{aligned} x=x_\mathrm{Bj} \cdot \left( 1+\frac{\hat{s}}{Q^2}\right) .\end{aligned}$$
(8)

It depends on the kinematic DIS variables \(x_\mathrm{Bj}\) and \(Q^2\) and on the invariant mass \(\hat{s}\) of the heavy-quark pair. At higher orders, the final state contains additional partons, such that x cannot be expressed in a simple way. Independent of the order of the calculations, only an average \(\langle x\rangle \) can be determined at a given \((x_\mathrm{Bj},Q^2)\) point by the integration over all contributions to the cross section in the vicinity of this phase space point. In Fig. 18, the ratio of the measured reduced cross sections to the NLO FFNS predictions based on HERAPDF-HQMASS is shown as a function of \(\langle x\rangle \) instead of \(x_\mathrm{Bj}\), where \(\langle x\rangle \) is the geometric mean calculated at NLO with HVQDIS. While the charm measurements cover the range \(0.0005\lesssim \langle x\rangle \lesssim 0.1\) the beauty data are limited to a higher x range, \(0.004\lesssim \langle x\rangle \lesssim 0.1\), because of the large beauty-quark mass. For the charm data, a deviation from the reference calculation is evident, showing a steeper slope in \(\langle x\rangle \) in the range \(0.0005\lesssim \langle x\rangle \lesssim 0.01\), consistent with being independent of \(Q^2\). Due to the larger experimental uncertainties, no conclusion can be drawn for the beauty data.

6.4 Increasing the impact of the charm data on the gluon density

While inclusive DIS cross sections constrain the gluon density indirectly via scaling violations, and directly only through higher order corrections, heavy-flavour production probes the gluon directly already at leading order. Contributions to heavy-flavour production from light-flavour PDFs are small. For charm production they amount to five to eight per cent, varying only slightly with \(x_\mathrm{Bj}\) or \(Q^2\) [49]. Because of the high precision of \(\sigma _{\mathrm{red}}^{c\overline{c}}\, \) reached in this analysis, a study is performed to enhance the impact of the charm measurement on the gluon determination in the QCD fit.

To reduce the impact of the inclusive data in the determination of the gluon density function, a series of fits is performed by requiring a minimum \(x_\mathrm{Bj} \ge x_\mathrm{Bj,min}\) for the inclusive data included in the fit, with \(x_\mathrm{Bj,min}\) varying from \(2\cdot 10^{-4}\) to 0.1. No such cut is applied to the heavy-flavour data. The \(\chi ^2/\mathrm{d.o.f.}\) values for the inclusive plus heavy-flavour data and the partial \(\chi ^2/\mathrm{d.o.f.}\) for the heavy-flavour data only are presented in Fig. 19 as a function of \(x_{\mathrm{Bj,min}}\). The partial \(\chi ^2/\mathrm{d.o.f.}\) for the heavy-flavour data improves significantly with rising \(x_{\mathrm{Bj,min}}\) cut reaching a minimum at \(x_{\mathrm{Bj,min}}\approx 0.04\), while the \(\chi ^2/\mathrm{d.o.f.}\) for the inclusive plus heavy-flavour data sample is slightly larger than that obtained without a cut in \(x_\mathrm{Bj}\). For further studies \(x_{\mathrm{Bj,min}}=0.01\) is chosen. The total \(\chi ^2\) is 822 for 651 degrees of freedom. The partial \(\chi ^2\) of the heavy-flavour data improves to 98 for 79 degrees of freedom (corresponding to a p value of 0.07 or \(1.8\sigma \)). The resulting gluon density function, shown in Fig. 20 at the scale \(\mu _\mathrm{f}^2=1.9~\hbox {GeV}^2\), is significantly steeper than the gluon density function determined when including all inclusive measurements in the fit. The other parton density functions are consistent with the result of the default fit.

In Fig. 21, a comparison is presented of the ratios of the combined reduced charm cross section and the cross section as calculated from the alternative fit, in which the inclusive data are subject to the cut \(x_\mathrm{Bj}\ge 0.01\), to the reference cross sections based on HERAPDF2.0 FF3A. The predictions from HERAPDF-HQMASS are also shown. As expected, the charm cross sections fitted with the \(x_\mathrm{Bj}\) cut imposed on the inclusive data rise more strongly towards small \(x_\mathrm{Bj}\) and describe the data better than the other predictions. In general, the predictions from the fit with \(x_\mathrm{Bj}\) cut follow nicely the charm data. A similar study for beauty is also made but no significant improvement in the description of the beauty data is observed. The heavy-quark masses extracted from the fit with \(x_{\mathrm{Bj}} \ge 0.01\) are consistent with those quoted in Eq. (7).

Cross-section predictions based on the three PDF sets, discussed in the previous paragraph, are calculated for inclusive DIS. In Fig. 22, these predictions are compared to the inclusive reduced cross sections [48] for NC \(e^+p\) DIS. The predictions based on HERAPDF2.0 FF3A and on HERAPDF-HQMASS agree with the inclusive measurement. The calculations based on the PDF set determined by requiring \(x_\mathrm{Bj}\ge 0.01\) for the inclusive data predict significantly larger inclusive reduced cross sections at small \(x_\mathrm{Bj}\).

This study shows that a better description of the charm data can be achieved by excluding the low-\(x_\mathrm{Bj}\) inclusive data in the fit. However, the calculations then fail to describe the inclusive data at low \(x_\mathrm{Bj}\). In the theoretical framework used in this analysis, it seems impossible to resolve the \(2.9\sigma \) difference in describing simultaneously the inclusive and charm measurements from HERA, using this simple approach of changing the gluon density. The comparison of various theory predictions to the charm data in section 5 suggests that the situation is unlikely to improve at NNLO because the NNLO predictions presented provide a poorer description of the charm data than that observed at NLO. The combined inclusive analysis [48] already revealed some tensions in the theory description of the inclusive DIS data. The current analysis reveals some additional tensions in describing simultaneously the combined charm data and the combined inclusive data.

7 Summary

Measurements of charm and beauty production cross sections in deep inelastic ep scattering by the H1 and ZEUS experiments are combined at the level of reduced cross sections, accounting for their statistical and systematic correlations. The beauty cross sections are combined for the first time. The datasets are found to be consistent and the combined data have significantly reduced uncertainties. The combined charm cross sections presented in this paper are significantly more precise than those previously published.

Next-to-leading and approximate next-to-next-to-leading-order QCD predictions of different schemes are compared to the data. The calculations are found to be in fair agreement with the charm data. The next-to-leading-order calculations in the fixed-flavour-number scheme provide the best description of the heavy-flavour data. The beauty data, which have larger experimental uncertainties, are well described by all QCD predictions.

The new combined heavy-flavour data together with the previously published combined inclusive data from HERA are subjected to a next-to-leading-order QCD analysis in the fixed-flavour-number scheme using the \(\mathrm{\overline{MS}}\) running-mass definition. The running heavy-quark masses are determined as:

$$\begin{aligned} m_c(m_c)= & {} 1.290^{+0.046}_{-0.041} \mathrm{(exp/fit)} {}^{+0.062}_{-0.014} \mathrm{(model)} \\& {}^{+0.003}_{-0.031} \mathrm{(parameterisation)}~\mathrm{GeV}, \\ m_b(m_b)= & {} 4.049^{+0.104}_{-0.109} \mathrm{(exp/fit)} {}^{+0.090}_{-0.032} \mathrm{(model)} \\& {}^{+0.001}_{-0.031} \mathrm{(parameterisation)}~\mathrm{GeV}. \end{aligned}$$

The simultaneously determined parton density functions are found to agree well with HERAPDF2.0 FF3A.

The QCD analysis reveals some tensions, at the level of \(3 \sigma \), in describing simultaneously the inclusive and the heavy-flavour HERA DIS data. The measured reduced charm cross sections show a stronger \(x_\mathrm{Bj}\) dependence than obtained in the combined QCD fit of charm and inclusive data, in which the PDFs are dominated by the fit of the inclusive data. A study in which inclusive data with \(x_\mathrm{Bj}<0.01\) are excluded from the fit is carried out. A better description of the charm data can be achieved this way. However, the resulting PDFs fail to describe the inclusive data in the excluded \(x_\mathrm{Bj}\) region. Alternative next-to-leading-order and next-to-next-leading-order QCD calculations considered, including those with low-x resummation, do not provide a better description of the combined heavy-flavour data.