# HERAFitter

- First Online:

- Received:
- Accepted:

DOI: 10.1140/epjc/s10052-015-3480-z

- Cite this article as:
- Alekhin, S., Behnke, O., Belov, P. et al. Eur. Phys. J. C (2015) 75: 304. doi:10.1140/epjc/s10052-015-3480-z

- 31 Citations
- 645 Downloads

## Abstract

HERAFitter is an open-source package that provides a framework for the determination of the parton distribution functions (PDFs) of the proton and for many different kinds of analyses in Quantum Chromodynamics (QCD). It encodes results from a wide range of experimental measurements in lepton–proton deep inelastic scattering and proton–proton (proton–antiproton) collisions at hadron colliders. These are complemented with a variety of theoretical options for calculating PDF-dependent cross section predictions corresponding to the measurements. The framework covers a large number of the existing methods and schemes used for PDF determination. The data and theoretical predictions are brought together through numerous methodological options for carrying out PDF fits and plotting tools to help to visualise the results. While primarily based on the approach of collinear factorisation, HERAFitter also provides facilities for fits of dipole models and transverse-momentum dependent PDFs. The package can be used to study the impact of new precise measurements from hadron colliders. This paper describes the general structure of HERAFitter and its wide choice of options.

## 1 Introduction

*q*such that \(Q^2 = |q^2| \gg \varLambda _\mathrm{QCD}^2\), where \(\varLambda _\mathrm{QCD}\) is the QCD scale. At Leading Order (LO) in the perturbative expansion of the strong-coupling constant, the PDFs represent the probability of finding a specific parton

*a*(

*b*) in the first (second) hadron carrying a fraction \(x_1\) (\(x_2\)) of its momentum. The indices

*a*and

*b*in Eq. 1 indicate the various kinds of partons, i.e. gluons, quarks and antiquarks of different flavours that are considered as the constituents of the proton. The PDFs depend on the factorisation scale, \(\mu _{\mathrm {F}} \), while the parton cross sections depend on the strong-coupling constant, \(\alpha _{\mathrm {s}} \), and the factorisation and renormalisation scales, \(\mu _{\mathrm {F}} \) and \(\mu _{\mathrm {R}} \). The parton cross sections \(\hat{\sigma }^{ab}\) are calculable in perturbative QCD (pQCD) whereas PDFs are usually constrained by global fits to a variety of experimental data. The assumption that PDFs are universal, within a particular factorisation scheme [3, 4, 5, 6, 7], is crucial to this procedure. Recent review articles on PDFs can be found in Refs. [8, 9].

A precise determination of PDFs as a function of *x* requires large amounts of experimental data that cover a wide kinematic region and that are sensitive to different kinds of partons. Measurements of inclusive Neutral Current (NC) and Charge Current (CC) Deep Inelastic Scattering (DIS) at the lepton–proton (*ep*) collider HERA provide crucial information for determining the PDFs. The low-energy fixed-target data and different processes from proton–proton (*pp*) collisions at the LHC and proton–antiproton (\(p \bar{p}\)) collisions at the Tevatron provide complementary information to the HERA DIS measurements. The PDFs are determined from \(\chi ^2\) fits of the theoretical predictions to the data. The rapid flow of new data from the LHC experiments and the corresponding theoretical developments, which are providing predictions for more complex processes at increasingly higher orders, has motivated the development of a tool to combine them together in a fast, efficient, open-source framework.

This paper describes the open-source QCD fit framework HERAFitter [10], which includes a set of tools to facilitate global QCD analyses of *pp*, \(p\bar{p}\) and *ep* scattering data. It has been developed for the determination of PDFs and the extraction of fundamental parameters of QCD such as the heavy quark masses and the strong-coupling constant. It also provides a common framework for the comparison of different theoretical approaches. Furthermore, it can be used to test the impact of new experimental data on the PDFs and on the SM parameters.

This paper is organised as follows: The general structure of HERAFitter is presented in Sect. 2. In Sect. 3 the various processes available in HERAFitter and the corresponding theoretical calculations, performed within the framework of collinear factorisation and the DGLAP [11, 12, 13, 14, 15] formalism, are discussed. In Sect. 4 tools for fast calculations of the theoretical predictions are presented. In Sect. 5 the methodology to determine PDFs through fits based on various \(\chi ^2\) definitions is described. In particular, various treatments of correlated experimental uncertainties are presented. Alternative approaches to the DGLAP formalism are presented in Sect. 6. The organisation of the HERAFitter code is discussed in Sect. 7, specific applications of the package are presented in Sect. 8, which is followed by a summary in Sect. 9.

## 2 The HERAFitter structure

*Data:* Measurements from various processes are provided in the HERAFitter package including the information on their uncorrelated and correlated uncertainties. HERA inclusive scattering data are directly sensitive to quark PDFs and indirectly sensitive to the gluon PDF through scaling violations and the longitudinal structure function \(F_L\). These data are the basis of any proton PDF extraction and are used in all current PDF sets from MSTW [16], CT [17], NNPDF [18], ABM [19], JR [20] and HERAPDF [21] groups. Measurements of charm and beauty quark production at HERA are sensitive to heavy quark PDFs and jet measurements have direct sensitivity to the gluon PDF. However, the kinematic range of HERA data mostly covers low and medium ranges in *x*. Measurements from the fixed-target experiments, the Tevatron and the LHC provide additional constraints on the gluon and quark distributions at high-*x*, better understanding of heavy quark distributions and decomposition of the light-quark sea. For these purposes, measurements from fixed-target experiments, the Tevatron and the LHC are included.

The list of experimental data and theory calculations implemented in the HERAFitter package. The references for the individual calculations and schemes are given in the text

Experimental data | Process | Reaction | Theory schemes calculations |
---|---|---|---|

HERA, fixed target | DIS NC | \(ep\rightarrow eX\)\(\mu p \rightarrow \mu X\) | TR\(^\prime \), ACOT, ZM (QCDNUM), FFN (OPENQCDRAD, QCDNUM), TMD (uPDFevolv) |

HERA | DIS CC | \(ep\rightarrow \nu _e X\) | ACOT, ZM (QCDNUM), FFN (OPENQCDRAD) |

DIS jets | \(ep\rightarrow e\ {\mathrm {jets}}X\) | NLOJet++ (fastNLO) | |

