1 Introduction

The first operational run of the LHC collider during the years 2009–2013 was a tremendous success, clearly culminating in the announcement of the discovery of a Higgs-boson candidate by the ATLAS and CMS collaborations in July 2012 [1, 2]. Through a large number of experimental analyses, focusing on a variety of final states and observables, the LHC experiments (re)established and underpinned to an unprecedented level of accuracy the validity of the Standard Model of particle physics (SM) [3].

When comparing theoretical predictions with actual collider data, Monte-Carlo event generators prove to be an indispensable tool. In particular parton-shower Monte-Carlo programmes like Herwig  [4, 5], Pythia  [6] and Sherpa  [7, 8] provide simulations at the level of exclusive particle-level final states [9]. The cornerstones of these generators are their implementations of QCD parton-shower algorithms and their modelling of the non-perturbative parton-to-hadron fragmentation process. With the advent of sophisticated techniques to combine parton-shower simulations with exact higher-order QCD calculations at leading [10, 11], next-to-leading [12, 13] and even next-to-next-to-leading order [1417], Monte-Carlo simulations have developed into high-precision tools, encapsulating the best of our current knowledge of perturbative QCD.

With these simulations being widely used for making SM predictions, e.g. of the background expectation in searches for New Physics or the detailed properties of Higgs-boson production final states, a comprehensive and efficient evaluation of associated theoretical uncertainties is of utmost importance. A comprehensive list of sources for generator uncertainties has been quoted in [18]. Following the categories identified there, when focusing on systematics related to the perturbative phases of event evolution, the following uncertainties might be distinguished:

  • Parametric uncertainties reflecting the dependence of the prediction on input parameters such as couplings, particle masses or the parton-density functions (PDFs).

  • Perturbative uncertainties originating from the fact that perturbation theory is used in making predictions, to fixed-order in the matrix elements and resummed to all-orders with a certain logarithmic accuracy in the showers, thereby, however, neglecting higher-order contributions. Similarly, the use of the large-\(N_c\) approximation in the showers belongs in this category.

  • Algorithmic uncertainties corresponding to the actual choices made in the implementation of the shower algorithm, i.e. for the evolution variable, the inclusion of non-singular terms in the splitting functions, or the employed matching/merging prescription. Per construction, for sensible choices, these systematics also correspond to higher-order perturbative corrections, but might be addressed separately.

In addition to the listed categories, generically non-perturbative effects such as hadronisation or the underlying event are described through phenomenological models that feature various generator-specific choices and parameters, typically subject to tuning against experimental data, see for instance [19, 20].

This publication focuses on the efficient evaluation of parametric and (some) perturbative uncertainties in matrix-element plus parton-shower simulations within the Sherpa event-generator framework. We present a comprehensive approach to fully trace the \(\alpha _s\) and PDF dependences in the matrix-element and parton-shower components of particle-level Sherpa simulations in leading- [21] and next-to-leading [22] order merged calculations based on the Sherpa dipole-shower implementation [23]. Furthermore, we provide the means to quickly evaluate the renormalisation- and factorisation-scale dependence of the fixed-order matrix-element contributions. Our approach is based on event-wise reweighting and allows us to provide with a single generator run a set of variational event weights corresponding to the predefined parameter and scale variations, that would otherwise have to be determined through dedicated re-evaluations. The alternative event weights can either be accessed through the output of a HepMC event record [24], or directly passed via the internal interface of Sherpa to the Rivet analysis framework [25].

The systematics of leading-order parton-shower simulations with Herwig 7 have recently been discussed in [18], a corresponding reweighting procedure has been presented in [26]. A similar reweighting implementation for the Pythia 8 parton shower has also appeared recently [27]. A discussion of uncertainty estimates for the Vincia shower model can be found in [2830]. A comprehensive comparison of various generators is presented in [31]. The impact of PDFs in parton-shower simulations has been discussed in [32, 33].

Our paper is organised as follows. In Sect. 2 we review the dependence structure of leading-order (LO) and next-to-leading-order QCD calculations on \(\alpha _s\), the PDFs and the renormalisation and factorisation scales, and introduce the reweighting approach. In Sect. 3 we extend this to parton-shower simulations and in particular the algorithm employed in the Sherpa framework. In Sect. 4 we present the generalisation of the reweighting approach to multijet-merged calculations, based on leading and next-to-leading-order matrix elements matched to the parton shower. Our conclusions are summarised in Sect. 6. In Appendix A we present CPU time measurements that assess the reduction in computational time when the reweighting is used. The technical details on enabling and accessing the variations considered in Sherpa runs are listed in Appendix B.

Note, while fixed-order reweighting is already available with Sherpa-2.2, the general reweighting implementation described here, including parton showers and multijet merging, will be part of the next release, i.e. Sherpa-2.3.

2 Reweighting fixed-order calculations

In order to re-evaluate a QCD cross-section calculation for a new choice of input parameters, i.e. \(\alpha _\mathrm{s}\), PDFs or renormalisation and factorisation scales, it is necessary to understand and trace-out its respective dependences. This is a rather easy task at leading-order (LO) but is already more involved when considering next-to-leading order (NLO) calculations in a given subtraction scheme. However, these decompositions have been presented for Catani–Seymour dipole subtraction and the FKS subtraction formalism in [34, 35].

In this section, we briefly review the dependence structure and discuss the corresponding reweighting equations for LO and Catani–Seymour subtracted NLO calculations within the Sherpa framework. With this paragraph we also introduce the notation used in the later sections, which explore the reweighting of more intricate QCD calculations, involving QCD parton showers and merging different final-state multiplicity processes.

2.1 The leading-order case

A LO parton-level calculation of some observable or measurement function of the final-state momenta O is based on Born matrix elements \(\text {B}\) of \(\mathcal {O}\left( \alpha _\mathrm{s}^{n}\right) \). It exhibits explicit dependences on the PDFs \(f=f_a(x,\mu _F^2)\), the running strong coupling \(\alpha _\mathrm{s}=\alpha _\mathrm{s}(\mu _R^2)\), the renormalisation scale \(\mu _R\) and the factorisation scale \(\mu _F\):

$$\begin{aligned} \langle O\rangle ^{\textsc {LO}}= & {} \int \text {d}\Phi _B\;\text {B}(\Phi _B)\;O(\Phi _B)\nonumber \\= & {} \lim \limits _{N\rightarrow \infty }\,\frac{1}{N_\text {trial}}\; \sum \limits _{i=1}^N \text {B}(\Phi _{B,i})\;O(\Phi _{B,i}) \end{aligned}$$
(1)

with \(N_\text {trial}=\sum _{i=1}^N\left. n_\text {trial}\right. _{\!,i}\), \(n_\text {trial}\) denoting the number of attempts to generate an accepted event configuration, and

$$\begin{aligned} \text {B}(\Phi _B)\equiv & {} \text {B}(\Phi _B;\alpha _\mathrm{s},f;\mu _R,\mu _F)\nonumber \\= & {} \alpha _\mathrm{s}^n(\mu _R^2)\;f_{a}(x_a,\mu _F^2)\;f_{b}(x_b,\mu _F^2)\;\text {B}^\prime (\Phi _B) . \end{aligned}$$
(2)

Therein, the \(\text {B}\) contains all couplings, symmetry and flux factors, and PDFs, whereas \(\text {B}^\prime \) has the PDFs, here for assumed two incoming parton flavours a and b, and the strong coupling stripped off. Note that we have suppressed the event index i here. It is understood that \(\text {B}\) depends on the event kinematics and that \(\mu _R\) and \(\mu _F\) can be chosen dynamically, i.e. in a momentum (and flavour) dependent way. Changing the input parameters \(\mu _R\rightarrow \tilde{\mu }_R\), \(\mu _F\rightarrow \tilde{\mu }_F\), and the input functions \(f\rightarrow \tilde{f}\), \(\alpha _\mathrm{s}\rightarrow \tilde{\alpha }_\text {s}\) results in

$$\begin{aligned}&\text {B}(\Phi _B;\tilde{\alpha }_\text {s},\tilde{f};\tilde{\mu }_R,\tilde{\mu }_F) \nonumber \\&\quad = \tilde{\alpha }_\text {s}^n(\tilde{\mu }_R^2)\;\tilde{f}_a(x_a,\tilde{\mu }_F^2)\;\tilde{f}_b(x_b,\tilde{\mu }_F^2)\; \text {B}^\prime (\Phi _B) . \end{aligned}$$
(3)

From Eq. (3) we conclude that for PDF reweighting it is necessary to know the \(x_{a,b}\) values of the event.

For an unweighted event generation, the event weights are uniform initially, i.e. \(\text {B}(\Phi _B;\alpha _\mathrm{s},f;\mu _R,\mu _F)=w_\text {norm}\), Eq. (1) thus simplifies to

$$\begin{aligned} \langle O\rangle ^{\textsc {LO}} =\lim \limits _{N\rightarrow \infty }\,\frac{w_\text {norm}}{N_\text {trial}}\; \sum \limits _{i=1}^N O(\Phi _{B,i}) . \end{aligned}$$
(4)

Scale and parameter variations then work the very same way as for weighted events. Applying Eq. (3) then, however, leads to a broader weight distribution and Eq. (1) has to be used again. Partially unweighted events can be treated on the same footing. These conclusions hold irrespective of the type of event generation whenever (partially) unweighted event generation is possible, i.e. when the weight distribution is bounded from above and below. We therefore will not comment further on it.

2.2 The next-to-leading-order case

A full NLO parton-level calculation including real-emission and one-loop corrections of \(\mathcal {O}\left( \alpha _\mathrm{s}^{n+1}\right) \) based in Catani–Seymour dipole subtraction [36, 37] has the following structure

$$\begin{aligned} \langle O\rangle ^{\textsc {NLO}}&= \int \text {d}\Phi _B\, \left[ \phantom {\left. + \int \text {d}x_{a/b}^\prime \, \text {KP}(\Phi _B,x_{a/b}^\prime ) \right] } \text {B}(\Phi _B) + \text {VI}(\Phi _B) \right. \nonumber \\&\quad \left. + \int \text {d}x_{a/b}^\prime \, \text {KP}(\Phi _B,x_{a/b}^\prime ) \right] \,O(\Phi _B)\nonumber \\&\quad + \int \text {d}\Phi _R\;\left[ \phantom {\left. - \sum \limits _{j}\text {D}_{S,j}(\Phi _{B,j}\cdot \Phi _1^j)\,O(\Phi _{B,j}) \right] } \text {R}(\Phi _R)\,O(\Phi _R) \right. \nonumber \\&\quad \left. - \sum \limits _{j}\text {D}_{S,j}(\Phi _{B,j}\cdot \Phi _1^j)\,O(\Phi _{B,j}) \right] \nonumber \\&= \lim _{N\rightarrow \infty }\frac{1}{N_\text {trial}} \left\{ \phantom {\left. \left. -\sum \limits _{j}\text {D}_{S,j}(\Phi _{B,j,i}\cdot \Phi _{1,i}^j)\,O(\Phi _{B,j,i}) \right] \right\} } \sum \limits _{i=1}^{N_B}\left[ \phantom {\left. \left. + \text {VI}(\Phi _{B,i}) + \text {KP}(\Phi _{B,i},x_{a/b}^\prime ) \right] \,O(\Phi _{B,i}) \right. } \text {B}(\Phi _{B,i})\right. \right. \nonumber \\&\quad \left. \left. + \text {VI}(\Phi _{B,i}) + \text {KP}(\Phi _{B,i},x_{a/b}^\prime ) \right] \,O(\Phi _{B,i}) \right. \nonumber \\&\quad \left. + \sum \limits _{i=1}^{N_R} \left[ \phantom {\left. \left. -\sum \limits _{j}\text {D}_{S,j}(\Phi _{B,j,i}\cdot \Phi _{1,i}^j)\,O(\Phi _{B,j,i}) \right] \right\} } \text {R}(\Phi _{R,i})\,O(\Phi _{R,i})\right. \right. \nonumber \\&\quad \left. \left. -\sum \limits _{j}\text {D}_{S,j}(\Phi _{B,j,i}\cdot \Phi _{1,i}^j)\,O(\Phi _{B,j,i}) \right] \right\} , \end{aligned}$$
(5)

where the new parts have the following dependences

$$\begin{aligned}&\text {VI}(\Phi _B) \equiv \text {VI}(\Phi _B;\alpha _\mathrm{s},f;\mu _R,\mu _F) ,\nonumber \\&\text {KP}(\Phi _B,x_{a/b}^\prime ) \equiv \text {KP}(\Phi _B,x_{a/b}^\prime ;\alpha _\mathrm{s},f;\mu _R,\mu _F) , \nonumber \\&\text {R}(\Phi _R) \equiv \text {R}(\Phi _R;\alpha _\mathrm{s},f;\mu _R,\mu _F) , \nonumber \\&\text {D}_{S,j}(\Phi _{B,j}\cdot \Phi _1^j) \equiv \text {D}_{S,j}(\Phi _{B,j}\cdot \Phi _1^j;\alpha _\mathrm{s},f;\mu _{R,j},\mu _{F,j}) . \end{aligned}$$
(6)