DIS heavy quarks | \(ep\rightarrow e c \bar{c} X\), \(ep\rightarrow e b \bar{b} X\) | TR\(^\prime \), ACOT, ZM (QCDNUM), FFN (OPENQCDRAD, QCDNUM) | |

Tevatron, LHC | Drell–Yan | \(pp(\bar{p})\rightarrow l\bar{l} X\), \(pp(\bar{p})\rightarrow l\nu X\) | MCFM (APPLGRID) |

Top pair | \(pp(\bar{p}) \rightarrow t\bar{t} X\) | MCFM (APPLGRID), HATHOR, DiffTop | |

Single top | \(pp(\bar{p}) \rightarrow t l \nu X\), | MCFM (APPLGRID) | |

\(pp(\bar{p}) \rightarrow tX\), | |||

\(pp(\bar{p}) \rightarrow tWX\) | |||

Jets | \(pp(\bar{p}) \rightarrow {\mathrm {jets}} X\) | NLOJet++ (APPLGRID), NLOJet++ (fastNLO) | |

LHC | DY heavy quarks | \(pp \rightarrow VhX\) | MCFM (APPLGRID) |

*Theory:* The PDFs are parametrised at a starting scale, \(Q_0^2\), using a functional form and a set of free parameters \(\mathbf {p}\). These PDFs are evolved to the scale of the measurements \(Q^2\), \(Q^2>Q_0^2\). By default, the evolution uses the DGLAP formalism [11, 12, 13, 14, 15] as implemented in QCDNUM [22]. Alternatively, the CCFM evolution [23, 24, 25, 26] as implemented in uPDFevolv [27] can be chosen. The prediction of the cross section for a particular process is obtained, assuming factorisation, by the convolution of the evolved PDFs with the corresponding parton scattering cross section. Available theory calculations for each process are listed in Table 1. Predictions using dipole models [28, 29, 30] can also be obtained.

*QCD analysis*: The PDFs are determined in a least squares fit: a \(\chi ^2\) function, which compares the input data and theory predictions, is minimised with the MINUIT [31] program. In HERAFitter various choices are available for the treatment of experimental uncertainties in the \(\chi ^2\) definition. Correlated experimental uncertainties can be accounted for using a nuisance parameter method or a covariance matrix method as described in Sect. 5.2. Different statistical assumptions for the distributions of the systematic uncertainties, e.g. Gaussian or LogNormal [32], can also be studied (see Sect. 5.3).

*Results*: The resulting PDFs are provided in a format ready to be used by the LHAPDF library [33, 34] or by TMDlib [35]. HERAFitter drawing tools can be used to display the PDFs with their uncertainties at a chosen scale. As an example, the first set of PDFs extracted using HERAFitter from HERA I data, HERAPDF1.0 [21], is shown in Fig. 2 (taken from Ref. [21]). Note that following the conventions, the PDFs are displayed as parton momentum distributions \(xf(x,\mu _F^2)\).

## 3 Theoretical formalism using DGLAP evolution

In this section the theoretical formalism based on DGLAP [11, 12, 13, 14, 15] equations is described.

*a*in parton

*b*. They can be calculated as a perturbative expansion in \(\alpha _s\). Once PDFs are determined at the initial scale \(\mu _F^2 = Q_0^2\), their evolution to any other scale \(Q^2 > Q_0^2\) is entirely determined by the DGLAP equations. The PDFs are then used to calculate cross sections for various different processes. Alternative approaches to the DGLAP evolution equations, valid in different kinematic regimes, are also implemented in HERAFitter and will be discussed in Sect. 6.

### 3.1 Deep inelastic scattering and proton structure

The formalism that relates the DIS measurements to pQCD and the PDFs has been described in detail in many extensive reviews (see, e.g., Ref. [36]) and it is only briefly summarised here. DIS is the process where a lepton scatters off the partons in the proton by the virtual exchange of a neutral (\(\gamma /Z\)) or charged (\(W^{\pm }\)) vector boson and, as a result, a scattered lepton and a hadronic final state are produced. The common DIS kinematic variables are the scale of the process \(Q^2\), which is the absolute squared four-momentum of the exchanged boson, Bjorken *x*, which can be related in the parton model to the momentum fraction that is carried by the struck quark, and the inelasticity *y*. These are related by \(y=Q^2/sx\), where *s* is the squared centre-of-mass energy.

*Z*interference terms and pure

*Z*exchange terms, respectively. The structure function \(\tilde{F}_2\) is the dominant contribution to the cross section, \(x \tilde{F}_3\) becomes important at high \(Q^2\) and \(\tilde{F}_L\) is sizable only at high

*y*. In the framework of pQCD, the structure functions are directly related to the PDFs: at LO \(F_2\) is the weighted momentum sum of quark and antiquark distributions, \(F_2~\approx ~x \sum e^2_q (q+ \overline{q})\) (where \(e_q\) is the quark electric charge), \(xF_3\) is related to their difference, \(xF_3~\approx ~x \sum 2e_q a_q (q- \overline{q})\) (\(a_q\) is the axial-vector quark coupling), and \(F_L\) vanishes. At higher orders, terms related to the gluon distribution appear, in particular \(F_L\) is strongly related to the low-

*x*gluon.

*ep*cross section, analogous to the NC

*ep*case, can be expressed in terms of another set of structure functions, \(\tilde{W}\):

*P*represents the lepton beam polarisation. At LO in \(\alpha _s\), the CC \(e^+p\) and \(e^-p\) cross sections are sensitive to different combinations of the quark flavour densities:

The DIS measurements span a large range of \(Q^2\) from a few \(\,\text {GeV} ^2\) to about \(10^5\,\text {GeV} ^2\), crossing heavy quark mass thresholds, thus the treatment of heavy quark (charm and beauty) production and the chosen values of their masses become important. There are different schemes for the treatment of heavy quark production. Several variants of these schemes are implemented in HERAFitter and they are briefly discussed below.

*Zero-mass-variable flavour number* (*ZM-VFN*): In this scheme [37], the heavy quarks appear as partons in the proton at \(Q^2\) values above \({\sim } m_h^2\) (heavy quark mass) and they are then treated as massless in both the initial and the final states of the hard-scattering process. The lowest-order process is the scattering of the lepton off the heavy quark via electroweak boson exchange. This scheme is expected to be reliable only in the region where \(Q^2\gg m_h^2\), and it is inaccurate for lower \(Q^2\) values since it misses corrections of order \(m_h^2/Q^2\), while the other schemes mentioned below are accurate up to order \(\varLambda _\mathrm{QCD}^2/Q^2\) albeit with different perturbative orderings. In HERAFitter this scheme is available for the DIS structure function calculation via the interface to the QCDNUM [22] package, thus it benefits from the fast QCDNUM convolution engine.

*Fixed flavour number (FFN)*: In this rigorous quantum field theory scheme [38, 39, 40], only the gluon and the light quarks are considered as partons within the proton and massive quarks are produced perturbatively in the final state. The lowest-order process is the heavy quark-antiquark pair production via boson-gluon fusion. In HERAFitter this scheme can be accessed via the QCDNUM implementation or through the interface to the open-source code OPENQCDRAD [41] as implemented by the ABM group. This scheme is reliable only for \(Q\sim m_h^2\), since it does not resum logarithms of the form \(\ln (Q^2/m_h^2)\) which become important for \(Q^2\gg m_h^2\). In QCDNUM, the calculation of the heavy quark contributions to DIS structure functions are available at Next-to-Leading Order (NLO) and only electromagnetic exchange contributions are taken into account. In the OPENQCDRAD implementation the heavy quark contributions to CC structure functions are also available and, for the NC case, the QCD corrections to the coefficient functions in Next-to-Next-to Leading Order (NNLO) are provided in the best currently known approximation [42, 43]. The OPENQCDRAD implementation uses in addition the running heavy quark mass in the \(\overline{\text {MS}}\) scheme [44]. It is sometimes argued that this \(\overline{\text {MS}}\) scheme reduces the sensitivity of the DIS cross sections to higher-order corrections. It is also known to have smaller non-perturbative corrections than the pole mass scheme [45].

*General-mass variable flavour number (GM-VFN)*: In this scheme (see [46] for a comprehensive review), heavy quark production is treated for \(Q^2 \sim m_h^2\) in the FFN scheme and for \(Q^2 \gg m_h^2\) in the massless scheme with a suitable interpolation in between. The details of this interpolation differ between implementations. The groups that use GM-VFN schemes in PDFs are MSTW, CT (CTEQ), NNPDF, and HERAPDF. HERAFitter implements different variants of the GM-VFN scheme.

*GM-VFN Thorne–Roberts scheme:*The Thorne–Roberts (TR) scheme [47] was designed to provide a smooth transition from the massive FFN scheme at low scales \(Q^2 \sim m_h^2\) to the massless ZM-VFNS scheme at high scales \(Q^2 \gg m_h^2\). Because the original version was technically difficult to implement beyond NLO, it was updated to the TR\(^\prime \) scheme [48]. There are two variants of the TR\(^\prime \) schemes: TR\(^\prime \) standard (as used in MSTW PDF sets [16, 48]) and TR\(^\prime \) optimal [49], with a smoother transition across the heavy quark threshold region. Both TR\(^\prime \) variants are accessible within the HERAFitter package at LO, NLO and NNLO. At NNLO, an approximation is needed for the massive \(\mathscr {O}(\alpha _s^3)\) NC coefficient functions relevant for \(Q^2\sim m_h^2\), as for the FFN scheme.*GM-VFN ACOT scheme:*The Aivazis–Collins–Olness–Tung (ACOT) scheme belongs to the group of VFN factorisation schemes that use the renormalisation method of Collins–Wilczek–Zee (CWZ) [50]. This scheme unifies the low scale \(Q^2 \sim m_h^2\) and high scale \(Q^2 > m_h^2\) regions in a coherent framework across the full energy range. Within the ACOT package, the following variants of the ACOT \(\overline{\text {MS}}\) scheme are available at LO and NLO: ACOT-Full [51], S-ACOT-\(\chi \) [52, 53] and ACOT-ZM [51]. For the longitudinal structure function higher-order calculations are also available. A comparison of PDFs extracted from QCD fits to the HERA data with the TR\(^\prime \) and ACOT-Full schemes is illustrated in Fig. 3 (taken from [21]).

### 3.2 Electroweak corrections to DIS

Calculations of higher-order electroweak corrections to DIS at HERA are available in HERAFitter in the on-shell scheme. In this scheme, the masses of the gauge bosons \(m_W\) and \(m_Z\) are treated as basic parameters together with the top, Higgs and fermion masses. These electroweak corrections are based on the EPRC package [54]. The code calculates the running of the electromagnetic coupling \(\alpha \) using the most recent parametrisation of the hadronic contribution [55] as well as an older version from Burkhard [56].

### 3.3 Diffractive PDFs

About 10 % of deep inelastic interactions at HERA are diffractive, such that the interacting proton stays intact (\(ep\rightarrow eXp\)). The outgoing proton is separated from the rest of the final hadronic system, *X*, by a large rapidity gap. Such events are a subset of DIS where the hadronic state *X* comes from the interaction of the virtual photon with a colour-neutral cluster stripped off the proton [57]. The process can be described analogously to the inclusive DIS, by means of the diffractive parton distributions (DPDFs) [58]. The parametrization of the colour-neutral exchange in terms of factorisable ‘hard’ Pomeron and a secondary Reggeon [59], both having a hadron-like partonic structure, has proved remarkably successful in the description of most of the diffractive data. It has also provided a practical method to determine DPDFs from fits to the diffractive cross sections.

In addition to the usual DIS variables *x*, \(Q^2\), extra kinematic variables are needed to describe the diffractive process. These are the squared four-momentum transfer of the exchanged Pomeron or Reggeon, *t*, and the mass \(m_X\) of the diffractively produced final state. In practice, the variable \(m_X\) is often replaced by the dimensionless quantity \(\beta =\frac{Q^2}{m_X^2+Q^2-t}\). In models based on a factorisable Pomeron, \(\beta \) may be viewed at LO as the fraction of the Pomeron longitudinal momentum, \(x_{{IP}}\), which is carried by the struck parton, \(x=\beta x_{{IP}}\), where *P* denotes the momentum of the proton.