Therein, \(\text {VI}\) combines the renormalised one-loop matrix element with the \(\text {I}\)-operator of the Catani–Seymour subtraction scheme. This operator gives the flavour-diagonal endpoint contribution of the integrated subtraction terms. \(\text {VI}\) is thus separately infrared finite and exhibits a common transformation behaviour. Thus, for \(\alpha \rightarrow \tilde{\alpha }_\text {s}\), \(f\rightarrow \tilde{f}\), \(\mu _R\rightarrow \tilde{\mu }_R\) and \(\mu _F\rightarrow \tilde{\mu }_F\)

$$\begin{aligned}&\text {VI}(\Phi _B;\tilde{\alpha }_\text {s},\tilde{f};\tilde{\mu }_R,\tilde{\mu }_F)\nonumber \\&\quad = \tilde{\alpha }_\text {s}^{n+1}(\tilde{\mu }_R^2)\;\tilde{f}_a(x_a,\tilde{\mu }_F^2)\;\tilde{f}_b(x_b,\tilde{\mu }_F^2)\; \bigg [\text {VI}^\prime (\Phi _B)\nonumber \\&\qquad +c_R^{\,\prime \,(0)}l_R+\tfrac{1}{2}\,c_R^{\,\prime \,(1)}l_R^2\bigg ] , \end{aligned}$$
(7)

with \(\alpha _\mathrm{s}\)- and PDF-independent coefficients \(c_R^{\,\prime \,(i)}\) and \(l_R=\log (\tilde{\mu }_R^2/\mu _R^2)\). Again, \(\text {VI}^\prime \) is stripped of all coupling and PDF factors.

The \(\text {KP}\)-terms are defined as the remainders of the integrated dipole subtraction terms, containing all flavour changing and \(x_{a/b}^\prime \)-dependent pieces, combined with the collinear counterterms. Here, \(x_{a/b}^\prime \) are the ratios of the partonic momentum fractions in the respective dipole before and after radiation. Again, this combination is separately infrared finite and transforms as one unit. When evaluated for the modified set of input parameters, they read

$$\begin{aligned}&\text {KP}(\Phi _B,x_{a/b}^\prime ;\tilde{\alpha }_\text {s},\tilde{f};\tilde{\mu }_R,\tilde{\mu }_F)\nonumber \\&\quad = \tilde{\alpha }_\text {s}^{n+1}(\tilde{\mu }_R^2)\,\tilde{f}_a(x_a,\tilde{\mu }_F^2)\nonumber \\&\qquad \times \tilde{f}_b(x_b,\tilde{\mu }_F^2)\; \text {KP}^\prime (\Phi _B,x_{a/b}^\prime ;\tilde{f};\tilde{\mu }_F)\nonumber \\&\quad = \tilde{\alpha }_\text {s}^{n+1}(\tilde{\mu }_R^2)\,\bigg [\left( \tilde{f}_a^q c_{F,a}^{\,\prime \,(0)} + \tilde{f}_a^q(x_a^\prime )\, c_{F,a}^{\,\prime \,(1)} +\tilde{f}_a^g c_{F,a}^{\,\prime \,(2)} \right. \nonumber \\&\qquad \left. + \tilde{f}_a^g(x_a^\prime )\, c_{F,a}^{\,\prime \,(3)}\right) \tilde{f}_b(x_b,\tilde{\mu }_F^2)\nonumber \\&\qquad +\tilde{f}_a(x_a,\tilde{\mu }_F^2)\left( \tilde{f}_b^q c_{F,b}^{\,\prime \,(0)} + \tilde{f}_b^q(x_b^\prime )\, c_{F,b}^{\,\prime \,(1)} +\tilde{f}_b^g c_{F,b}^{\,\prime \,(2)} \right. \nonumber \\&\qquad \left. + \tilde{f}_b^g(x_b^\prime )\, c_{F,b}^{\,\prime \,(3)}\right) \bigg ] \end{aligned}$$
(8)

with the coefficients \(c_{F,a/b}^{\,\prime \,(i)}=\tilde{c}_{F,a/b}^{\,(i)}+\bar{c}_{F,a/b}^{\,(i)}\,l_F\) for \(i\in \{0,\ldots ,3\}\), \(l_F=\log (\tilde{\mu }_F^2/\mu _F^2)\), and

$$\begin{aligned} \tilde{f}_q^q&=\tilde{f}_q(x_q,\tilde{\mu }_F^2),&\tilde{f}_g^q&= \sum _q \tilde{f}_q(x_g,\tilde{\mu }_F^2) ,\\ \tilde{f}_q^q(x_q^\prime )&= x_q^\prime \tilde{f}_q(\tfrac{x_q}{x_q^\prime },\tilde{\mu }_F^2) ,&\tilde{f}_g^q(x_g^\prime )&= x_g^\prime \sum _q \tilde{f}_q(\tfrac{x_g}{x_g^\prime },\tilde{\mu }_F^2) ,\\ \tilde{f}_q^g&= \tilde{f}_g(x_q,\tilde{\mu }_F^2) ,&\tilde{f}_g^g&= \tilde{f}_g(x_g,\tilde{\mu }_F^2) ,\\ \tilde{f}_q^g(x_q^\prime )&= x_q^\prime \tilde{f}_g(\tfrac{x_q}{x_q^\prime },\tilde{\mu }_F^2) ,&\tilde{f}_g^g(x_g^\prime )&= x_g^\prime \tilde{f}_g(\tfrac{x_g}{x_g^\prime },\tilde{\mu }_F^2) , \end{aligned}$$

for \(a,b= \{q,\,g\}\), respectively. Thereby, the sum over q includes all light-quark flavours, corresponding to all potential quarks emitting a gluon. We note that in order to obtain the reweighted expressions for the \(\text {VI}\) and \(\text {KP}\) contributions the additional book-keeping of the \(c_R^{\,\prime \,(i)}\), \(\tilde{c}_{F,a/b}^{\,(i)}\) and \(\bar{c}_{F,a/b}^{\,(i)}\) (altogether 18)Footnote 1 coefficients is required [34]. Due to its composite structure, the \(\text {KP}\)-terms do not possess a coupling- and PDF-stripped version \(\text {KP}^\prime \). Nonetheless, we formally introduce a still PDF-dependent version \(\text {KP}^\prime \) in Eq. (8) for reference in later sections.

The remaining pieces of Eq. (5) are the Born matrix element \(\text {B}\), the real emission contribution \(\text {R}\) and the differential dipole subtraction terms \(\text {D}_{S,j}\). The latter defines an underlying Born configuration \(\Phi _{B,j}\) through its dipole-dependent phase-space map, employing the phase-space factorisation \(\Phi _R=\Phi _{B,j}\cdot \Phi _1^j\). While the transformation of \(\text {B}\) under the exchange of input parameters was detailed in Eq. (3), the transformation of \(\text {R}\) and the \(\text {D}_{S,j}\) contributions works identically, merely having to adjust the power of the strong-coupling factor.

2.3 Validation

The reweighting approach outlined above has been implemented in the Sherpa framework for the two matrix-element generators Amegic [38] and Comix [39, 40] in conjunction with the corresponding Catani–Seymour dipole-subtraction implementation [41]. The required decomposition of virtual amplitudes is generic and can be used for matrix elements from BlackHat [34, 42], OpenLoops [43], GoSam [44], Njet [45], the internal library of simple \(2\rightarrow 2\) processes, or, via the BLHA interface [46].