*t*.

### 3.4 Drell–Yan processes in *pp* or \(p\bar{p}\) collisions

The Drell–Yan (DY) process provides valuable information about PDFs. In *pp* and \(p\bar{p}\) scattering, the \(Z/\gamma ^*\) and *W* production probe bi-linear combinations of quarks. Complementary information on the different quark densities can be obtained from the \(W^{\pm }\) asymmetry (*d*, *u* and their ratio), the ratio of the *W* and *Z* cross sections (sensitive to the flavour composition of the quark sea, in particular to the *s*-quark distribution), and associated *W* and *Z* production with heavy quarks (sensitive to *s*, *c*- and *b*-quark densities). Measurements at large boson transverse momentum \(p_T\gtrsim m_{W,Z}\) are potentially sensitive to the gluon distribution [62].

*m*, boson rapidity

*y*and lepton scattering angle \(\cos \theta \) in the parton centre-of-mass frame can be written as [63, 64]:

*s*is the squared centre-of-mass beam energy, the parton momentum fractions are given by \(x_{1,2} = \frac{m}{\sqrt{s}}\exp (\pm y)\), \(f_q(x_1,m^2)\) are the PDFs at the scale of the invariant mass, and \(\hat{\sigma }^{q}\) is the parton–parton hard-scattering cross section.

*W*boson mass and decay width, respectively.

The simple LO form of these expressions allows for the analytic calculations of integrated cross sections. In both NC and CC expressions the PDFs depend only on the boson rapidity *y* and invariant mass *m*, while the integral in \(\cos \theta \) can be evaluated analytically even for the case of realistic kinematic cuts.

Beyond LO, the calculations are often time-consuming and Monte Carlo generators are employed. Currently, the predictions for *W* and \(Z/\gamma ^*\) production are available up to NNLO and the predictions for *W* and *Z* production in association with heavy-flavour quarks are available to NLO.

There are several possibilities to obtain the theoretical predictions for DY production in HERAFitter. The NLO and NNLO calculations can be implemented using *k*-factor or *fast grid* techniques (see Sect. 4 for details), which are interfaced to programs such as MCFM [65, 66, 67], available for NLO calculations, or FEWZ [68] and DYNNLO [69] for NLO and NNLO, with electroweak corrections estimated using MCSANC [70, 71].

### 3.5 Jet production in *ep* and *pp* or \(p \bar{p}\) collisions

The cross section for production of high \(p_T\) hadronic jets is sensitive to the high-*x* gluon PDF (see, e.g., Ref. [16]). Therefore this process can be used to improve the determination of the gluon PDF, which is particularly important for Higgs production and searches for new physics. Jet production cross sections are currently known only to NLO. Calculations for higher-order contributions to jet production in *pp* collisions are in progress [72, 73, 74]. Within HERAFitter, the NLOJet++ program [75, 76] may be used for calculations of jet production. Similarly to the DY case, the calculation is very demanding in terms of computing power. Therefore *fast grid* techniques are used to facilitate the QCD analyses including jet cross section measurements in *ep*, *pp* and \(p\bar{p}\) collisions. For details see Sect. 4.

### 3.6 Top-quark production in *pp* or \(p \bar{p}\) collisions

At the LHC, top-quark pairs (\(t \bar{t}\)) are produced dominantly via *gg* fusion. Thus, LHC measurements of the \(t \bar{t}\) cross section provide additional constraints on the gluon distribution at medium to high values of *x*, on \(\alpha _{\mathrm {s}} \) and on the top-quark mass, \(m_t\) [77]. Precise predictions for the total inclusive \(t \bar{t}\) cross section are available up to NNLO [78] and they can be computed within HERAFitter via an interface to the program HATHOR [79].

Fixed-order QCD predictions for the differential \(t \bar{t}\) cross section at NLO can be obtained by using the program MCFM [67, 80, 81, 82, 83] interfaced to HERAFitter with *fast grid* techniques.

Single top quarks are produced by exchanging electroweak bosons and the measurement of their production cross section can be used, for example, to probe the ratio of the *u* and *d* distributions in the proton as well as the *b*-quark PDF. Predictions for single-top production are available at the NLO accuracy by using MCFM.

Approximate predictions up to NNLO in QCD for the differential \(t\bar{t}\) cross section in one-particle inclusive kinematics are available in HERAFitter through an interface to the program DiffTop [84, 85]. It uses methods of QCD threshold resummation beyond the leading logarithmic approximation. This allows the users to estimate the impact of the recent \(t\bar{t}\) differential cross section measurements on the uncertainty of the gluon density within a QCD PDF fit at NNLO. A fast evaluation of the DiffTop differential cross sections is possible via an interface to *fast grid* computations [86].

## 4 Computational techniques

Precise measurements require accurate theoretical predictions in order to maximise their impact in PDF fits. Perturbative calculations become more complex and time-consuming at higher orders due to the increasing number of relevant Feynman diagrams. The direct inclusion of computationally demanding higher-order calculations into iterative fits is thus not possible currently. However, a full repetition of the perturbative calculation for small changes in input parameters is not necessary at each step of the iteration. Two methods have been developed which take advantage of this to solve the problem: the *k*-factor technique and the *fast grid* technique. Both are available in HERAFitter.

### 4.1 *k*-factor technique

The *k*-factors are defined as the ratio of the prediction of a higher-order (slow) pQCD calculation to a lower-order (fast) calculation using the same PDF. Because the *k*-factors depend on the phase space probed by the measurement, they have to be stored including their dependence on the relevant kinematic variables. Before the start of a fitting procedure, a table of *k*-factors is computed once for a fixed PDF with the time-consuming higher-order code. In subsequent iteration steps the theory prediction is derived from the fast lower-order calculation by multiplying by the pre-tabulated *k*-factors.

This procedure, however, neglects the fact that the *k*-factors are PDF dependent, and as a consequence, they have to be re-evaluated for the newly determined PDF at the end of the fit for a consistency check. The fit must be repeated until input and output *k*-factors have converged. In summary, this technique avoids iteration of the higher-order calculation at each step, but still requires typically a few re-evaluations.

In HERAFitter, the *k*-factor technique can also be used for the fast computation of the time-consuming GM-VFN schemes for heavy quarks in DIS. “FAST” heavy-flavour schemes are implemented with *k*-factors defined as the ratio of calculations at the same perturbative order but for massive vs. massless quarks, e.g. NLO (massive)/NLO (massless). These *k*-factors are calculated only for the starting PDF and hence, the “FAST” heavy-flavour schemes should only be used for quick checks. Full heavy-flavour schemes should be used by default. However, for the ACOT scheme, due to exceptionally long computation times, the *k*-factors are used in the default setup of HERAFitter.

### 4.2 *Fast grid* techniques

*Fast grid* techniques exploit the fact that iterative PDF fitting procedures do not impose completely arbitrary changes to the types and shapes of the parameterised functions that represent each PDF. Instead, it can be assumed that a generic PDF can be approximated by a set of interpolating functions with a sufficient number of judiciously chosen support points. The accuracy of this approximation is checked and optimised such that the approximation bias is negligibly small compared to the experimental and theoretical accuracy. This method can be used to perform the time-consuming higher-order calculations (Eq. 1) only once for the set of interpolating functions. Further iterations of the calculation for a particular PDF set are fast, involving only sums over the set of interpolators multiplied by factors depending on the PDF. This approach can be used to calculate the cross sections of processes involving one or two hadrons in the initial state and to assess their renormalisation and factorisation scale variation.

This technique serves to facilitate the inclusion of time-consuming NLO jet cross section predictions into PDF fits and has been implemented in the two projects, fastNLO [87, 88] and APPLGRID [89, 90]. The packages differ in their interpolation and optimisation strategies, but both of them construct tables with grids for each bin of an observable in two steps: in the first step, the accessible phase space in the parton momentum fractions *x* and the renormalisation and factorisation scales \(\mu _{\mathrm {R}}\) and \(\mu _{\mathrm {F}}\) is explored in order to optimise the table size. In the second step the grid is filled for the requested observables. Higher-order cross sections can then be obtained very efficiently from the pre-produced grids while varying externally provided PDF sets, \(\mu _{\mathrm {R}}\) and \(\mu _{\mathrm {F}}\), or \(\alpha _s(\mu _R)\). This approach can in principle be extended to arbitrary processes. This requires an interface between the higher-order theory programs and the fast interpolation frameworks. For the HERAFitter implementations of the two packages, the evaluation of \(\alpha _s\) is done consistently with the PDF evolution code. A brief description of each package is given below:

The fastNLO project [88] has been interfaced to the NLOJet++ program [75] for the calculation of jet production in DIS [91] as well as 2- and 3-jet production in hadron–hadron collisions at NLO [76, 92]. Threshold corrections at 2-loop order, which approximate NNLO for the inclusive jet cross section for

*pp*and \(p\bar{p}\), have also been included into the framework [93] following Ref. [94]. The latest version of the fastNLO convolution program [95] allows for the creation of tables in which renormalisation and factorisation scales can be varied as a function of two predefined observables, e.g. jet transverse momentum \(p_{\perp }\) and*Q*for DIS. Recently, the differential calculation of top-pair production in hadron collisions at approximate NNLO [84] has been interfaced to fastNLO [86]. The fastNLO code is available online [96]. Jet cross section grids computed for the kinematics of various experiments can be downloaded from this site. The fastNLO libraries and tables with theory predictions for comparison to particular cross section measurements are included in the HERAFitter package. The interface to the fastNLO tables from within HERAFitter was used in a recent CMS analysis, where the impact on extraction of the PDFs from the inclusive jet cross section is investigated [97].In the APPLGRID package [90, 98], in addition to jet cross sections for \(pp(p\bar{p})\) and DIS processes, calculations of DY production and other processes are also implemented using an interface to the standard MCFM parton level generator [65, 66, 67]. Variation of the renormalisation and factorisation scales is possible a posteriori, when calculating theory predictions with the APPLGRID tables, and independent variation of \(\alpha _S\) is also allowed. For predictions beyond NLO, the

*k*-factors technique can also be applied within the APPLGRID framework. As an example, the HERAFitter interface to APPLGRID was used by the ATLAS [99] and CMS [100] Collaborations to extract the strange quark distribution of the proton. The ATLAS strange PDF extracted employing these techniques is displayed in Fig. 4 together with a comparison to the global PDF sets CT10 [17] and NNPDF2.1 [18] (taken from [99]).

## 5 Fit methodology

When performing a QCD analysis to determine PDFs there are various assumptions and choices to be made concerning, for example, the functional form of the input parametrisation, the treatment of heavy quarks and their mass values, alternative theoretical calculations, alternative representations of the fit \(\chi ^2\) and for different ways of treating correlated systematic uncertainties. It is useful to discriminate or quantify the effect of a chosen ansatz within a common framework and HERAFitter is optimally designed for such tests. The methodology employed by HERAFitter relies on a flexible and modular framework that allows independent integration of state-of-the-art techniques, either related to the inclusion of a new theoretical calculation, or of new approaches to the treatment of the data and their uncertainties.

In this section we describe the available options for the fit methodology in HERAFitter. In addition, as an alternative approach to a complete QCD fit, the Bayesian reweighting method, which is also available in HERAFitter, is described.

### 5.1 Functional forms for PDF parametrisation

Careful consideration must be taken when assigning the PDF freedom via functional forms. The PDFs can be parametrised using several predefined functional forms and flavour decompositions, as described briefly below. The choice of functional form can lead to a different shape for the PDF distributions, and consequently the size of the PDF uncertainties can depend on the flexibility of the parametric choice.

*Standard polynomials:*The standard-polynomial form is the most commonly used. A polynomial functional form is used to parametrise the

*x*-dependence of the PDFs, where the index

*j*denotes each parametrised PDF flavour:

*xg*, and the light sea quark distributions, \(x\bar{u}\), \(x\bar{d}\), \(x\bar{s}\), at the starting scale, which is chosen below the charm mass threshold. The form of polynomials \(P_j(x)\) can be varied. The form \((1 + \epsilon _j \sqrt{x} + D_j x + E_j x^2)\) is used for the HERAPDF [21] with additional constraints relating to the flavour decomposition of the light sea. This parametrisation is termed HERAPDF-style. The polynomial can also be parametrised in the CTEQ-style, where \(P_j(x)\) takes the form \(e^{a_3x} (1 + e^{a_4} x + e^{a_5} x^2)\) and, in contrast to the HERAPDF-style, this is positive by construction. QCD number and momentum sum rules are used to determine the normalisations