Here we shall present the validation of the reweighting approach in particular of NLO QCD event samples. For that purpose we consider W-boson zproduction in 13 \({\text {TeV}}\) proton-proton collisions at NLO QCD, and focus on the transverse-momentum distribution for the Wand the lepton it decays to. In Fig. 1, the scale, \(\alpha _\mathrm{s}\) and PDF uncertainty bands for the W\(p_\perp \) and the lepton \(p_\perp \) distributions are presented. All three bands have been produced for both observables using the internal reweighting of Sherpa from a single event generation run using \(\mu _F= \mu _R= H_T'\) with

$$\begin{aligned} H_T' \equiv m_{\perp }^{\mathrm{e}\nu } + \sum _{j} p_\perp ^j , \end{aligned}$$
(9)

a scale choice that has been motivated in [47]. For the PDFs the NNPDF 3.0 NLO set [48] has been used with \(\alpha _\mathrm{s}(m_{\mathrm{Z}}^2) = 0.118\). The running of \(\alpha _\mathrm{s}(\mu _R^2)\) is calculated within Sherpa using its renormalisation group equation at NLO with parton thresholds as given by the PDF.

Fig. 1
figure 1

The gauge-boson and lepton transverse momenta in off-shell Wproduction at the LHC with independent variations of \(\mu _{F,R}\) (green), \(\alpha _\mathrm{s}\) (red) and the PDF (blue). In the right-hand panels, the individual uncertainty bands, calculated via an on-the-fly reweighting, are compared to uncertainty bands from dedicated calculations (yellow). They are found to be equal

The treatment of partonic thresholds deserves a short discussion. While any flavour thresholds in the running of \(\alpha _s\) do not present any challenges to the reweighting algorithm as \(\alpha _s(\mu ^2)>0\) for all \(\mu ^2>0\) and any loop order, this is different for the PDFs, where crossing a parton threshold results in a vanishing PDF for that flavour. Hence, the cross section component of the given partonic channel may be zero if no other non-zero contribution exists. Such an event will be discarded and, thus, cannot be reweighted. If now the respective parton threshold of the target PDF is smaller than the target factorisation scale while the one of the nominal PDF is larger than the nominal factorisation scale we are in a region of phase space where the reweighting must fail to reproduce a dedicated calculation. This could be remedied by storing events as well which vanish solely due to crossing PDF thresholds. However, as only observables sensitive to on-threshold production of light quarks (typically bottom quarks) are susceptible to these effects, they are of little relevance to the vast majority of LHC observables.Footnote 2

For the scale uncertainty band we employ a 7-point scale variation for \(\mu _R\) and \(\mu _F\): Both scales are varied independently by factors of \(\frac{1}{2}\) and 2, omitting the variations with ratios of 4 between the two scales. The uncertainty is then taken as the envelope of all variations. The \(\alpha _\mathrm{s}\) uncertainty band is generated by varying the numerical value of the starting point of the running coupling, \(\alpha _\mathrm{s}(m_{\mathrm{Z}}^2)\), to the following five values: 0.115, 0.117, 0.118, 0.119 and 0.121. Note that this variation of \(\alpha _\mathrm{s}\) should also enter the PDF fit, and hence the PDFs are varied consistently. This is expected to extenuate the effect of the \(\alpha _\mathrm{s}\) variation in most cases, as the PDF of the varied \(\alpha _\mathrm{s}\) is still fitted to describe the same data as the PDF of the nominal \(\alpha _\mathrm{s}\). This consistent \(\alpha _\mathrm{s}\)+PDF variation is also part of the PDF4LHC recommendations for LHC Run II [49]. The envelope of these \(\alpha _\mathrm{s}\)+PDF variations is taken as the respective uncertainty. The pure PDF uncertainty estimate is generated using the average and the standard deviation over the 100 PDF replicas provided by the NNPDF3.0 set (at a fixed value of \(\alpha _\mathrm{s}=0.118\)). This corresponds to the 68% confidence level. This set-up is repeated for later reference in Table 1, along with a CT14 PDF variant, which is used in later studies.

Table 1 Variations, which are used for studies in this publication, with two variants depending on the PDF choice. Note that each \(\alpha _\mathrm{s}(m_Z^2)\) value is used with its associated PDF set variant in the context of hadronic collisions

Comparing the uncertainties for the W\(p_\perp \), we observe that the scale uncertainties are the largest, with relative deviations of \(\mathcal {O}\left( {10}\%\right) \). The relative deviations related to the PDF and the strong coupling do not exceed \(\sim \)3%. The scale uncertainty exhibits a minimum for \({100}{~{\text {TeV}}}< p_\perp ^{\mathrm{W}} < {200}{~{\text {TeV}}}\). The reason is that the variations of \(\mu _F\) alone cross the central value prediction in this range, such that only the \(\mu _R\) variation contributes to the overall scale uncertainty here.

Note that \(p_\perp ^{\mathrm{W}} = 0\) at \(\mathcal {O}\left( \alpha _\mathrm{s}^0\right) \), and therefore only real-emission events contribute to the distribution. Hence, the observable is only described to leading-order. We introduce it here as a reference for our later validations including the parton-shower, which use this observable. For the current validation, we complement the discussion of the Wtransverse momentum with the one of the lepton it decays to, as the region below \(m_{\mathrm{W}}/2\) is already filled at \(\mathcal {O}\left( \alpha _\mathrm{s}^0\right) \), and therefore we have in part a true next-to-leading description for this observable. In fact, the scale uncertainties are much larger in that region, especially towards the \(m_{\mathrm{W}}/2\) threshold, and at the lepton \(p_\perp \) cut at 25 \({\text {TeV}}\). This gives a more realistic picture of the perturbative uncertainties than in the leading-order region above the threshold.

The small panels on the right of Fig. 1 compare the uncertainty bands calculated using the reweighting approach to uncertainty bands where dedicated calculations have been done for each variation. We observe that all bands overlap perfectly for both observables. This is because the reweighting as presented above is exact and for all runs the same phase-space points could be used: The reweighted and the dedicated predictions for each variation are therefore equal, and so are the uncertainty bands.Footnote 3

3 Reweighting parton-shower calculations

If parton-showering is added to a LO calculation, the value of the observable is not evaluated at \(\Phi _B\) any longer, but at \(\text {PS}(\Phi _B)\), which denotes the phase-space point after showering. Applying this modification to Eq. (1) yields

$$\begin{aligned} \langle O\rangle ^{\textsc {LoPs}}= & {} \int \text {d}\Phi _B\;\text {B}(\Phi _B) \;\text {PS}(O,\Phi _B)\nonumber \\= & {} \lim \limits _{N\rightarrow \infty }\,\frac{1}{N_\text {trial}}\; \sum \limits _{i=1}^N \text {B}(\Phi _{B,i}) \;\text {PS}(O,\Phi _{B,i}) . \end{aligned}$$
(10)

Therefore the reweighting for \(\text {B}\) does not need to be altered, but the parton-shower emissions depend on the PDF, the strong coupling, their respective scale prefactors \(k_{\alpha _\mathrm{s}}\) and \(k_{{f}}\) (detailed below) and the starting scale \(\mu _Q\), i.e.

$$\begin{aligned} \text {PS}(O,\Phi _B)\equiv & {} \text {PS}(O,\Phi _B;\mu _Q^2) \nonumber \\\equiv & {} \text {PS}(O,\Phi _B;k_{\alpha _\mathrm{s}},k_{{f}};\alpha _\mathrm{s},f;\mu _Q^2). \end{aligned}$$
(11)

In order to reweight the parton-shower emissions, we first need to identify its exact dependence structure. Schematically, it acts on the phase-space element in the following way

$$\begin{aligned}&\text {PS}(O,\Phi _n;t^\prime )= \Delta _n(t_\text {IR},t^\prime )\,O(\Phi _n)\nonumber \\&+\int _{t_\text {IR}}^{t^\prime }\text {d}\Phi _1\; \text {K}_n(\Phi _1)\,\Delta _n(t,t^\prime )\, \text {PS}(O,\Phi _{n+1};t) , \end{aligned}$$
(12)

where the Sudakov form factor of the n-parton state, \(\Delta _n\), and its splitting kernel \(\text {K}_n\) have been introduced. While the first term describes the no-emission probability between the starting scale \(t^\prime \) and the infrared cut-off \(t_\text {IR}\) and therefore does not change the phase-space element, the second term describes the emission of a parton at scale \(t\) in the configuration \(\text {d}\Phi _1=\text {d}t\,\text {d}z\,\text {d}\phi \;J(t,z)\) (the integration boundaries are to be understood in this decomposition), leading to a configuration \(\text {d}\Phi _{n+1}=\text {d}\Phi _n\cdot \text {d}\Phi _1\). The Jacobian J is not relevant to the discussion here and is subsequently absorbed in the splitting kernel \(\text {K}_n\). As the emissions are ordered in \(t\), the Sudakov form factor in the second term ensures that the current emission is the hardest after starting the evolution at \(t^\prime \). Additional emissions may occur at smaller \(t\) and are not resolved at this stage – they are described by the parton shower acting on the newly produced state \(\Phi _{n+1}\) with the new starting scale \(t\). In Eq. (12) the dependences on \(\alpha _\mathrm{s}\), the PDFs, and their respective scale prefactors \(k_{\alpha _\mathrm{s}}\) and \(k_{{f}}\) have been omitted for brevity. They directly carry over to the splitting kernel and the Sudakov form factor, according to

$$\begin{aligned}&\Delta _n(t_2,t_1;k_{\alpha _\mathrm{s}},k_{{f}};\alpha _\mathrm{s},f)\nonumber \\&\quad = \exp \left( -\int _{t_2}^{t_1} \text {d}\Phi _1\; \text {K}_n(\Phi _1;k_{\alpha _\mathrm{s}},k_{{f}};\alpha _\mathrm{s},f) \right) . \end{aligned}$$
(13)

When considering parton-shower emissions off NLO QCD matrix elements special emphasis has to be given to the first emission as described in Sect. 3.3 below.

3.1 Parton-shower dependence structure

The default parton shower of Sherpa, dubbed CSShower [23], is based on Catani–Seymour dipole factorisation [36, 37]. Each branching of an emitter parton into two daughters is witnessed by a spectator parton, which takes the recoil, and ensures that on-shell states are transferred into on-shell states and energy–momentum conservation is respected simultaneously. The emitter and spectator partons reside either in the initial-state (I) or final-state (F), such that four dipole types need to be distinguished: II, IF, FI and FF. In this notation, the first letter refers to emitter, and the second to the spectator parton. The no-branching probabilities are given by the four corresponding Sudakov form factors

$$\begin{aligned}&\Delta _n(t_2,t_1;k_{\alpha _\mathrm{s}},k_{{f}};\alpha _\mathrm{s},f) \nonumber \\&\quad = \prod \limits _{\text {type}\,\in \,\{\text {FF},\text {FI},\text {IF},\text {II}\}} \Delta _n^\text {type}(t_2,t_1;k_{\alpha _\mathrm{s}},k_{{f}};\alpha _\mathrm{s},f) . \end{aligned}$$
(14)

They share the common form

$$\begin{aligned}&\Delta _n^\text {type}(t_2,t_1;k_{\alpha _\mathrm{s}},k_{{f}};\alpha _\mathrm{s},f) \nonumber \\&\;=\exp \left( -\sum _{ij}\sum _{k} \int _{t_2}^{t_1} \text {d}t\int _{z_-}^{z_+} \text {d}z\;\right. \nonumber \\&\qquad \left. \alpha _\mathrm{s}(k_{\alpha _\mathrm{s}}t)\, \text {K}^\prime _{ij,k}(t,z)\, \frac{f_{c'}(\tfrac{\eta _{c}}{x},k_{{f}}t)}{f_{c}(\eta _{c},k_{{f}}t)} \right) , \end{aligned}$$
(15)

wherein the kinematics of the splitting are given by the default choice for \(t=Q^2\,y\,z(1-z)\) in the massless case while the \(\text {K}^\prime _{ij,k}(t,z)\) denote the coupling and PDF stripped splitting kernels incorporating the remaining pieces of the \(\text {K}_{ij,k}\) and the Jacobian J of the phase-space parametrisation. The precise definitions of the variables for each dipole type are given in Table 2. It directly follows that for FF-type dipole splittings the ratio of PDFs is simply unity. Eq. (15) further details the dependence on the \(\alpha _\mathrm{s}\) and PDF scale factors \(k_{\alpha _\mathrm{s}}\) and \(k_{{f}}\). These multiplicative factors as well as their variations are assumed to be of order one, such that they do not induce spurious large logarithms. The generalisation to the massive case is straightforward and only involves generalised definitions of \(t\), x, y and z, cf. [23].

Table 2 Definition of the evolution and splitting variables for each dipole type. The fifth column lists the splitting process as seen from the Born process, c and \(c'\) refer to the flavour of the initial state before and after the splitting process, respectively. The variables \(y_{ij,k}\), \(\tilde{z}_i\), \(x_{ij,a}\), \(x_{jk,a}\), \(x_{j,ab}\), \(u_j\) and \(v_j\) are defined in [23, 36, 37]

3.2 Reweighting trial emissions

To numerically integrate Sudakov form factors typically the Sudakov Veto Algorithm is used [5055]. Therein the integrands \(\text {K}\) found in the Sudakov form factors are replaced with integrable overestimates \(\hat{\text {K}}\). This is balanced by only accepting a proposed emission with probability \(P_\text {acc}= \text {K}/ \hat{\text {K}}\). A multiplicative factor in \(\text {K}\) is therefore equivalent to a multiplicative factor in \(P_\text {acc}\) [52]. This observation is for example used to apply matrix-element corrections [54], where the splitting kernels are replaced with a real-emission-like kernel \(\text {R}/\text {B}\). This is done a-posteriori, i.e. the event weight is multiplied by \((\text {R}/\text {B})/\text {K}\), the emission itself is unchanged. The same method is also used in the Vincia parton shower to calculate uncertainty variations for different scales, finite terms of the antenna functions, ordering parameters and sub-leading colour corrections [28]. Here we employ this technique to account for variations of the strong-coupling parameter and the PDFs in the shower evolution of LO and NLO QCD matrix elements.

As has been laid out in the previous section, the emission kernels \(\text {K}\) depend linearly on \(\alpha _\mathrm{s}\) and on a ratio of parton densities \(f_{c'}(\eta _c/x,k_{{f}}t)/f_{c}(\eta _c,k_{{f}}t)\). A change of PDFs \(f \rightarrow \tilde{f}\), the strong coupling \(\alpha _\mathrm{s}\rightarrow \tilde{\alpha }_\text {s}\) and the scale prefactors entering both, i.e. \(k_{\alpha _\mathrm{s}}\rightarrow \tilde{k}_{\alpha _\mathrm{s}}\) and \(k_{{f}}\rightarrow \tilde{k}_{{f}}\), is equivalent to modifying the emission probability accordingly:Footnote 4

$$\begin{aligned}&P_\text {acc}\rightarrow q_\text {acc}\,P_\text {acc},\nonumber \\&q_\text {acc}\equiv \frac{\tilde{\alpha }_\text {s}(\tilde{k}_{\alpha _\mathrm{s}}t)}{\alpha _\mathrm{s}(k_{\alpha _\mathrm{s}}t)}\; \frac{\tilde{f}_{c'}(\tfrac{\eta _c}{x},\tilde{k}_{{f}}t)}{f_{c'}(\tfrac{\eta _c}{x},k_{{f}}t)}\; \frac{f_{c}(\eta _c,k_{{f}}t)}{\tilde{f}_{c}(\eta _c,\tilde{k}_{{f}}t)} , \end{aligned}$$
(16)

where the scale dependence and the definition of \(\eta _c\) and x can be read off the Sudakov form factors given in Eq. (15) and Table 2. In case of FF dipoles Eq. (16) simplifies significantly as the ratios of PDF factors reduces to unity. It further follows, that the event weight for each accepted emission needs to be multiplied by the corresponding factor \(q_\text {acc}\) in order to incorporate the new choice of \(\alpha _\mathrm{s}\), PDFs and the scales they are evaluated at. Accordingly, the probability to reject an emission is changed to

$$\begin{aligned} P_\text {rej}= & {} 1 - P_\text {acc}\rightarrow 1 - q_\text {acc}P_\text {acc}\nonumber \\= & {} \left[ 1 + \left( 1 - q_\text {acc}\right) \frac{P_\text {acc}}{1-P_\text {acc}} \right] \,P_\text {rej}\equiv q_\text {rej}\,P_\text {rej}. \end{aligned}$$
(17)

Consequently, for each rejected emission the event weight receives a corrective weight of \(q_\text {rej}\). Proofs that this treatment indeed results in the correct Sudakov form factors can be found in [26, 27, 52].

3.3 Next-to-leading-order matching

To match NLO QCD parton-level calculations with subsequent parton-shower evolution Sherpa employs a variant of the original Mc@Nlo algorithm presented in [12], referred to as S-Mc@Nlo [54]. Schematically, such a S-Mc@Nlo calculation has the following structure:

$$\begin{aligned} \langle O\rangle ^{\textsc {NloPs}}&= \int \text {d}\Phi _B\; \left[ \text {B}(\Phi _B) + \text {VI}(\Phi _B)\right. \nonumber \\&\quad \left. +\int \text {d}x_{a/b}^\prime \,\text {KP}(\Phi _B,x_{a/b}^\prime ) \right. \nonumber \\&\quad \left. +\sum _j \int \text {d}\Phi _1^j\, \left( \text {D}_{A,j} - \text {D}_{S,j} \right) (\Phi _B\cdot \Phi _1^j) \right] \nonumber \\&\quad \times \text {PS}_{\textsc {NloPs}}(O,\Phi _B)\nonumber \\&\quad +\int \text {d}\Phi _R\; \left[ \, \text {R}(\Phi _R) - \sum _j \text {D}_{A,j}(\Phi _{B,j}\cdot \Phi _1^j) \right] \,\nonumber \\&\quad \times \text {PS}(O,\Phi _R)\nonumber \\&= \int \text {d}\Phi _B\; \overline{\text {B}}(\Phi _B)\;\text {PS}_{\textsc {NloPs}}(O,\Phi _B)\nonumber \\&\quad +\int \text {d}\Phi _R\; \text {H}_A(\Phi _R)\;\text {PS}(O,\Phi _R). \end{aligned}$$
(18)

Here the real-emission contribution \(\text {R}\) of the NLO calculation has effectively been split into an infrared-singular (soft) and an infrared-regular (hard) part, the resummation kernel \(\text {D}_A\) and the finite hard remainder \(\text {H}_A\), respectively, such that \(\text {R}=\text {D}_A+\text {H}_A\)  [54, 57]. The \(\overline{\text {B}}\)-function has the following explicit parameter dependences

$$\begin{aligned} \overline{\text {B}}(\Phi _B)&\equiv \overline{\text {B}}(\Phi _B;\alpha _\mathrm{s},f;\mu _R,\mu _F)\nonumber \\&= \text {B}(\Phi _B;\alpha _\mathrm{s},f;\mu _R,\mu _F) +\text {VI}(\Phi _B;\alpha _\mathrm{s},f;\mu _R,\mu _F)\nonumber \\&\quad +\int \text {d}x_{a/b}^\prime \,\text {KP}(\Phi _B,x_{a/b}^\prime ;\alpha _\mathrm{s},f;\mu _R,\mu _F)\nonumber \\&\quad +\sum _j \int \text {d}\Phi _1^j\;\left( \text {D}_{A,j}-\text {D}_{S,j}\right) \nonumber \\&\quad \times (\Phi _B\cdot \Phi _1^j;\alpha _\mathrm{s},f;\mu _R,\mu _F) . \end{aligned}$$
(19)

From the perspective of parameter reweighting, the resummation kernel \(\text {D}_A\) behaves the same way as the subtraction term \(\text {D}_S\). In fact, in our reweighting implementation the \((\text {D}_A-\text {D}_S)\) contribution is treated as a single term, as indicated. It is only to note that their PDFs are evaluated at the partonic momentum fraction \(x_{a/b,j}\) and external flavours \(a_j\) and \(b_j\) of their \(\Phi _B\cdot \Phi _1^j\) phase-space configuration rather than those of \(\Phi _B\). The other parts of the \(\overline{\text {B}}\)-function can then be reweighted as described in Sect. 2.2, leading to

$$\begin{aligned}&\overline{\text {B}}(\Phi _B;\tilde{\alpha }_\text {s},\tilde{f};\tilde{\mu }_R,\tilde{\mu }_F)\nonumber \\&\quad = \tilde{\alpha }_\text {s}^n(\tilde{\mu }_R^2)\;\tilde{f}_{a}(x_a,\tilde{\mu }_F^2)\;\tilde{f}_{b}(x_b,\tilde{\mu }_F^2)\;\nonumber \\&\qquad \times \left[ \phantom {\left. +\tilde{\alpha }_\text {s}(\tilde{\mu }_R^2)\int \text {d}x_{a/b}^\prime \,\text {KP}^\prime _j(\Phi _j,x_{a/b}^\prime ;\tilde{f};\tilde{\mu }_{F,\text {core}}) \right] }\text {B}^\prime (\Phi _B){+}\tilde{\alpha }_\text {s}(\tilde{\mu }_R^2) \left( \text {VI}^\prime (\Phi _B)+c_R^{\,\prime \,(0)}l_R{+}\tfrac{1}{2}\,c_R^{\,\prime \,(1)}l_R^2\right) \right. \nonumber \\&\qquad \left. +\tilde{\alpha }_\text {s}(\tilde{\mu }_R^2)\int \text {d}x_{a/b}^\prime \,\text {KP}^\prime _j(\Phi _j,x_{a/b}^\prime ;\tilde{f};\tilde{\mu }_{F,\text {core}}) \right] \nonumber \\&\qquad +\sum _j\int \text {d}\Phi _1^j\;\tilde{f}_{a_{j}}(x_{a,j},\tilde{\mu }_F^2)\;\tilde{f}_{b_j}(x_{b,j},\tilde{\mu }_F^2)\; \tilde{\alpha }_\text {s}^{n+1}(\tilde{\mu }_R^2) \nonumber \\&\qquad \times \left[ \text {D}_{A,j}^\prime -\text {D}_{S,j}^\prime \right] (\Phi _B\cdot \Phi _1^j) . \end{aligned}$$
(20)

The \(\text {H}_A\)-function then transforms as

$$\begin{aligned}&\text {H}_A(\Phi _R;\tilde{\alpha }_\text {s},\tilde{f};\tilde{\mu }_R,\tilde{\mu }_F)\nonumber \\&\quad = \text {R}(\Phi _R;\tilde{\alpha }_\text {s},\tilde{f};\tilde{\mu }_R,\tilde{\mu }_F)\nonumber \\&\qquad -\sum _j\text {D}_{A,j}(\Phi _{B,j}\cdot \Phi _{1,j}^j;\tilde{\alpha }_\text {s},\tilde{f};\tilde{\mu }_{R,j},\tilde{\mu }_{F,j})\nonumber \\&\quad = \tilde{\alpha }_\text {s}^{n+1}(\tilde{\mu }_R^2)\;\tilde{f}_{a}(x_a,\tilde{\mu }_F^2)\;\tilde{f}_{b}(x_b,\tilde{\mu }_F^2)\; \text {R}^\prime (\Phi _R)\nonumber \\&\qquad -\sum _j\tilde{\alpha }_\text {s}^{n+1}(\tilde{\mu }_{R,j}^2)\;\tilde{f}_{a}(x_a,\tilde{\mu }_{F,j}^2)\;\tilde{f}_{b}(x_b,\tilde{\mu }_{F,j}^2) \nonumber \\&\qquad \times \text {D}_{A,j}^\prime (\Phi _{B,j}\cdot \Phi _{1,j}^j) , \end{aligned}$$
(21)

wherein each subtraction term \(\text {D}_{A,j}\) has its own scales \(\mu _{R,j}\), \(\mu _{F,j}\) defined on its underlying Born configuration \(\Phi _{B,j}\). Writing Eq. (18) as a Monte-Carlo sum over events with B-like and R-like structure, which are conventionally called \(\mathbb {S}\) and \(\mathbb {H}\) events in Mc@Nlo calculations, and with \(N=N_\mathbb {S}+N_\mathbb {H}\), we obtain

$$\begin{aligned} \langle O\rangle ^{\textsc {NloPs}}&=\lim \limits _{N\rightarrow \infty } \frac{1}{N_\text {trial}} \left\{ \phantom {\left. {} +\sum \limits _{i=1}^{N_\mathbb {H}}\; \text {H}_A(\Phi _{R,i})\;\text {PS}(O,\Phi _{R,i}) \right\} } \sum \limits _{i=1}^{N_\mathbb {S}}\; \overline{\text {B}}(\Phi _{B,i})\;\text {PS}_{\textsc {NloPs}}(O,\Phi _{B,i}) \right. \nonumber \\&\quad \left. {} +\sum \limits _{i=1}^{N_\mathbb {H}}\; \text {H}_A(\Phi _{R,i})\;\text {PS}(O,\Phi _{R,i}) \right\} . \end{aligned}$$
(22)

Thus, under \(\mu _R\rightarrow \tilde{\mu }_R\), \(\mu _F\rightarrow \tilde{\mu }_F\), \(\alpha _\mathrm{s}\rightarrow \tilde{\alpha }_\text {s}\) and \(f\rightarrow \tilde{f}\) both \(\overline{\text {B}}\) of the \(\mathbb {S}\)-events and \(\text {H}_A\) of the \(\mathbb {H}\)-events transform as composite objects in terms of their constituents, as defined above. This leaves the S-Mc@Nlo parton shower, \(\text {PS}_{\textsc {NloPs}}\), defined through

$$\begin{aligned} \text {PS}_{\textsc {NloPs}}(O,\Phi _B)&\equiv \text {PS}_{\textsc {NloPs}}(O,\Phi _B;k_{\alpha _\mathrm{s}},k_{{f}};\alpha _\mathrm{s},f;\mu _Q^2)\nonumber \\&= \overline{\Delta }_n(t_\text {IR},t^\prime )\, O(\Phi _n)\nonumber \\&\quad +\int _{t_\text {IR}}^{t^\prime } \text {d}\Phi _1\; \frac{\text {D}_A(\Phi _B\cdot \Phi _1)}{\text {B}(\Phi _B)}\;\nonumber \\&\quad \times \overline{\Delta }_n(t,t^\prime )\, \text {PS}(O,\Phi _{n+1};t) . \end{aligned}$$
(23)

It differs from the usual \(\text {PS}\) of Eq. (12) with respect to the splitting kernel for the first emission and the associated definition of the Sudakov form factor, cf. [54, 58]. However, for the purpose of reweighting, all trial emissions can be treated in the same way as in the standard parton shower as the parameter dependences are identical.

3.4 Validation

To validate the reweighting of scale and parameter dependences in CSShower and S-Mc@Nlo calculations within the Sherpa framework we perform closure tests between reweighting results and dedicated simulations.

Our implementation allows to constrain the maximum number of reweighted shower emissions per event. For a pure leading-order parton-shower run or \(\mathbb {H}\)-like events in S-Mc@Nlo calculations this amounts to setting \(n_\text {PS}\in \{0,1,2,\ldots ,\infty \}\). When considering S-Mc@Nlo simulations in addition the parameter \(n_\textsc {NloPs} \in \{0,1\}\) can be used to disable the reweighting of the \(\mathcal {O}(\alpha _\mathrm{s})\) emission for \(\mathbb {S}\)-events.

Of course the reweighting result will only coincide with a dedicated calculation if all emissions are reweighted, i.e. \(n_\textsc {NloPs} =1\) and \(n_\text {PS}=\infty \). However, by subsequently enabling the reweighting of more and more emissions the relevance of their dependences for the determination of the full uncertainty can be studied. A finite value of \(n_\text {PS}\) can also be useful in production, if the effect of reweighting higher-order emissions becomes negligible. The reduced amount of reweighting per event then allows for a faster event generation. An additional benefit would be that rare high-multiplicity shower histories do not spoil the statistical convergence of the reweighted result, even if their exact kinematics might be irrelevant for the studied observable.

3.5 The final-state only case: Thrust in e\(^{+}\) e\(^{-}\rightarrow \mathrm{q}\bar{\mathrm{q}}\) events

To validate LoPs reweighting, we consider two observables, which are complementary in their sensitivity to parton-shower emissions. At first, we consider the event-shape variable thrust T [59] in hadronic events in \(e^+e^-\)-collisions at \({\sqrt{s}={91.2}{~{\text {TeV}}}}\). In this case QCD emissions are restricted to the final-state. Accordingly, there appear no PDF factors in the shower reweighting, cf. Eq. (16), and thus no factorisation scale dependence. Moreover, as we consider the leading-order matrix element for \(e^+e^-\rightarrow q\bar{q}\) only, the renormalisation scale is also absent in the hard-process component. Therefore, we can concentrate on the pure \(\alpha _\mathrm{s}\) uncertainty in the parton shower here. Leaving the perturbative order of its running invariant it is defined by its value at the input scale \(m_Z\).

In Fig. 2, we compare \(\alpha _\mathrm{s}\) uncertainty bands generated by reweighting the nominal prediction with the one generated by dedicated predictions for each variation. As in Fig. 1, the uncertainty band is defined as the envelope over the distributions with different \(\alpha _\mathrm{s}(m_Z^2)\) input values. The nominal value is taken as \(\alpha _\mathrm{s}(m_Z^2)=0.120\), and its up/down variations are 0.128 and 0.108, respectively. Reweighting bands are presented for \(n_\text {PS}=1, 4, 8, \infty \). The \(n_\text {PS}=1\) band underestimates the uncertainty, especially for \(T\le 2/3\), where multiple hard emissions are required, and for \(T \approx 1\), the region sensitive to multiple soft emissions. For \(n_\text {PS}=4\), the uncertainty is underestimated only for bins with \(T\le 2/3\), and less so than for the \(n_\text {PS}=1\) case. The difference between the two choices of \(n_\text {PS}=8\) and \(\infty \) is merely statistical and both reproduce the dedicated result very accurately.

Fig. 2
figure 2

Uncertainty band for the Thrust event shape in dijet production in e\(^{-}\) e\(^{+}\) annihilation for a variation of \(\alpha _\mathrm{s}\). The left panel shows the nominal distribution and the ratio to the central value. The uncertainty band calculated using reweighting (including all emissions, i.e. \(n_\text {PS}=\infty \)) is compared to the one obtained from dedicated calculations. The comparison is repeated in the three panels on the right for different maximum number of reweighted emission \(n_\text {PS}\)

However, for low values of T, the statistical fluctuations of the reweighting results with higher \(n_\text {PS}\) grow larger, corresponding to a widening of the distribution of reweighting factors. Low values of the thrust observable correspond to the emission of several hard partons, which is less probable in the parton-shower approximation, and more appropriately modelled in multijet-merged calculations, cf. Sect. 4. In this phase-space region it is difficult for the reweighting to compensate the multitude of accepted soft emissions off these hard legs, that turn unstable for \(P_\text {acc}\rightarrow 1\), with rejected ones, cf. Eq. (17). This issue can be addressed by introducing a prefactor for the over-estimator function \(\hat{\text {K}}\) in the reweighting runs, to ensure that \(P_\text {acc}\) does not approach 1, cf. [26, 27, 52]. This renders the Sudakov Veto Algorithm somewhat less efficient, but is shown to reduce statistical fluctuations in the reweighting.

3.6 The initial-state dominated case: \(p_\perp ^{\mathrm{W}}\) in pp \(\rightarrow \mathrm{W}[\mathrm{e}\nu ]\) events

The second observable considered to validate our CSShower and S-Mc@Nlo reweighting implementation is the W-boson transverse-momentum distribution \(p_\perp ^{\mathrm{W}}\) in 13 \({\text {TeV}}\) proton-proton collisions, that has already been used in Sect. 2.3 in the NLO case. The definitions for constructing the uncertainty bands used there are kept the same, and are stated in Table 1. We now use the CT14nlo PDF set, which uses a Hessian error representation at a 90% confidence level [60].Footnote 5 Therefore the PDF error band will be larger than before, as it now corresponds to nearly two standard deviations instead of only one.

Considering a hadronic environment, initial-state emissions are present, which means that our reweighting factors now include PDF double ratios. In Fig. 3, we compare LoPs uncertainty bands for scale, \(\alpha _\mathrm{s}\) and PDF variations, including comparisons between reweighted and dedicated predictions for a varying maximum number of reweighted shower emissions \(n_\text {PS}\). Before discussing the bands, we observe that the tail of the \(p_\perp ^W\) spectrum is not populated, in particular in comparison to Fig. 1. This is expected, as the LO configuration is restricted to \(p_\perp ^W=0\), such that all other bins are filled through recoils against parton-shower emissions only. However, the phase space of parton-shower emissions is restricted to the soft region, and therefore the Wboson can not build up a large recoil.

Fig. 3
figure 3

The same as in Fig. 1, but for LO + parton-shower (PS) generation. The uncertainty bands are calculated by reweighting the ME and up to \(n_\text {PS}\) shower emissions. In the upper four plots, \(n_\text {PS}=3\). In the lower plots, \(n_\text {PS}\) is varied for comparison. The scale uncertainties do not change with \(n_\text {PS}\) and are therefore not repeated

We now turn to the scale uncertainty band – which is entirely due to factorisation scale variations, because the LO matrix element is independent of \(\alpha _\mathrm{s}\) , and therefore the band underestimates the perturbative uncertainty. We also observe that the band is nearly flat. As we vary only the scales of the matrix-element calculation, the constant spread corresponds to the factorisation-scale uncertainty of the Born configuration at \(p_\perp ^W=0\), merely propagating to higher \(p_\perp ^W\) bins through the parton shower, which is unaware of the scale variations. In the matrix-element reweighting, we can guarantee the same phase-space points as in the dedicated run, such that we see perfect agreement between dedicated and reweighted predictions. We therefore omit comparisons for different \(n_\text {PS}\) for the scale-uncertainty band.

Looking at the \(\alpha _\mathrm{s}\) uncertainty band, we can see that the envelope constricts at the position of the peak of the distributions. This reflects that the variation of \(\alpha _\mathrm{s}\) shifts the position of the peak, such that variations that are below the nominal distribution on the left side of the peak, are exceeding the nominal distribution on the right side, and vice versa. Comparing the reweighted prediction to the dedicated one, we find a flat band for \(n_\text {PS}=0\), corresponding to restricting the reweighting to the fixed-order matrix element. As the LO calculation is independent of \(\alpha _\mathrm{s}\), this only reflects the change of the PDFs, which are fitted to \(\alpha _\mathrm{s}(m_{\mathrm{Z}})\). The reproduction of the shape of the \(\alpha _\mathrm{s}\) uncertainty improves a lot when reweighting up to one emission (\(n_{\text {PS}}=1\)), and slightly more when adding another emission on top (\(n_{\text {PS}}=2\)).

For the PDF uncertainty, we see that the reweighting with \(n_\text {PS}=0\) underestimates it by at least 1–5% for small transverse momenta, and overestimate it around the Wmass. As for the \(\alpha _\mathrm{s}\) uncertainty, this improves for \(n_\text {PS}=1,2\).

The last depicted step, i.e. \(n_{\text {PS}}=3\), on the other hand, does not contribute further to the reproduction of the \(\alpha _\mathrm{s}\) and PDF uncertainties. No significant differences with respect to the \(n_\text {PS}=2\) case is observed. It can be concluded that it is sufficient to include up to two emissions to reproduce the uncertainty bands for this observable.

This is to be expected, as the gauge boson recoils against the shower emissions and is therefore mostly affected by the few hardest branchings. These mainly originate from the incoming hard virtual partons, so the generally softer final-state emissions barely contribute. Although we do not reproduce this here, we confirmed this by entirely disabling final-state emissions, which showed no effect on the results.

In Fig. 4 we present the validation of NloPs predictions for the W-boson transverse-momentum distribution. Overall, we get a similar picture as in the LoPs case. The main differences are the increased high-\(p_\perp ^{\mathrm{W}}\) reach and the significantly smaller scale uncertainties in the low \(p_\perp ^{\mathrm{W}}\) range, a consequence of including the complete set of \(\mathcal {O}(\alpha _\mathrm{s})\) corrections to the production process. For large \(p_\perp ^{\mathrm{W}}\), the uncertainty increases again, because we fall back to a LO description again: Only the \(2\rightarrow 3\) matrix element still contributes.

Fig. 4
figure 4

The same as in Fig. 3, but for NLO + parton-shower (PS) generation. The uncertainty bands are calculated by reweighting the ME and a maximum number of emissions from the Mc@Nlo (\(n_\textsc {NloPs} \)) and the ordinary PS (\(n_\text {PS}\)). \(n_\textsc {NloPs} \) is constrained to 0 or 1, as the Mc@Nlo prescription only affects the first emission. In the upper four plots we consider \(n_\textsc {NloPs} =1\) and \(n_\text {PS}=2\), thus up to three emissions get reweighted. In the lower plots, we consider variations of \(n_\textsc {NloPs} \) and \(n_\text {PS}\)

To assess the quality of the reweighting, we consider again different settings for the parameters \(n_\textsc {NloPs} \) and \(n_\text {PS}\). Assuming \(n_\textsc {NloPs} =n_\text {PS}=0\), only the scale variations of the hard process are considered and the parton-shower contribution to the \(\mathcal {O}(\alpha _\mathrm{s})\) correction is not reweighted. Furthermore, we present results for \(n_\textsc {NloPs} =1\) and \(n_\text {PS}=0,1,2\). With these settings, the \(\mathcal {O}(\alpha _\mathrm{s})\) corrections get properly reweighted, but the number of subsequent shower emissions off the \(\mathbb {S}\)- and \(\mathbb {H}\)-like events treated correctly is varied. We observe a saturation for reproducing the dedicated calculations at \(n_\textsc {NloPs} + n_\text {PS} \ge 2\), with no further improvement when \(n_\text {PS}\) is increased from 1 to 2. This confirms the findings made when considering the LoPs setup in Fig. 3: the gauge-boson transverse-momentum distribution is dominated by the few hardest emissions.

4 Reweighting multijet-merged calculations

In this section we address the reweighting of multijet-merged event generation runs. These approaches allow to combine LO or NLO QCD matrix elements of different multiplicity dressed with parton showers into inclusive samples. Accordingly, the production of jets associating a given core process can be modelled through exact matrix elements rather than relying on the logarithmic approximation of the parton shower only. In particular, when considering hard jet kinematics or angular correlations such techniques prove to be indispensable to properly describe experimental observations, see for instance [6164].

To first approximation the reweighting as described in the previous sections can be used without change, only that the perturbative order p is no longer a constant across the sample, but varies for each event, corresponding to the considered matrix-element parton multiplicity. However, there are also new algorithm-specific intricacies which complicate the dependence on the input parameters and need to be dealt with to allow for a consistent reweighting. The LO and NLO merging techniques employed within the Sherpa framework are presented in [21, 65, 66], respectively. They rely on the reconstruction of parton-shower histories for multi-parton amplitudes that set the parton-shower initial conditions for their subsequent evolution. This is achieved by running a backward-clustering algorithm that identifies a corresponding core process and calculates hard-parton splitting scales that serve as predetermined shower branchings. In the Sherpa approach the actual parton shower then starts off the reconstructed core process and implements the predetermined hard splittings based on a truncated shower. Furthermore, it is the purpose of the truncated-shower evolution to implement possible Sudakov vetoes for shower emissions above the phase-space separation or merging scale \(Q_\text {cut}\). It should be emphasised here, parton-shower reweighting is vital when using modified input parameters in order to cancel the \(Q_\text {cut}\) dependence to the accuracy of the parton shower. In case only the hard-process matrix element parameters get reweighted, the dependence on \(Q_\text {cut}\) is cancelled to leading-logarithmic accuracy only, however, residual subleading contributions from the running coupling or the PDF evolution remain [65].

For the reweighting of the truncated-shower Sudakov veto probability the methods described in Sect. 3 can be applied. In what follows we will detail the specifics of the reweighting procedure for LO and NLO multijet-merging runs with Sherpa supplemented by an extensive validation of the implementation.

4.1 Preliminaries

Common to the LO and NLO merging techniques used in Sherpa, cf. [21, 22, 6567], is the separation of the emission phase space into a soft and a hard region, defined through a suitable m-parton measure \(Q_m\) and a separation criterion \(Q_\text {cut}\). For each parton configuration \(\Phi _m\) with \(Q_m>Q_\text {cut}\) a shower history that represents the event as a core process with subsequent \(1\rightarrow 2\) shower splittings is probabilistically build through backward clustering. The resulting sequence of cluster steps is characterised by tuples \(\{a_i,b_i,x_{a,i},x_{b,i},t_i\}\), recording the (possibly changing) initial-state flavours and momentum fractions as well as the evolution variable of each splitting. We allow for both QCD and EW splitting functions [21, 68] to identify such splitting processes and veto recombinations that would lead to the reduction of configurations which are not present in the matrix elements.Footnote 6 Figure 5 details possible cluster histories for a given \(\mathrm{pp} \rightarrow \mathrm{Z}+ 4\)jets configuration, depending on its kinematics, allowing for QCD splittings only (left) or both QCD and EW splittings (right).

Fig. 5
figure 5

Possible parton-shower histories of a \(qg\rightarrow Zgqq^\prime \bar{q}^\prime \) matrix element allowing only QCD splittings (left) and also including electroweak splittings (right)

The sequence \(\{t_i\}\) of reconstructed branching scales then may be either ordered or unordered, with an ordered history satisfying \(t_j<t_{j-1}<\cdots<t_1<t_0=\mu _{F,\text {core}}^2\). The recombination probabilities in each clustering step are determined by the forward-splitting probabilities and are therefore dependent on the parton shower and its parameters and choices. This is reflected, step-by-step, in the addition of one factor of \(\alpha _\mathrm{s}\) (when appropriate) at the reconstructed splitting scale, a ratio of PDFs at the reconstructed initial flavours and their momentum fractions, and a Sudakov form factor describing the evolution of each step.

In the Sherpa implementations the \(\alpha _\mathrm{s}\) and PDF factors are added explicitly onto the respective matrix elements and can therefore be reweighted directly. The Sudakov form factor, on the other hand, is implemented through a vetoed truncated parton shower [21, 22]. The truncated shower itself, accounting for the possibility of soft parton-shower emissions between subsequent reconstructed hard emissions, i.e. with \(t_m<t<t_{m-1}\) but \(Q<Q_\text {cut}\), can be reweighted with the methods described in Sect. 3. If, however, an emission with \(Q>Q_\text {cut}\) occurs the event is vetoed. Practically, this is accounted for through increasing \(n_\text {trial}\) of the next accepted event by \(n_\text {trial}\) of the vetoed event. Thus, \(n_\text {trial}\) becomes dependent on the parton-shower parameters.

A special remark concerning unordered histories, i.e. histories whose sequence of \(\{t_i\}\) has at least one pair \(t_k\ge t_{k-1}\), is in order. Such histories can be encountered in various configurations, e.g. when the last clustering step produces a splitting scale larger than the nominal starting scale of the core processFootnote 7 or the flavour structure only allows further clusterings at scales \(t_{k-1}\) lower than the last identified one \(t_k\).Footnote 8 As such configurations cannot be generated by a strictly ordered parton shower, for each unordered step neither the accompanying PDF ratio nor Sudakov factor is therefore present in the calculation. More than one unordering in a cluster history of a given event is possible and in fact likely at high multiplicities. PDF ratios and Sudakov factors then of course only occur in the ordered subhistories in between the unorderings. For the sake of clarity and brevity we will omit this case from the discussion of the following subsections. Its implications to the algorithm, and therefore to the reweighting, are straightforward. If ordered histories are enforced, core configurations beyond the standard \(2\rightarrow 2\) processes occur. Independent of the presence and number of unorderings, the renormalisation and factorisation scales \(\mu _R\) and \(\mu _F\) are always set in the way, as will be detailed below.

4.2 The leading-order case

We start the discussion with the simplest case, where all matrix elements used in the merging are given at leading order. A LO multijet-merged calculation, with Born matrix elements at \(\mathcal {O} ({\alpha _\mathrm{s}^{n+j}})\), containing j additional partons relative to the core process, has the following structure

$$\begin{aligned} \langle O\rangle ^{\textsc {MePs@Lo}}&= \sum _{j=0}^{j_\text {max}} \int \text {d}\Phi _j\;\text {B}^\text {merge}_j(\Phi _j)\; \Theta (Q_j-Q_\text {cut})\;\nonumber \\&\quad \times \ PStv(O,\Phi _j) \nonumber \\&= \lim \limits _{N\rightarrow \infty }\,\frac{1}{N_\text {trial}} \sum _{i=1}^N\sum _{j=0}^{j_\text {max}} \text {B}^\text {merge}_j(\Phi _{j,i})\;\nonumber \\&\quad \times \Theta (Q_j-Q_\text {cut})\; \text {PS}^\text {vt}(O,\Phi _{j,i}) . \end{aligned}$$
(24)

Note that \(\Phi _{j}\) here denotes the entire final-state phase space of the process, including all particles of the core process. As before, \(Q_j\) is a suitable infrared-safe distance measure of \(\Phi _j\). The \(\Theta \)-function thus realises a minimum separation of \(Q_\text {cut}\) and acts as an infrared regulator. \(\text {PS}^\text {vt}\) is the vetoed truncated parton shower derived from Eq. (12). As the limit in the second line is well defined, it can be transposed with the summation over parton multiplicities. As the ingredient leading-order matrix elements need to incorporate the soft-collinear resummation properties of the parton shower, they have the following parameter dependences:

$$\begin{aligned} \text {B}^\text {merge}_j(\Phi _j)&\equiv \text {B}^\text {merge}_j(\Phi _j;\alpha _\mathrm{s},f;\mu _{R,\text {core}},\mu _{F,\text {core}},k_{\alpha _\mathrm{s}},k_{{f}};\nonumber \\&\quad \{a_i,b_i, x_{a,i},x_{b,i}, t_i\}) . \end{aligned}$$
(25)

The cluster steps \(\{a_i, b_i, x_{a,i}, x_{b,i}, t_i\}\) denote the identified cluster history of the configuration \(\Phi _j\), as discussed above. Therein, the \(a_i,\,b_i\) are the possibly changing initial-state flavours, the \(x_{a,i},\,x_{b,i}\) their momentum fractions, and the \(t_i\) are the reconstructed values of the parton-shower evolution variable at each splitting. Together with the \(\alpha _\mathrm{s}\) and PDF scale prefactors \(k_{\alpha _\mathrm{s}}\), \(k_{{f}}\) of the parton shower, the cluster steps relate \(\text {B}^\text {merge}_j\) to the scale and PDF stripped Born matrix element \(\text {B}^\prime _j\) encountered in Sect. 2.1,

$$\begin{aligned}&\text {B}^\text {merge}_j(\Phi _j;\alpha _\mathrm{s},f;\mu _{R,\text {core}},\mu _{F,\text {core}}, k_{\alpha _\mathrm{s}},k_{{f}};\nonumber \\&\quad \{a_i,b_i,x_{a,i},x_{b,i},t_i\})\nonumber \\&\quad = \prod \limits _{i=1}^j\frac{f_{a_i}(x_{a,i},k_{{f}}t_i)}{f_{a_{i-1}}(x_{a,i-1},k_{{f}}t_i)}\; f_{a_0}(x_{a,0},\mu _{F,\text {core}}^2)\nonumber \\&\qquad \times \prod \limits _{i=1}^j\frac{f_{b_i}(x_{b,i},k_{{f}}t_i)}{f_{b_{i-1}}(x_{b,i-1},k_{{f}}t_i)}\; f_{b_0}(x_{b,0},\mu _{F,\text {core}}^2)\nonumber \\&\qquad \times \alpha _\mathrm{s}^{n+j}(\mu _R^2)\;\text {B}^\prime _j(\Phi _j) . \end{aligned}$$
(26)

In this notation, the core scale is \(t_0 = \mu _{F,\text {core}}^2\), it is therefore not multiplied by the prefactors of the parton shower. The partonic momentum fractions of the core process are \(x_{a,0},\,x_{b,0}\).

The scales of each single \(\alpha _\mathrm{s}\) within the cluster history vary, but an effective global renormalisation scale can be defined through

$$\begin{aligned} \alpha _\mathrm{s}^{n+j}(\mu _R^2) = \alpha _\mathrm{s}^{n+e}(\mu _{R,\text {core}}^2)\; \prod _{i=1}^{j}\alpha _\mathrm{s}^{1-\epsilon _i}(k_{\alpha _\mathrm{s}}t_i) , \end{aligned}$$
(27)

where \(\epsilon _i=0\) if the identified splitting process at branching i is of QCD-type, and 1 otherwise, \(e=\sum _{i=1}^j\epsilon _i\). To consistently vary the \(\mu _R\) scale, we consider variations of the splitting scales \(t_i\) and the core scale \(\mu _{R,\text {core}}\) on the right-hand side by a common factor, solving for the prefactor of the effective \(\mu _R\) to be used in the matrix-element calculation. Thus, while up to NLO accuracy \(\mu _R\) is varied by the same common factor, the full solution of this procedure results in slightly larger variations of the effective renormalisation scale.

Apart from the Sudakov form factors the soft-collinear structure of the \(\text {B}^\text {merge}_j\) is now identical to the emission of j partons off a \(\text {B}_0\) configuration with the parton shower described in Sect. 3. In case of final-state splittings the ratio of parton distribution functions is simply unity as neither the partonic \(x_{a/b,i}\) and \(x_{a/b,i-1}\) nor the initial-state flavours \(a_i,\,b_i\) and \(a_{i-1},\,b_{i-1}\) differ. In principle, with every ratio of PDFs there is also a ratio of flux factors. However, all such factors cancel except for the outermost ones, corresponding to \(\Phi _j\) and, hence, are regarded as part of \(\text {B}^\prime _j\).

Changing the scales \(\mu _{R,\text {core}}\rightarrow \tilde{\mu }_{R,\text {core}}\), \(\mu _{F,\text {core}}\rightarrow \tilde{\mu }_{F,\text {core}}\), \(k_{\alpha _\mathrm{s}}\rightarrow \tilde{k}_{\alpha _\mathrm{s}}\), \(k_{{f}}\rightarrow \tilde{k}_{{f}}\) as well as \(\alpha _\mathrm{s}\rightarrow \tilde{\alpha }_\text {s}\) and \(f\rightarrow \tilde{f}\) results in

$$\begin{aligned}&\text {B}^\text {merge}_j(\Phi _j;\tilde{\alpha }_\text {s},\tilde{f};\tilde{\mu }_{R,\text {core}},\tilde{\mu }_{F,\text {core}}, \tilde{k}_{\alpha _\mathrm{s}},\tilde{k}_{{f}};\nonumber \\&\quad \{a_i,b_i,x_{a,i},x_{b,i},t_i\})\nonumber \\&\quad = \prod \limits _{i=1}^j\frac{\tilde{f}_{a_i}(x_{a,i},\tilde{k}_{{f}}t_i)}{\tilde{f}_{a_{i-1}}(x_{a,i-1},\tilde{k}_{{f}}t_i)}\; \tilde{f}_{a_0}(x_{a,0},\tilde{\mu }_{F,\text {core}}^2)\nonumber \\&\qquad \times \prod \limits _{i=1}^j\frac{\tilde{f}_{b_i}(x_{b,i},\tilde{k}_{{f}}t_i)}{\tilde{f}_{b_{i-1}}(x_{b,i-1},\tilde{k}_{{f}}t_i)}\; \tilde{f}_{b_0}(x_{b,0},\tilde{\mu }_{F,\text {core}}^2)\nonumber \\&\qquad \times \tilde{\alpha }_\text {s}^{n+j}(\tilde{\mu }_R^2)\;\text {B}^\prime _j(\Phi _j) . \end{aligned}$$
(28)

The scale \(\tilde{\mu }_R^2\) is now calculated from Eq. (27) using \(\tilde{\mu }_{R,\text {core}}^2\) and \(\tilde{k}_{\alpha _\mathrm{s}}\) as input.

Equation (28) describes what happens to the matrix-element part of a multijet-merged calculation. This leaves the vetoed truncated shower \(\text {PS}^\text {vt}\). While the truncated and standard shower part is described in Sect. 3, the vetoed shower leads to vetoed events. As vetoed events correspond to events whose weights have been set to zero, their description is equivalent to increasing the number of trials, \(n_\text {trial}\), by one. Thus, when varying the parameters of the parton shower, also the probabilities of vetoing events are changed. Consequently, \(n_\text {trial}\) acquires a dependence on the parameters of the variation. Thus, now explicitly stating the dependence on the shower’s starting scale \(\mu _Q^2\) and the merging scale \(Q_\text {cut}\),

$$\begin{aligned}&n_\text {trial}(\mu _Q^2;Q_\text {cut}^2;\{a_i,b_i,x_{a,i},x_{b,i},t_i\})\nonumber \\&\quad \equiv n_\text {trial}(\mu _Q^2;Q_\text {cut}^2;\{a_i,b_i,x_{a,i},x_{b,i},t_i\}; \alpha _\mathrm{s},f;k_{\alpha _\mathrm{s}},k_{{f}})\nonumber \\&\quad = \frac{1-\Delta _{n+j}(t_\text {IR},\mu _Q^2;Q_\text {cut}^2;\tilde{\alpha }_\text {s},\tilde{f}; \tilde{k}_{\alpha _\mathrm{s}},\tilde{k}_{{f}};\{a_i,b_i,x_{a,i},x_{b,i},t_i\})}{1-\Delta _{n+j}(t_\text {IR},\mu _Q^2;Q_\text {cut}^2;\alpha _\mathrm{s},f; k_{\alpha _\mathrm{s}},k_{{f}};\{a_i,b_i,x_{a,i},x_{b,i},t_i\})} , \end{aligned}$$
(29)

where

$$\begin{aligned}&\Delta _{n+j}(t_\text {IR},\mu _Q^2;Q_\text {cut}^2;\alpha _\mathrm{s},f; k_{\alpha _\mathrm{s}},k_{{f}};\{a_i,b_i,x_{a,i},x_{b,i},t_i\})\nonumber \\&\quad = \prod \limits _{i=1}^j \exp \left\{ -\int \limits _{t_i}^{t_{i-1}}\text {d}\Phi _1\; \text {K}_{n+i}(\Phi _1;k_{\alpha _\mathrm{s}},k_{{f}};\alpha _\mathrm{s},f)\right. \nonumber \\&\qquad \times \left. \Theta (Q_{n+i}>Q_\text {cut})\right\} . \end{aligned}$$
(30)

Thus, \(n_\text {trial}\) corresponds to the survival probability between the unfolding of preexisting splittings when evolving from the n-parton core configuration to the \((n+j)\)-parton configuration. Hence, when changing the parameters of the simulation the truncated showers probability to emit a parton with \(Q>Q_\text {cut}\) must be re-evaluated following the substitutions \(k_{\alpha _\mathrm{s}}\rightarrow \tilde{k}_{\alpha _\mathrm{s}}\), \(k_{{f}}\rightarrow \tilde{k}_{{f}}\), \(\alpha _\mathrm{s}\rightarrow \tilde{\alpha }_\text {s}\) and \(f\rightarrow \tilde{f}\) using the methods of Sect. 3. Note, all emissions produced by the truncated shower prior to the one that triggers the veto need to be reweighted as they impact the initial conditions for that emission.

4.3 The next-to-leading-order case

The merging of multijet matrix elements at next-to-leading order accuracy proceeds schematically similar as in the leading order case. The input quantity is now the NloPs matched \((n+j)\)-parton configuration, thus

$$\begin{aligned}&\langle O\rangle ^{\textsc {MePs@Nlo}} = \sum _{j=0}^{j_\text {max}}\left[ \int \text {d}\Phi _j\; \overline{\text {B}}^\text {merge}_j(\Phi _{j})\; \Theta (Q_j-Q_\text {cut}) \right. \nonumber \\&\qquad \times \text {PS}_{\textsc {NloPs}}^\text {v}(O,\Phi _j) \nonumber \\&\qquad \left. +\int \text {d}\Phi _{j+1}\; \text {H}_{A,j}^\text {merge}(\Phi _{j+1},Q_\text {cut})\; \text {PS}^\text {vt}(O,\Phi _{j+1}) \right] \nonumber \\&\quad = \lim \limits _{N\rightarrow \infty }\,\frac{1}{N_\text {trial}} \left\{ \sum \limits _{i=1}^{N_\mathbb {S}}\sum \limits _{j=0}^{j_\text {max}}\; \overline{\text {B}}^\text {merge}_j(\Phi _{j,i})\; \Theta (Q_j-Q_\text {cut})\; \right. \nonumber \\&\qquad \times \text {PS}_{\textsc {NloPs}}^\text {v}(O,\Phi _{j,i})\nonumber \\&\qquad \left. +\sum \limits _{i=1}^{N_\mathbb {H}}\sum \limits _{j=0}^{j_\text {max}}\; \text {H}_{A,j}^\text {merge}(\Phi _{j+1,i},Q_\text {cut})\; \text {PS}^\text {vt}(O,\Phi _{j+1,i}) \right\} , \end{aligned}$$
(31)

keeping the notation of Eqs. (18) and (24). For the \(\mathbb {S}\)-events the same \(\Theta \)-function of Eq. (24) is used as an infrared regulator and the S-Mc@Nlo parton shower of Eq. (23) is replaced by its vetoed version, it only matches the softest emission in \(t\) and, thus, does not generate truncated emissions. These are added dressing it with additional emissions through the standard parton shower. As all ingredients of \(\overline{\text {B}}^\text {merge}_j\) are evaluated at the same phase-space point \(\Phi _j\) they share a common cluster history \(\{a_i,b_i,x_{a,i},x_{b,i},\) \(t_i\}\). Hence, again suppressing any further \(Q_\text {cut}\)-dependence which is not varied,

$$\begin{aligned} \overline{\text {B}}^\text {merge}_j(\Phi _j)&\equiv \overline{\text {B}}^\text {merge}_j(\Phi _j;\alpha _\mathrm{s},f;\mu _{R,\text {core}},\mu _{F,\text {core}},k_{\alpha _\mathrm{s}},k_{{f}};\nonumber \\&\quad \{a_i,b_i, x_{a,i},x_{b,i},t_i\}) \end{aligned}$$
(32)

transforms under the replacements \(k_{\alpha _\mathrm{s}}\rightarrow \tilde{k}_{\alpha _\mathrm{s}}\), \(k_{{f}}\rightarrow \tilde{k}_{{f}}\), \(\alpha _\mathrm{s}\rightarrow \tilde{\alpha }_\text {s}\) and \(f\rightarrow \tilde{f}\) in the following way:

$$\begin{aligned}&\overline{\text {B}}^\text {merge}_j(\Phi _j;\tilde{\alpha }_\text {s},\tilde{f}; \tilde{\mu }_{R,\text {core}},\tilde{\mu }_{F,\text {core}},\tilde{k}_{\alpha _\mathrm{s}},\tilde{k}_{{f}};\nonumber \\&\quad \{a_i,b_i, x_{a,i},x_{b,i},t_i\})\nonumber \\&\quad =\prod \limits _{i=1}^j\frac{\tilde{f}_{a_i}(x_{a,i},\tilde{k}_{{f}}t_i)}{\tilde{f}_{a_{i-1}}(x_{a,i-1},\tilde{k}_{{f}}t_i)}\; \tilde{f}_{a_0}(x_{a,0},\tilde{\mu }_{F,\text {core}}^2)\nonumber \\&\qquad \times \prod \limits _{i=1}^j\frac{\tilde{f}_{b_i}(x_{b,i},\tilde{k}_{{f}}t_i)}{\tilde{f}_{b_{i-1}}(x_{b,i-1},\tilde{k}_{{f}}t_i)}\; f_{b_0}(x_{b,0},\tilde{\mu }_{F,\text {core}}^2)\nonumber \\&\qquad \times \tilde{\alpha }_\text {s}^{n+j}(\tilde{\mu }_R^2)\; \bigg [ \text {B}^\prime _j(\Phi _j) +\tilde{\alpha }_\text {s}(\tilde{\mu }_R^2) \left( \text {VI}^\prime _j(\Phi _j)+c_{R,j}^{\,\prime \,(0)}l_R\right. \nonumber \\&\qquad \left. \left. +\tfrac{1}{2}\,c_{R,j}^{\,\prime \,(1)}l_R^2 \right) \right. \nonumber \\&\qquad \left. +\tilde{\alpha }_\text {s}(\tilde{\mu }_R^2) \int \text {d}x_{a/b}^\prime \, \text {KP}^\prime _j(\Phi _j,x_{a/b}^\prime ;\tilde{f};\tilde{\mu }_{F,\text {core}}) \right. \nonumber \\&\qquad \left. +\tilde{\alpha }_\text {s}(\tilde{\mu }_R^2)\sum _k\int \text {d}\Phi _1^k \left( \text {D}_{A,k}^\prime -\text {D}_{S,k}^\prime \right) (\Phi _j\cdot \Phi _1^k) \right. \bigg ]\nonumber \\&\qquad -\sum _{i=1}^j\frac{\tilde{\alpha }_\text {s}(\tilde{\mu }_R^2)}{2\pi }\, \log \frac{t_{i-1}}{t_i}\nonumber \\&\qquad \times \left( \sum \limits _{c=q,g}\int \frac{\text {d}x_{a,i}^\prime }{x_{a,i}^\prime }\; P_{ac}(x_{a,i}^\prime )\,\tilde{f}_{c}(\tfrac{x_{a,i}}{x_{a,i}^\prime },\tilde{k}_{{f}}t_i) \right. \nonumber \\&\qquad \left. +\sum \limits _{d=q,g}\int \frac{\text {d}x_{b,i}^\prime }{x_{b,i}^\prime }\; P_{bd}(x_{b,i}^\prime )\,\tilde{f}_{d}(\tfrac{x_{b,i}}{x_{b,i}^\prime },\tilde{k}_{{f}}t_i) \right) \nonumber \\&\qquad \times \tilde{\alpha }_\text {s}^{n+j}(\tilde{\mu }_R^2)\,\text {B}^\prime _j(\Phi _j) . \end{aligned}$$
(33)

In addition to the transformation properties of the \(\overline{\text {B}}\)-function of Eq. (19), supplemented with the PDF ratios already encountered in the leading-order case, additional terms appear. They subtract the \(\mathcal {O}\left( \alpha _\mathrm{s}\right) \) expansion of these ratios, in order to retain the NLO accuracy of the merged calculation. Again, please note \(t_0=\mu _{F,\text {core}}^2\).

The same does not hold, however, for the \(\mathbb {H}\)-events. Their constituent real-emission matrix elements are defined on \(\Phi _{j+1}\) , while each subtraction term \(\text {D}_{A,k}\) has its own projection on a phase-space point \(\Phi _j^k\). Thus,

$$\begin{aligned}&\text {H}_{A,j}^\text {merge}(\Phi _{j+1},Q_\text {cut})\nonumber \\&\quad \equiv \text {R}^\text {merge}_j(\Phi _{j+1};\alpha _\mathrm{s},f;\mu _{R,\text {core}},\mu _{F,\text {core}},k_{\alpha _\mathrm{s}},k_{{f}};\nonumber \\&\qquad \{a_i,b_i, x_{a,i},x_{b,i}, t_i\})\; \Theta (Q_j-Q_\text {cut})\nonumber \\&\qquad -\sum _k\text {D}_{A,k,j}^\text {merge}(\Phi _j^k\cdot \Phi _1^k; \alpha _\mathrm{s},f;\mu _{R,\text {core},k},\mu _{F,\text {core},k},\nonumber \\&\qquad k_{\alpha _\mathrm{s},k},k_{{f},k};\{a_{i,k},b_{i,k}, x_{a,i,k},x_{b,i,k}, t_{i,k}\})\nonumber \\&\qquad \times \Theta (Q_j^k-Q_\text {cut}) , \end{aligned}$$
(34)

wherein both \(\text {R}^\text {merge}_j\) and the \(\text {D}_{A,k,j}^\text {merge}\) separately transform as the leading-order counterpart \(\text {B}^\text {merge}_j\). While the measure \(Q\) on \(\Phi _{j+1}\) of \(\text {R}^\text {merge}_j\) is defined to act on the underlying \(\Phi _j\) after the first cluster step where the real emission configuration has been reduced to a Born configuration, it is defined directly on each \(\Phi _j^k\) in each \(\text {D}_{A,k}\). Infrared safety is guaranteed through the infrared safety of their phase-space maps, the clustering algorithm and the measure \(Q\).

Finally, we consider merging additional multiplicities up to \({j_\text {max}}\) described through leading-order matrix elements on top of a next-to-leading order merged calculation with up to \({j_\text {max}^{\textsc {nlo}}}\) jets, where \({j_\text {max}}> {j_\text {max}^{\textsc {nlo}}}\). The method of choice was outlined in [22, 65, 66, 69, 70] and is historically referred to as MeNloPs. Its methodology is defined as

$$\begin{aligned}&\langle O\rangle ^{\textsc {MePs@Nlo} {}+\textsc {MeNloPs}}\nonumber \\&\quad = \sum _{j=0}^{j_\text {max}^{\textsc {nlo}}}\left[ \int \text {d}\Phi _j\; \overline{\text {B}}^\text {merge}_j(\Phi _{j})\;\text {PS}_{\textsc {NloPs}}^\text {v}(O,\Phi _j) \right. \nonumber \\&\qquad \left. +\int \text {d}\Phi _{j+1}\; \text {H}_{A,j}^\text {merge}(\Phi _{j+1})\;\text {PS}^\text {vt}(O,\Phi _{j+1}) \right] \nonumber \\&\qquad + \sum _{j={j_\text {max}^{\textsc {nlo}}}+1}^{j_\text {max}}\int \text {d}\Phi _j\;k_{j_\text {max}^{\textsc {nlo}}}(\Phi _{{j_\text {max}^{\textsc {nlo}}}+1}(\Phi _j))\; \text {B}^\text {merge}_j(\Phi _j) \nonumber \\&\qquad \times \text {PS}^\text {vt}(O,\Phi _j) \nonumber \\&\quad =\lim \limits _{N\rightarrow \infty }\,\frac{1}{N_\text {trial}} \left\{ \sum \limits _{i=1}^{N_\mathbb {S}} \sum \limits _{j=0}^{j_\text {max}^{\textsc {nlo}}}\; \overline{\text {B}}^\text {merge}_j(\Phi _{j,i})\;\text {PS}_{\textsc {NloPs}}^\text {v}(O,\Phi _{j,i}) \right. \nonumber \\&\qquad \left. +\sum \limits _{i=1}^{N_\mathbb {H}} \sum \limits _{j=0}^{j_\text {max}^{\textsc {nlo}}}\; \text {H}_{A,j}^\text {merge}(\Phi _{j+1,i})\;\text {PS}^\text {vt}(O,\Phi _{j+1,i}) \right. \nonumber \\&\qquad +\sum _{i=1}^{N_\text {LO}} \sum _{j={j_\text {max}^{\textsc {nlo}}}+1}^{{j_\text {max}}}\; k_{j_\text {max}^{\textsc {nlo}}}(\Phi _{{j_\text {max}^{\textsc {nlo}}}+1}(\Phi _j))\; \text {B}^\text {merge}_j(\Phi _{j,i}) \nonumber \\&\qquad \times \left. \text {PS}^\text {vt}(O,\Phi _{j,i}) \right\} , \end{aligned}$$
(35)

with \(N=N_\mathbb {S}+N_\mathbb {H}+N_\text {LO}\). A differential K-factor \(k_{j_\text {max}^{\textsc {nlo}}}\) is a applied to the higher-multiplicity leading-order matrix elements in order to facilitate a smooth transition across \(Q_\text {cut}\). It has the form

$$\begin{aligned} k_m(\Phi _{m+1}) \,=&\; \frac{\overline{\text {B}}_m(\Phi _m)}{\text {B}_m(\Phi _m)} \left( 1-\frac{\text {H}_{A,m}(\Phi _{m+1})}{\text {R}_m(\Phi _{m+1})} \right) \nonumber \\&+\frac{\text {H}_{A,m}(\Phi _{m+1})}{\text {R}_m(\Phi _{m+1})} , \end{aligned}$$
(36)

and therefore moulds the \(\text {B}_{{j_\text {max}^{\textsc {nlo}}}+1}\) into the same form as the \(\text {H}_{A,{j_\text {max}^{\textsc {nlo}}}}\) it is replacing. The projection \(\Phi _{{j_\text {max}^{\textsc {nlo}}}+1}(\Phi _j)\) for \(j>{j_\text {max}^{\textsc {nlo}}}+1\) is defined through its cluster history, as is \(\Phi _m(\Phi _{m+1})\) inside \(k_m\) itself. When now changing the parameters of the calculation, \(\alpha _\mathrm{s}\rightarrow \tilde{\alpha }_\text {s}\), \(f\rightarrow \tilde{f}\), \(\mu _R\rightarrow \tilde{\mu }_R\) and \(\mu _F\rightarrow \tilde{\mu }_F\), \(k_{j_\text {max}^{\textsc {nlo}}}\) transforms as a composite object in terms of its constituents, cf. Sects. 2 and 3. The scales are set directly by the \(\text {B}^\text {merge}_j\) process. Of course, in the interest of decreased computational costs one may decide to choose \(k_m\equiv 1\) throughout at the cost of larger merging systematics. Similarly, if an electroweak cluster history leads to a changed signature in \(\Phi _{m+1}\), \(k_m\equiv 1\) is chosen.

4.4 Validation

The reweighting for multijet-merged calculations as discussed in the previous sections has been implemented within Sherpa with the CSShower for leading-order matrix elements (MePs@Lo), next-to-leading order matrix elements (MePs@Nlo) and next-to-leading-order matrix elements with additional leading-order ones on top (MeNloPs). For the validation, we again perform closure tests between reweighted and dedicated predictions for the transverse momentum of the Wboson in Figs. 6, 7 and 8. As before, the uncertainty bands are the ones defined in Table 1, with the CT14 PDF set. For all merged calculations, we employ a merging cut of \(Q_\text {cut}={20}{~{\text {TeV}}}\).

For the MePs@Lo validation in Fig. 6, we combine LO matrix elements for 0-, 1- and 2-jet multiplicities, obtained from Comix  [39]. We can observe that we populate a much larger phase space than for a mere LoPs calculation in terms of \(p_\perp ^{\mathrm{W}}\). Below the merging cut (i.e. \(p_\perp ^{\mathrm{W}} \lesssim {20}{~{\text {TeV}}}\)), the scale uncertainty band is equal to the one of the LoPs calculation. For higher \(p_\perp ^{\mathrm{W}}\), the scale uncertainty increases corresponding to the larger uncertainty of the higher-multiplicity matrix elements, that contribute renormalisation scale uncertainties.

Fig. 6
figure 6

The same as in Figs. 3 and  4, but for a multijet-merged generation with LO matrix elements for 0-, 1- and 2-jet multiplicities. The uncertainty bands are calculated by reweighting the ME and a maximum number of emissions \(n_\text {PS}\) of PS emissions. In the upper four plots, \(n_\text {PS}=3\), thus up to three emissions are reweighted. In the lower plots, \(n_\text {PS}\) is varied for comparison. Again, we find a saturation when reproducing dedicated calculations for \(n_\text {PS} \ge 2\), with no further improvement when \(n_\text {PS}\) is increased from 2 to 3

Fig. 7
figure 7

The same as in Figs. 3, 4 and 6, but for a multijet-merged generation with one NLO matrix element for the 0-jet multiplicity, and LO matrix elements for the 1- and 2-jet multiplicities. The uncertainty bands are calculated by reweighting the ME and a maximum number of emissions from the Mc@Nlo (\(n_\textsc {NloPs} \)) and the ordinary PS (\(n_\text {PS}\)). In the upper four plots, \(n_\textsc {NloPs} =1\) and \(n_\text {PS}=2\), thus up to three emissions are reweighted. In the lower plots, both n are varied for comparison. Again, we find a saturation when reproducing dedicated calculations for \(n_\textsc {NloPs} + n_\text {PS} \ge 2\), with no further improvement when \(n_\text {PS}\) is increased from 1 to 2

In Fig. 7, we consider the MeNloPs case. We combine an NLO matrix element for the 0-jet multiplicities with LO matrix elements for the 1- and 2-jet multiplicities. The scale uncertainty for low \(p_\perp ^{\mathrm{W}}\) values now features the reduced scale uncertainty, that we already have seen in the NloPs validation.

Fig. 8
figure 8

The same as in Figs. 3, 4, 6 and 7, but for a multijet merged generation with NLO matrix elements for the 0- and 1-jet multiplicities. The uncertainty bands are calculated by reweighting the ME and a maximum number of emissions from the Mc@Nlo (\(n_\textsc {NloPs} \)) and the ordinary PS (\(n_\text {PS}\)). In the upper four plots, \(n_\textsc {NloPs} =1\) and \(=n_\text {PS}=2\), thus up to three emissions are reweighted. In the lower plots, both n are varied for comparison. Again, we find a saturation when reproducing dedicated calculations for \(n_\textsc {NloPs} + n_\text {PS} \ge 2\), with no further improvement when \(n_\text {PS}\) is increased from 1 to 2

The same is true in the MePs@Nlo case depicted in Fig. 8. A direct comparison of the scale uncertainties to the MeNloPs case is not straightforward though, as we combine NLO matrix elements for the 0- and the 1-jet multiplicity, where the virtual amplitudes are obtained from BlackHat  [42]. Hence, the 2-jet multiplicity is described at leading order through the 1-jet \(\mathbb {H}\)-events. As such, the set-up is not a simple upgrade from our MeNloPs calculation.

In all multijet-merging validations, we find a similar behaviour with respect to the imprint of including emissions in the reweighting. For \(n_{\textsc {NloPs}} + n_\text {PS}= 2\), the dedicated calculations are well reproduced, and no further improvement is found for \(n_{\textsc {NloPs}} + n_\text {PS}= 3\). It is noteworthy, that for the MeNloPs case we find a worse reproduction for \(n_{\textsc {NloPs}} = 1\) and \(n_\text {PS}= 0\) compared to the NloPs and the MePs@Nlo cases. This originates in the fact that in the latter two cases, we enable the reweighting of emissions off \(\mathbb {S}\)-events at all involved multiplicities, whereas in the MeNloPs case only the first of the three multiplicities is affected, because the other two are at LO and therefore do not have \(\mathbb {S}\)-events. Thus, the overall importance of the \(\mathbb {S}\) emission reweighting gets restricted to the region below \(Q_\text {cut}\) of the 1-jet configuration in the MeNloPs case.

5 Consistent variations

In general, the renormalisation and factorisation scales, \(\alpha _s\) and the PDFs should be varied consistently throughout any of the presented calculations. While at fixed order the situation is clear, the matched and merged approaches allow for some degree of freedom regarding partial variations while still retaining their respective accuracies.

In the simplest case, LOPS, \(\mu _R\) and \(\mu _F\) of the short distance cross section and the parton shower may be varied independently as these variations can be expressed as higher-order terms in a perturbative expansion in the coupling parameter \(\alpha _s\). This is not the case for \(\alpha _s\) itself and the PDFs as they are fixed through measured input values and parametrisations. Changes in these input values cannot be expressed as simple higher-order terms. Thus they need to be chosen consistently throughout.

Similarly, in NLOPS calculations, the renormalisation and factorisation scales may be varied in the matrix element (\(\overline{\text {B}}\) and \(\text {H}_A\)) or the parton shower (\(\text {PS}_{\textsc {NloPs}}\) and \(\text {PS}\)) separately without losing neither the fixed-order nor the resummation accuracy. As the pseudo-subtraction through the \(\text {D}_A\) in any case employs different scales in \(\text {PS}_{\textsc {NloPs}}\) and the \(\overline{\text {B}}\) and \(\text {H}_A\) functions, it always leaves remainders of \(\mathcal {O}(\alpha _s^2)\). Hence, further scale variations in either one, the short-distance cross sections or the \(\text {PS}_{\textsc {NloPs}}\), do not worsen the nominal accuracy of the method. Retaining the logarithmic accuracy of the parton shower on the other hand requires identical renormalisation and factorisation scales throughout all resummation-relevant components, i.e. \(\text {PS}_{\textsc {NloPs}}\) and \(\text {PS}\). Again, variations in \(\alpha _s\) or the PDFs need to be consistent throughout the calculation.

The multijet-merged calculations impose further constraints since they treat multijet matrix elements and parton-shower emissions on the same footing. The notation of the scales already reflects this for \(\mu _R\) and \(\mu _F\). In their definitions only the core scales remain as free parameters and may be varied independently. Again, the \(\alpha _s\) and PDF parametrisations need to be the same throughout.

6 Conclusions

In this publication we have presented the implementation and validation of reweighting techniques allowing for the fast and efficient evaluation of perturbative systematic uncertainties in the Sherpa event-generator framework. We have lifted the available techniques for the determination of PDF, \(\alpha _s\) and scale uncertainties in leading- and next-to-leading order QCD calculations to include the respective variations in parton-shower simulations. In turn we provide the means to perform consistent uncertainty evaluations for multijet-merged simulations based on leading- or next-to-leading-order accurate matrix elements of varying multiplicity matched with parton showers. The foundation for our reweighting method is the knowledge of the very dependence structure of the perturbative calculations on the parameters to be varied. For the fixed-order components this amounts to the corresponding decomposition of the Catani–Seymour dipole subtraction terms. This needed to be supplemented by the reweighting of the parametric dependences of the parton shower treated through the Sudakov Veto Algorithm.

With our extensive validation we have been able to prove on the one-hand-side the correctness of the implementation and have, furthermore, been able to illustrate the importance of parton-shower reweighting for reliable uncertainty estimates. With comparably little additional computational costs this allows for the on-the-fly determination of PDF, \(\alpha _S\) and scale uncertainties based on one single generator run, that, otherwise, would require explicit re-computations. The overall reduction in CPU time is by a factor of about 3–20, depending on the event-generation mode used, see Appendix A. The variational event weights provided are easily accessible through the HepMC event record and are furthermore consistently handed over to the Rivet analysis software by the corresponding Sherpa interface.

The methods presented in this publication are ideally suited for event-wise uncertainty estimates and can readily be used in arbitrary theoretical and experimental analyses. An extension to next-to-next-to-leading-order QCD calculations possibly dressed with parton showers, as presented in [16, 17, 71], is straightforward and planned for the near future.

The decomposition of the fixed-order part of QCD calculations employed here is also a necessary ingredient to produce cross-section grids as provided by the APPLgrid [72] and FastNLO [73, 74] tools. These store the perturbative coefficients for a certain observable calculation discretised in \(Q^2\) and x. Using interpolation methods, this allows for the a posteriori inclusion of PDFs, \(\alpha _\mathrm{s}\) and variations of the renormalisation and factorisation scales. In turn, such techniques are well suited for (combined) fits of PDFs and \(\alpha _\mathrm{s}\) that require a multitude of re-computations of the theoretical predictions. Over the last years, tools have been developed that automate the projection of arbitrary next-to-leading-order QCD calculations onto such grids, namely the aMCfast [75] and the MCgrid [7678] packages. The first one produces APPLgrid s with MadGraph5_aMC@NLO [79], the latter APPLgrid s or FastNLO grids from Sherpa events projected on the observables through Rivet. The APFELgrid tool [80] provides an improved convolution method for use with APPLgrid files that furthermore speeds-up the re-evaluations.

However, none of these approaches includes generic parton-shower effects, i.e. the parametric dependence of the shower component on the PDFs and \(\alpha _\mathrm{s}\) is ignored. With the methods presented in this publication we are confident that we can surmount this limitation and in the future provide interpolation grids that properly reflect shower-resummation effects and allow for the inclusion of the affected phase-space regions in PDF determinations.