*A*for the valence and gluon distributions, and the sum-rule integrals are solved analytically.

*Bi-Log-normal distributions:*This parametrisation is motivated by multi-particle statistics and has the following functional form:

*Chebyshev polynomials:*A flexible parametrisation based on the Chebyshev polynomials can be employed for the gluon and sea distributions. Polynomials with argument \(\log (x)\) are considered for better modelling the low-

*x*asymptotic behaviour of those PDFs. The polynomials are multiplied by a factor of \((1-x)\) to ensure that they vanish as \(x\rightarrow 1\). The resulting parametric form reads

*i*. The normalisation factor \(A_g\) is derived from the momentum sum rule analytically. Values of \(N_{g,S}\) to 15 are allowed; however, the fit quality is already similar to that of the standard-polynomial parametrisation from \(N_{g,S} \ge 5\) and has a similar number of free parameters [101].

*External PDFs:*HERAFitter also provides the possibility to access external PDF sets, which can be used to compute theoretical predictions for the cross sections for all the processes available in HERAFitter. This is possible via an interface to LHAPDF [33, 34] providing access to the global PDF sets. HERAFitter also allows one to evolve PDFs from LHAPDF using QCDNUM. Figure 5 illustrates a comparison of various gluon PDFs accessed from LHAPDF as produced with the drawing tools available in HERAFitter.

### 5.2 Representation of \(\chi ^2\)

*Covariance matrix representation:*For a data point \(\mu _i\) with a corresponding theory prediction \(m_i\), the \(\chi ^2\) function can be expressed in the following form:where the experimental uncertainties are given as a covariance matrix \(C_{ik}\) for measurements in bins$$\begin{aligned} \chi ^2 (m)= & {} \sum _{i,k}(m_i-\mu _i)C^{-1}_{ik}(m_k-\mu _k), \end{aligned}$$(18)*i*and*k*. The covariance matrix \(C_{ik}\) is given by a sum of statistical, uncorrelated and correlated systematic contributions:Using this representation one cannot distinguish the effect of each source of systematic uncertainty.$$\begin{aligned} C_{ik}= & {} C^\mathrm{stat}_{ik}+C^\mathrm{uncor}_{ik}+C^\mathrm{sys}_{ik}. \end{aligned}$$(19)*Nuisance parameter representation:*In this case, \(\chi ^2\) is expressed aswhere \(\delta _{i,\mathrm stat}\) and \(\delta _{i,\mathrm unc}\) are relative statistical and uncorrelated systematic uncertainties of the measurement$$\begin{aligned} \chi ^2\left( \varvec{m},\varvec{b}\right)= & {} \sum _i \frac{\left[ {\mu _i} - m_i \left( 1 - \sum _j \gamma ^i_j b_j \right) \right] ^2}{ \textstyle \delta ^2_{i,\mathrm{unc}}m_i^2 + \delta ^2_{i,\mathrm{stat}}\, {\mu _i} m_i \left( 1 - \sum _j \gamma ^i_j b_j\right) } \nonumber \\&+\, \sum _j b^2_j, \end{aligned}$$(20)*i*. Further, \(\gamma ^i_j\) quantifies the sensitivity of the measurement to the correlated systematic source*j*. The function \(\chi ^2\) depends on the set of systematic nuisance parameters \(b_j\). This definition of the \(\chi ^2\) function assumes that systematic uncertainties are proportional to the central prediction values (multiplicative uncertainties, \(m_i(1-\sum _j\gamma _j^ib_j)\)), whereas the statistical uncertainties scale with the square root of the expected number of events. However, additive treatment of uncertainties is also possible in HERAFitter. During the \(\chi ^2\) minimisation, the nuisance parameters \(b_j\) and the PDFs are determined, such that the effect of different sources of systematic uncertainties can be distinguished.*Mixed form representation:*In some cases, the statistical and systematic uncertainties of experimental data are provided in different forms. For example, the correlated experimental systematic uncertainties are available as nuisance parameters, but the bin-to-bin statistical correlations are given in the form of a covariance matrix. HERAFitter offers the possibility to include such mixed forms of information.

### 5.3 Treatment of the experimental uncertainties

*Hessian (Eigenvector) method:*The PDF uncertainties reflecting the data experimental uncertainties are estimated by examining the shape of the \(\chi ^2\) function in the neighbourhood of the minimum [102]. Following the approach of Ref. [102], the Hessian matrix is defined by the second derivatives of \(\chi ^2\) on the fitted PDF parameters. The matrix is diagonalised and the Hessian eigenvectors are computed. Due to orthogonality these vectors correspond to independent sources of uncertainty in the obtained PDFs.*Offset method:*The Offset method [103] uses the \(\chi ^2\) function for the central fit, but only uncorrelated uncertainties are taken into account. The goodness of the fit can no longer be judged from the \(\chi ^2\) since correlated uncertainties are ignored. The correlated uncertainties are propagated into the PDF uncertainties by performing variants of the fit with the experimental data varied by \(\pm 1 \sigma \) from the central value for each systematic source. The resulting deviations of the PDF parameters from the ones obtained in the central fit are statistically independent, and they can be combined in quadrature to derive a total PDF systematic uncertainty. The uncertainties estimated by the offset method are generally larger than those from the Hessian method.*Monte Carlo method:*The Monte Carlo (MC) technique [104, 105] can also be used to determine PDF uncertainties. The uncertainties are estimated using pseudo-data replicas (typically \({>}100\)) randomly generated from the measurement central values and their systematic and statistical uncertainties taking into account all point-to-point correlations. The QCD fit is performed for each replica and the PDF central values and their experimental uncertainties are estimated from the distribution of the PDF parameters obtained in these fits, by taking the mean values and standard deviations over the replicas.The MC method has been checked against the standard error estimation of the PDF uncertainties obtained by the Hessian method. Good agreement was found between the methods provided that Gaussian distributions of statistical and systematic uncertainties are assumed in the MC approach [32]. A comparison is illustrated in Fig. 6. Similar findings were reported by the MSTW global analysis [106].

Since the MC method requires large number of replicas, the eigenvector representation is a more convenient way to store the PDF uncertainties. It is possible to transform MC to eigenvector representation as shown by [107]. Tools to perform this transformation are provided with HERAFitter and were recently employed for the representation of correlated sets of PDFs at different perturbative orders [108].

*j*, \(S_{ij}^{\pm }\),

### 5.4 Treatment of the theoretical input

The results of a QCD fit depend not only on the input data but also on the input parameters used in the theoretical calculations. Nowadays, PDF groups address the impact of the choices of theoretical parameters by providing alternative PDFs with different choices of the mass of the charm quarks, \(m_c\), mass of the bottom quarks, \(m_b\), and the value of \(\alpha _{\mathrm {s}}(m_Z) \). Other important aspects are the choice of the functional form for the PDFs at the starting scale and the value of the starting scale itself. HERAFitter provides the possibility of different user choices of all this input.

### 5.5 Bayesian reweighting techniques

As an alternative to performing a full QCD fit, HERAFitter allows the user to assess the impact of including new data in an existing fit using the Bayesian Reweighting technique. The method provides a fast estimate of the impact of new data on PDFs. Bayesian Reweighting was first proposed for PDF sets delivered in the form of MC replicas by [104] and further developed by the NNPDF Collaboration [109, 110]. More recently, a method to perform Bayesian Reweighting studies starting from PDF fits for which uncertainties are provided in the eigenvector representation has also been developed [106]. The latter is based on generating replica sets by introducing Gaussian fluctuations on the central PDF set with a variance determined by the PDF uncertainty given by the eigenvectors. Both reweighting methods are implemented in HERAFitter. Note that the precise form of the weights used by both methods has recently been questioned [111, 112].

*k*denotes the specific replica for which the weight is calculated and \(\chi ^2_k\) is the \(\chi ^2\) of the new data obtained using the

*k*th PDF replica. Given a PDF set and a corresponding set of weights, which describes the impact of the inclusion of new data, the prediction for a given observable after inclusion of the new data can be computed as the

*weighted*average,

## 6 Alternatives to DGLAP formalism

QCD calculations based on the DGLAP [11, 12, 13, 14, 15] evolution equations are very successful in describing all relevant hard-scattering data in the perturbative region \(Q^2 \gtrsim \) few \( \,\text {GeV} ^2\). At small-*x* (\(x <\) 0.01) and small-\(Q^2\) DGLAP dynamics may be modified by saturation and other (non-perturbative) higher-twist effects. Various approaches alternative to the DGLAP formalism can be used to analyse DIS data in HERAFitter. These include several dipole models and the use of transverse-momentum dependent, or unintegrated PDFs (uPDFs).

### 6.1 Dipole models

The dipole picture provides an alternative approach to proton–virtual photon scattering at low *x* which can be applied to both inclusive and diffractive processes. In this approach, the virtual photon fluctuates into a \(q\bar{q}\) (or \(q\bar{q} g\)) dipole which interacts with the proton [113, 114]. The dipoles can be considered as quasi-stable quantum mechanical states, which have very long life time \({\propto }1/m_p x\) and a size which is not changed by scattering with the proton. The dynamics of the interaction are embedded in a dipole scattering amplitude.

Several dipole models, which show different behaviours of the dipole–proton cross section, are implemented in HERAFitter: the Golec-Biernat–Wüsthoff (GBW) dipole saturation model [28], a modified GBW model which takes into account the effects of DGLAP evolution, termed the Bartels–Golec–Kowalski (BGK) dipole model [30] and the colour glass condensate approach to the high parton density regime, named the Iancu–Itakura–Munier (IIM) dipole model [29].

*GBW model*: In the GBW model the dipole–proton cross section \(\sigma _\mathrm{{dip}}\) is given by

*r*corresponds to the transverse separation between the quark and the antiquark, and \(R_{0}^{2}\) is an

*x*-dependent scale parameter which represents the spacing of the gluons in the proton. \(R_{0}^{2}\) takes the form, \(R_0^2(x) = (x/x_0)^\lambda 1/ \mathrm{\,\text {GeV}}^{2}\), and is called the saturation radius. The cross-section normalisation \(\sigma _0\), \(x_0\), and \(\lambda \) are parameters of the model fitted to the DIS data. This model gives exact Bjorken scaling when the dipole size

*r*is small.

*BGK model*: The BGK model is a modification of the GBW model assuming that the spacing \(R_0\) is inverse to the gluon distribution and taking into account the DGLAP evolution of the latter. The gluon distribution, parametrised at some starting scale by Eq. 14, is evolved to larger scales using DGLAP evolution.

*BGK model with valence quarks*: The dipole models are valid in the low-*x* region only, where the valence quark contribution to the total proton momentum is 5 to 15 % for *x* from 0.0001 to 0.01 [115]. The inclusive HERA measurements have a precision which is better than 2 %. Therefore, HERAFitter provides the option of taking into account the contribution of the valence quarks

*IIM model*: The IIM model assumes an expression for the dipole cross section which is based on the Balitsky–Kovchegov equation [116]. The explicit formula for \(\sigma _\mathrm{{dip}}\) can be found in [29]. The alternative scale parameter \(\tilde{R}\), \(x_{0}\) and \(\lambda \) are fitted parameters of the model.

### 6.2 Transverse momentum dependent PDFs

QCD calculations of multiple-scale processes and complex final-states can necessitate the use of transverse-momentum dependent (TMD) [7], or unintegrated parton distribution and parton decay functions [117, 118, 119, 120, 121, 122, 123, 124, 125]. TMD factorisation has been proven recently [7] for inclusive DIS. TMD factorisation has also been proven in the high-energy (small-*x*) limit [126, 127, 128] for particular hadron–hadron scattering processes, like heavy-flavour, vector boson and Higgs production.

The factorisation formula in Eq. 28 allows for resummation of logarithmically enhanced small- *x* contributions to all orders in perturbation theory, both in the hard-scattering coefficients and in the parton evolution, fully taking into account the dependence on the factorisation scale \(\mu _F\) and on the factorisation scheme [131, 132].

Phenomenological applications of this approach require matching of small- *x* contributions with finite-*x* contributions. To this end, the evolution of the transverse-momentum dependent gluon density \(\mathcal{A} \) is obtained by combining the resummation of small-*x* logarithmic corrections [133, 134, 135] with medium-*x* and large-*x* contributions to parton splitting [11, 14, 15] according to the CCFM evolution equation [23, 24, 25, 26]. Sea quark contributions [136] are not yet included at transverse-momentum dependent level.

The cross section \(\sigma _j\) (\(j= 2 , L\)) is calculated in a FFN scheme, using the boson-gluon fusion process (\(\gamma ^* g^* \rightarrow q \bar{q}\)). The masses of the quarks are explicitly included as parameters of the model. In addition to \(\gamma ^* g^* \rightarrow q\bar{q}\), the contribution from valence quarks is included via \(\gamma ^* q \rightarrow q\) by using a CCFM evolution of valence quarks [137, 138, 139].

*CCFM grid techniques:* The CCFM evolution cannot be written easily in an analytic closed form. For this reason, a MC method is employed, which is, however, time-consuming and thus cannot be used directly in a fit program.

The kernel \(\tilde{\mathcal{A}}\) incorporates all of the dynamics of the evolution. It is defined on a grid of \(50\otimes 50\otimes 50\) bins in \( x, k_t, p\). The binning in the grid is logarithmic, except for the longitudinal variable *x* for which 40 bins in logarithmic spacing below 0.1, and 10 bins in linear spacing above 0.1 are used.

*x*for the values of \(Q^2\) used in the fit. Then the last step in Eq. 30 is performed with a fast numerical Gauss integration, which can be used directly in the fit.

*Functional forms for TMD parametrisation:*For the starting distribution \(\mathcal{A}_0\), at the starting scale \(Q_0^2\), the following form is used:

*N*,

*B*,

*C*,

*D*,

*E*are free parameters. Valence quarks are treated using the method of Ref. [137] as described in Ref. [139] with a starting distribution taken from any collinear PDF and imposition of the flavour sum rule at every scale

*p*.

The TMD parton densities can be plotted either with HERAFitter tools or with TMDplotter [35].

## 7 HERAFitter code organisation

*fast grid*theory files (described in Sect. 4) associated with data files. The source code contains all the relevant information to perform QCD fits with HERA DIS data as a default set.

^{1}The execution time depends on the fitting options and varies from 10 min (using “FAST” techniques as described in Sect. 4) to several hours when full uncertainties are estimated. The HERAFitter code is a combination of C++ and Fortran 77 libraries with minimal dependencies, i.e. for the default fitting options no external dependencies are required except the QCDNUM evolution program [22]. The ROOT libraries are only required for the drawing tools and when invoking APPLGRID. Drawing tools built into HERAFitter provide a qualitative and quantitative assessment of the results. Figure 7 shows an illustration of a comparison between the inclusive NC data from HERA I with the predictions based on HERAPDF1.0 PDFs. The consistency of the measurements and the theory can be expressed by pulls, defined as the difference between data and theory divided by the uncorrelated error of the data. In each kinematic bin of the measurement, pulls are provided in units of standard deviations. The pulls are also illustrated in Fig. 7.

In HERAFitter there are also available cache options for fast retrieval, fast evolution kernels, and the OpenMP (Open Multi-Processing) interface which allows parallel applications of the GM-VFNS theory predictions in DIS.

## 8 Applications of HERAFitter

The HERAFitter program has been used in a number of experimental and theoretical analyses. This list includes several LHC analyses of SM processes, namely inclusive Drell–Yan and *W*and *Z* production [99, 100, 141, 142, 143], inclusive jet production [97, 144], and inclusive photon production [145]. The results of QCD analyses using HERAFitter were also published by HERA experiments for inclusive [21, 146] and heavy-flavour production measurements [147, 148]. The following phenomenological studies have been performed with HERAFitter: a determination of the transverse-momentum dependent gluon distribution using precision HERA data [139], an analysis of HERA data within a dipole model [149], the study of the low-x uncertainties in PDFs determined from the HERA data using different parametrisations [101]. It is also planned to use HERAFitter for studying the impact of QED radiative corrections on PDFs [150]. A recent study based on a set of PDFs determined with HERAFitter and addressing the correlated uncertainties between different orders has been published in [108]. An application of the TMDs obtained with HERAFitter to *W* production at the LHC can be found in [151].

The HERAFitter framework has been used to produce PDF grids from QCD analyses performed at HERA [21, 152] and at the LHC [153], using measurements from ATLAS [99, 144]. These PDFs can be used to study predictions for SM or beyond SM processes. Furthermore, HERAFitter provides the possibility to perform various benchmarking exercises [154] and impact studies for possible future colliders as demonstrated by QCD studies at the LHeC [155].

## 9 Summary

HERAFitter is the first open-source code designed for studies of the structure of the proton. It provides a unique and flexible framework with a wide variety of QCD tools to facilitate analyses of the experimental data and theoretical calculations.

The HERAFitter code, in version 1.1.0, has sufficient options to reproduce the majority of the different theoretical choices made in MSTW, CTEQ and ABM fits. This will potentially make it a valuable tool for benchmarking and understanding differences between PDF fits. Such a study would, however, need to consider a range of further questions, such as the choices of data sets, treatments of uncertainties, input parameter values, \(\chi ^2\) definitions, nuclear corrections, etc.

The further progress of HERAFitter will be driven by the latest QCD advances in theoretical calculations and in the precision of experimental data.

## Acknowledgments

HERAFitter developers team acknowledges the kind hospitality of DESY and funding by the Helmholtz Alliance “Physics at the Terascale” of the Helmholtz Association. We are grateful to the DESY IT department for their support of the HERAFitter developers. We thank the H1 and ZEUS Collaborations for the support in the initial stage of the project. Additional support was received from the BMBF-JINR cooperation program, the Heisenberg–Landau program, the RFBR Grant 12-02-91526-CERN a, the Polish NSC project DEC-2011/03/B/ST2/00220 and a dedicated funding of the Initiative and Networking Fond of Helmholtz Association SO-072. We also acknowledge Nathan Hartland with Luigi Del Debbio for contributing to the implementation of the Bayesian Reweighting technique and would like to thank R. Thorne for fruitful discussions.

## Copyright information

**Open Access**This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Funded by SCOAP^{3}.