Accurate simulation of W, Z and Higgs boson decays in Sherpa

We discuss the inclusion of next-to-next-to leading order electromagnetic and of next-to leading order electroweak corrections to the leptonic decays of weak gauge and Higgs bosons in the SHERPA event generator. To this end, we modify the Yennie-Frautschi-Suura scheme for the resummation of soft photon corrections and its systematic improvement with fixed-order calculations, to also include the effect of virtual corrections due to the ex- change of weak gauge bosons. We detail relevant technical aspects of our implementation and present numerical results for observables relevant for high-precision Drell-Yan and Higgs boson production and decay simula- tions at the LHC.


Introduction
The experiments at the LHC are stress-testing the Standard Model (SM) of particle physics at unprecedented levels of precision. In particular, leptonic standard-candle signatures like chargedand neutral-current Drell-Yan production offer large cross sections together with very small experimental uncertainties, often at or even below the percent level. This allows to extract fundamental parameters in the electroweak (EW) sector of the SM at levels of precision surpassing the LEP heritage. Measurements of the W -boson mass, a key EW precision observable, are already reaching the 20 MeV level [1] based on 7 TeV data alone, with theory uncertainties being one of the leading systematics. Another example for the impressive achievements on the experimental side, challenging currently available theoretical precision, is the recent measurement of the triple differ-ential cross section in neutral current Drell-Yan production based on 8 TeV data [2], the first of its kind at a hadron collider. Furthermore, precision measurements of the Z transverse momentum spectrum [3,4] have been used to constrain parton distribution functions (PDFs) [5]. In order to fully harness available and future experimental datasets excellent theoretical control of various very subtle effects of higher-order QCD and EW origin is required. For recent reviews and studies on these issues, see e.g. [6][7][8]. With this paper we contribute to this effort by investigating higher-order QED/EW effects in the modelling of soft-photon radiation off vector-boson decays.
At the desired level of precision QED effects impacting in particular the leptonic final state have to be considered and understood in detail. In this case, soft and collinear photon radiation provides the major contributions. These can be resummed to all orders, and also improved order by order in perturbation theory. Implementations of such calculations have been performed via a QED parton shower matching in HORACE [49] and in the POWHEG framework, in the structure function approach in RADY, and through a YFS-type exponentiation for particle decays in PHOTOS [50], WINHAC [51], the HERWIG module SOPHTY [52] and the SHERPA module PHOTONS [53]. In this paper, we present an extension of the SHERPA module PHOTONS, which provides a simulation of QED radiation in (uncoloured) particle decays. PHOTONS implements the approach of Yennie, Frautschi and Suura (YFS) [54] for the calculation of higher order QED corrections. In the YFS approach, leading soft logarithms, which are largely independent of the actual hard process involved, are resummed to all orders. Beyond this, the method also allows for the systematic improvement of the description through the inclusion of full fixed-order matrix elements. The present implementation allows for the inclusion of a collinear approximation to the real matrix element using dipole splitting kernels [55]. Furthermore, for several relevant processes, including the decays of electroweak bosons, τ decays as well as generic decays of uncharged scalars, fermionic and vector hadrons, the full real and virtual NLO QED matrix elements are included. This module has also been used for the description of electroweak corrections in the semileptonic decays of B mesons [56]. The aim of this publication is to further enhance the level of precision in the case of the decay of electroweak gauge-and Higgsbosons by implementing the full one-loop EW corrections, as well as NNLO QED corrections in the case of Z-and Higgs-decays. The electroweak virtual corrections to particle decays are known for a long time [57,58] and our implementation will be based on these results. In the case of Z-boson decays, the double virtual corrections in the limit of small lepton masses are known for about 30 years [59], which we will rely on.
The paper is organized as follows. In section 2, we review the YFS algorithm, motivating and investigating the procedure to include higher order corrections at a given perturbative order. In section 3, we summarize the numerical results for the decays Z → + − , W → ν in Drell-Yan production. There we also present results for H → + − decays in hadronic Higgs production. The measurement of the latter is highly challenging due to small leptonic Higgs couplings but potentially achievable at the HL-LHC. We discuss and conclude in section 4.

The YFS formalism
In this section, we will briefly recapitulate the YFS formalism in a form appropriate for the approximate description of photon radiation in particle decays, using the exponentiation of the universal soft limit of matrix elements for real and/or virtual photons and its systematic improvement through exact fixed-order calculations. The decay rate of a decaying particle with mass m and momentum q into a set of decay products with momenta p f , fully inclusive with respect to the number of real and virtual photons n R and n V reads (2.1) Compared to the original, Born-level matrix element M 0 0 describing the decay, the matrix elements M j i include i real photons at the overall order j in the electromagnetic coupling α. This equation for the decay rate describes an unrealistic situation, where we are able to calculate all matrix elements, to all orders, and where we can integrate them over their respective full phase space, while in reality at most the first few orders in perturbation theory can be calculated. The YFS algorithm addresses this by dressing the lowest order matrix elements with exponentiated eikonal factors that capture the leading logarithmic behaviour of the amplitude, thus providing an all-order description of QED radiation correct in this limit. The full result is restored, order by order in perturbation theory, by including the subleading process-dependent parts of the amplitude.
Encapsulating the leading soft behaviour of a single virtual photon in a process-independent factor αB, the full one-loop matrix element can be written as where M 1 0 is an infrared subtracted matrix element including a virtual photon. Note that throughout this paper we assume all charged particles to be massive; consequently the matrix elements do not exhibit collinear singularities. YFS showed that the simple structure at first order extends also to all further virtual photon corrections. Including the appropriate symmetrisation prefactors this generalises to Summing over all numbers of virtual photons n V , we find that the soft behaviour exponentiates, In QED, this argument generalises to matrix elements also containing any number n R of real photons, i.e., where the M n V + 1 2 n R n R are free of virtual soft singularities, but will still contain the soft divergences due to real photons.
In contrast to the virtual amplitudes, the factorization for real photons occurs at the level of the squared matrix elements. For a single photon emission it reads where the eikonal factorS (k) contains the real soft divergence. We denote the complete infrared finite squared real matrix element asβ n V +n R n R and employ the abbreviatioñ to write the squared matrix element for the emission of n R real photons, summed over all numbers n V of virtual photons as S (k l ) + · · · +β n R (k 1 , · · · , k n R ) .

(2.8)
This expression contains all possible divergences due to real photon emission in the eikonal factors. The first term describes the leading logarithmic behaviour, and contains all virtual insertions to the matrix element without any real photon emission throughβ 0 . The second term corrects the approximate expression in theS for the real emission of one additional photon to the exact result, and so on. Expanding theβ i in the electromagnetic coupling constant α we can get a systematic, perturbative expansion. Demanding agreement with the exact results up to O α 2 results in effectively making explicit the terms related to virtual photon corrections 1 .
Completing the exponentiation of the leading logarithmic behaviour in both real and virtual photon corrections and correcting the result to the exact first order expression we arrive at (2.10) In this expression, all virtual infrared singularities are contained in B while all real infrared singularities are contained in the integral overS(k). There, terms diverging in the limit k → 0 can easily be isolated by defining a small soft region Ω that contains the limit k → 0 such that Θ(k, Ω) = 1 if k / ∈ Ω: =2αB(Ω) + D(Ω).
(2.11) 1 For an agreement correct up to order O (α), we would need to removeβ 2 0 ,β 2 1 andβ 2 2 . By far and large this has already been implemented in [53].
The two functionsB(Ω) and D(Ω) are given by where the former contains the infrared singularities and the latter is infrared regular. This separation allows the re-expansion of the exponentiated integral and the re-instating of explicit momentum conservation through δ-functions, arriving at the master formula for the decay rate in the YFS approach: (2.13) In the equation above we made the dependence on momenta explicit: the Born-level momenta of the process before QED radiation are denoted by q i , while the momenta of the full final state including radiation are labelled p i . The mapping between both sets of momenta is detailed below. The individual terms are • the YFS form factor with the sum running over all pairs of charged particles and the soft factors given by (2.16) These two terms contain all infrared virtual and real divergences which cancel due to the Kinoshita-Lee-Nauenberg theorem [60,61], guaranteeing the finiteness of Y (Ω) and of the decay width. Z i and Z j are the charges of the particles i and j, and the factors θ = ±1 for particles in the final or initial state, respectively. We provide expressions for B ij in final-final and initial-final dipoles in terms of scalar master integrals in appendix C. The calculation of the full form factor can be found in [53]; • the eikonal factorS (k) describing the soft emission of a photon off a collection of charged particles; • the lowest order matrix elementβ 0 0 ; • a correction factor C to the full matrix element, given by The terms in the first bracket describe the next-to-leading order (NLO), i.e. the O (α) term of the expansion, and the terms in the second bracket describe the next-to-next-to-leading order (NNLO), i.e. the O α 2 term of the expansion. In this publication, we will primarily be concerned with this correction factor, in particular with the virtual corrections at NLO, the termβ 1 0 , which we extend to an expression at full NLO in the electroweak theory for the decays of the weak bosons, as well as the complete NNLO bracket which we will be calculating for the neutral weak bosons; • and the Jacobean J capturing the effect of the momenta mapping. The mappings relevant for particle decays of both uncharged and charged initial particles have been outlined in section 3.3 of [53], but we repeat them in Appendix A for the benefit of the interested reader.

Motivation for higher order corrections
The previous subsection introduced the YFS procedure for dressing the lowest order matrix element with soft radiation to all orders. This basic procedure, in which C = 1, yields photon distributions that are correct in the limit of soft radiation. For the remainder of this paper, we will call this the soft approximation. Away from the strict soft limit, exact matrix elements are necessary to describe observables at the required accuracy, and we described the procedure for their systematic incorporation. Hard photon radiation occurs predominantly collinear to the emitter and more frequently in processes with large energy-to-mass ratios of the involved particles. With this in mind, generic collinear corrections for the real matrix element, based on the splitting functions developed in [55], were employed in [53] to account for hard QED radiation in the soft-collinear approximation. While this approximation correctly describes radiation in the limits of soft and collinear radiation, it does neither account for interference effects nor hard wide-angle radiation. In order to capture these effects correctly, full matrix elements for real and virtual photon radiation have to be added, some of which have already been included in [53].
For illustration, in Fig. 1 (left) we compare the soft-collinear, the NLO QED-correct and the NNLO QED-correct results for the invariant mass m of the electrons produced in Z-boson decays. To guide the eye we also show the leading-order result. The NLO QED result represents the maximal accuracy of the implementation in PHOTONS as described in [53]. Fig. 1 (left) clearly shows the necessity to include photon radiation in the first place. Photon radiation causes a significant shape difference, shifting events from large to lower m . This effect is a lot more striking in the decay into the lighter leptons, such as for the electrons exhibited here, which are much more likely to radiate photons. We can also appreciate that while the soft-collinear approximation does a good job of describing the distribution near the peak, it predicts a harder spectrum at lower values of m . The peak region corresponds to the limit of soft photon radiation, while the latter region corresponds to hard photon radiation. This observation thus suggests that in order to capture the behaviour of the distribution over its entirety, we need to employ full matrix elements. It is then natural to ask whether higher order corrections beyond the NLO in QED are required as well. The impact of NNLO QED corrections is already illustrated in Fig. 1 (left) and the description of these and of full NLO EW corrections will be the focus of the next two subsections.

NLO electroweak corrections
The discussion in Section 2.1 was restricted to QED corrections only. Since the exponentiation relies on the universal behaviour of the amplitudes in the soft limit only, additional fixed-order corrections can easily be added, as long as they are not divergent in the soft limit and thus do not spoil the soft-photon exponentiation. This is, in fact, the case for the weak part of the corrections in the full electroweak theory, where the masses of the weak bosons regulate the soft divergence that  is plaguing the massless photon. In this work, we are concerned with the decays of weak bosons; consequently, there is no phase space available for the emission of a real, massive weak boson, and the additional electroweak corrections contribute only to the virtual correctionsβ n V 0 . The known one-loop virtual corrections for the decays of the electroweak bosons [57,62] have been implemented in a number of programs dedicated to electroweak precision calculations already mentioned in the introduction. They can be calculated analytically with programs such as FEYNCALC [63,64], FORMCALC [65] or Package-X [66], and numerically with programs such as GOSAM [67,68], MADGRAPH5 [69,70], OPENLOOPS [71,72] or RECOLA [73,74]. The two-loop virtual electroweak corrections are not fully known yet, with only partial results for particular observables available, see for example [75,76].
We implemented the electroweak corrections for the decays Z → + − , H → + − and W → ν in the YFS correction factor C. In doing so, we also re-implemented and re-validated the QED corrections in a more straightforward way. In our calculation we retain the full dependence on the lepton masses in the decay H → + − . In the two other decays we keep them only in the QED corrections, where they are required to regularize the collinear singularities, while we neglect them in the other contributions. To this end we used the vertex form factors found in [58] to describe the virtual corrections to the vertices. We renormalize the theory using the on-shell renormalization scheme, following the treatment described in [57]. We have validated the amplitudes on a point-by-point level against an implementation in OPENLOOPS [71,72], all in the case of massless leptons for Z-and W -boson decays, and for the case of a Higgs decay into massive fermions. In addition, we also validated the values of the scalar integrals including masses against COLLIER [77][78][79][80] and QCDLoop [81], as well as individual renormalization constants for massive leptons against OPENLOOPS. Real corrections due to the emission of an additional photon are calculated in the helicity formalism [82][83][84] using building blocks available within SHERPA [85]. We validated these corrections explicitly, against WZGRAD [27][28][29] and by internal comparison with AMEGIC [85] and COMIX [86]. We also validated full cross sections against WZGRAD [27][28][29].
For the decays of Z-and Higgs-bosons, we further implement an option including only QED corrections. In the decay of neutral bosons, this choice forms a gauge-invariant subset of the full electroweak corrections and can thus be considered independently. Practically, this amounts to turning off the purely weak vertex form factors as well as turning off those parts of the renormalization constants that are of weak origin. This option is not available in the case of a W -boson decay as the W itself couples to the photon. We list the relevant form factors, renormalization constants and the necessary modifications in the pure QED case in Appendix B.
As an illustration in Fig. 1 (right) we compare the LO, the soft-collinear and the full NLO-correct results for the invariant of the charged electron and the neutrino in W -boson decays. As for the Z decay, the inclusion of the exact fixed-order corrections is mandatory for a reliable prescription below the resonance peak.

NNLO QED corrections
We will now turn to the discussion of NNLO QED corrections to Z-and Higgs-boson decays. They comprise double-virtual, real-virtual and real-real contributions. The NNLO QED corrections can be combined with the full NLO EW corrections, and we will label this combination as "NNLO QED ⊕ NLO EW". As illustrated in Fig. 1 (left) the NNLO corrections yield very small corrections beyond NLO -at least in observables defined at LO. However, their inclusion ensures precision at the sub-percent level required for future Drell-Yan measurements.

Double virtual corrections
The two-loop pure QED corrections to the form factor for the Z-boson decay have been known in the limit of small lepton masses since the LEP era [59,87]. Including full mass dependence, currently the two-loop QED form factor is only known for the decay of a virtual photon [88].
To the best of our knowledge, no QED two-loop form-factors are available for the decay of Higgs bosons. In principle they could be obtained from corresponding QCD results [89][90][91][92][93] However, for simplicity here we rely on the leading logarithmic behaviour only,β 2 0 = 1 2 log 2 s m 2 . We find that for the decays into bare muons, this is a sufficient approximation. Appreciable effects due to this approximation might only be noticeable in Higgs decays into τ -leptons.
For the decay of Z-bosons, we use the results in Eqs. (2.15) and (2.22) of [59], together with the subtraction term B expanded in the limit s m 2 . The results for the form factors given in [59] are sufficient as we only require the squared contribution Re(M 2 0 M 0 * 0 ). In fact, here the two-loop amplitude M 2 0 factorizes into a simple factor multiplying the leading order matrix element. The double virtual corrections can be decomposed, following the procedure described in section 2.1, as such that the infrared subtracted matrix element reads Employing the results of [59] and the form of the subtraction term given in Eq. (C.2), we obtain where ζ(n) is the Riemann Zeta function, with ζ(3) ≈ 1.202056903159594 and L = log(s/m 2 ).

Real-virtual corrections
The real-virtual corrections correspond the virtual corrections to the process X → ff ( ) γ, with one real, hard photon. We can write the infrared subtracted, squared real-virtual matrix elements as where k 1 denotes the momentum of the hard photon, and the sum in the first term runs over the spins s i of the leptons and the polarizations λ j of the vector bosons. The factorS (k 1 ) is calculated using the momenta mapped to the single photon final state taking k 1 as the hard photon momentum. For consistency,β 1 0 contains only the one-loop QED corrections. Using FEYNCALC [63,64] we rewrite the amplitudes in terms of standard matrix elements multiplied by expressions involving scalar master integrals. We have encoded the neccessary master integrals using [57,58,94]. We also use the algorithm proposed in [95] for the evaluation of the complex dilogarithm occuring in the master integrals. We have confirmed the analytical cancellation of the UV divergences upon including the renormalization terms as well as the cancellation of the virtual IR divergences upon inclusion of the infrared subtraction term. However, the very nature of the expressions involved increases the likelihood of numerical instabilities in the evaluation of particular phase space points: while strictly finite, separate terms in the expression may suffer from numerical instabilities, causing incomplete cancellations between different terms. The reasons are twofold, and connected with the collinear regime of the emissions: • The YFS formalism relies on fermion masses to regularize the collinear singularities, which in the case of small fermion masses may amount to the evaluation of expressions very close to logarithmic singularities, of the type log(s ij /m 2 ), where s ij = (p i + p j ) 2 is the invariant mass of two momenta. We find that in our implementation the amplitudes for the decays into electrons and to some extent also into muons are affected by numerical instabilities while the amplitudes for the decays into τ 's are well-behaved.
• In addition, the employed Passarino-Veltmann reduction may lead to the appearance of small Gram determinants in denominators. One way to circumvent this issue is by employing an expansion in the Gram determinant for the problematic tensor integrals rather than the full reduction, as implemented for example in COLLIER [80]. Since this requires the implementation of a significant number of expressions for different combinations of arguments in the tensor integrals and thus amounts to a large overhead, this is not pursued in this work.
To cure both problems, we instead use the following algorithm: We call a phase space point "collinear" when s ik < a · m 2 i , where s ik is the invariant mass between the photon and one of the fermions in the process and a is some predefined cutoff. Such a phase space point will not be evaluated using the full matrix element but rather using the quasi-collinear limit of the amplitude. Using this limit, the calculational complexity of the amplitude is significantly reduced and numerical instabilities are avoided. As an additional rescue system, in case a bad phase space point should still pass to be evaluated using the full matrix element, we also check the scaling behaviour of the amplitude under a rescaling of all dimensionful quantities. The expressions for the coefficients of the master integrals can be rewritten using reduced quantities, i.e. all dimensionful quantities are divided by the centre of mass energy of the decay. In this way, dimensionful quantities only survive in the master integrals themselves as well as in a single factor multiplying the master integral. The mass dimension of a four point function in four dimensions is 0, such that upon rescaling by a common factor ξ = 1, the full expression should remain unchanged, M(ξ) = M(1). Different terms in the matrix elements scale differently due to the different scaling behaviours of the master integrals, so a deviation from the expected scaling behaviour indicates numerical instabilities in the expression. For |M(1)/M(ξ) − 1| > c, with c some predefined cutoff, we set the real-virtual matrix element to 0. We varified that all results remain unchanged varying the technical parameters a, c.

Real-real corrections
The real-real corrections stem from the emission of two hard photons. For the implementation, we choose the same strategy as in the case of single real corrections, by using helicity amplitudes and building blocks already present in SHERPA. After setting up the amplitude like this, we can calculate the infrared subtracted matrix element squared that enters into the correction factor C: In this formula, the k 1 and k 2 denote the momenta of the two hard photons, the sum in the first term runs over the spins s i of the leptons and the polarizations λ j of the vector bosons. TheS (k i ) are calculated using the momenta in the mapped (n + 2)-dimensional phase space, using the pair k 1 , k 2 as the hard photons, see Appendix A.

Setup
In this section we present the numerical effects induced by the NLO EW and NNLO QED corrections presented in the previous section, focussing on the decays Z → + − , W → ν and H → + − with = {e, µ, τ } following hadronic neutral-current and charged-current Drell-Yan and Higgs production respectively.
The results presented here are based on an implementation in the PHOTONS module [53] of the SHERPA Monte Carlo framework (release version 2.2.4). We consider hadronic collisions at the LHC at 13 TeV for the production of Z-, W -and Higgs-bosons and their subsequent decays. In the neutral-current Drell-Yan case we require 65 GeV < m < 115 GeV, while for the other modes no generation cuts are applied. Since we aim to purely focus on the effects of photon radiation in the decays, we turn off the QCD shower, fragmentation and underlying event simulation. We use RIVET 2.5.4 [96] for the analysis. For the case of electrons in the final state, we perform the analysis either using bare leptons or using dressed leptons with a radius parameter ∆R = 0.1 or ∆R = 0.2. For the case of muon and τ final states only bare results are shown. We focus our results on a few key distributions and always normalize to the respective inclusive cross section. Overall, we choose to focus on ratios between different predictions, in order to highlight small subtle differences relevant for precision Drell-Yan and Higgs physics.
Input parameters for the numerical results are chosen as listed in Tab. 1. The weak coupling α is defined in the on-shell α(0) scheme. This choice is sensible as we are explicitly also investigating distributions in resolved final-state photons. At the same time, the YFS formalism is strictly only defined in the limit of soft photon emissions. In this input scheme, the sine of the weak mixing angle is a derived quantity s 2  in a fixed-width scheme.
In the decays of W and Z bosons, we apply an IR technical cutoff in the YFS formalism of E γ,cut = 0.1 GeV, while in the Higgs-decay we reduce this value to E γ,cut = 0.01 GeV in order to improve the resolution near the resonance 2 . In both cases, we keep an analysis cut of E γ > 0.

Neutral-current Drell-Yan production
In Figs. 2-4 we present several key observables in neutral-current Drell-Yan production including higher-order QED corrections up to NNLO and EW corrections up to NLO. All distributions are normalized and the effects of the higher-order corrections typically manifest themselves as very subtle shape distortions in the considered observables. All figures are identically structured and we show nominal predictions for dressed di-electron production, i.e. collinear photon-electron pairs with ∆R < 0.1 are combined, at LO (black), considering soft-collinear QED corrections (blue), NLO QED corrections (green), and our best predictions at NNLO QED ⊕ NLO EW (red). In the first two ratio plots we compare the predictions at NLO QED against the soft and soft-collinear approximations and against the NLO EW and NNLO QED ⊕ NLO EW predictions respectively. In the third ratio plot we investigate different dressing prescriptions of the electrons, considering ∆R = 0.2 and undressed bare electrons. Finally, in the last ratio plot we compare predictions for dressed electron with corresponding ones for bare muons and τ 's. In the latter two ratios plots all predictions correspond to the most accurate level, i.e. NNLO QED ⊕ NLO EW.
In Fig. 2, we present the distributions of the invariant mass of the two leptons (left) and of the invariant mass of the system made up of the decay leptons and the photon closest to either of them (right). Already from the plots in Section 2.2, it is clear that the inclusion of photon radiation is crucial for a reliable description of the dilepton invariant mass. All higher-order corrections significantly differ from the LO prediction, which fails to describe the lineshape below the peak. At the NLO QED level corrections beyond the soft and soft-collinear approximations induce distortions up to the 1% level. In fact, the soft approximation does not generate enough hard radiation, while the soft-collinear approximation produces about 1% too many events at low m , i.e. it seems to generate too much hard photon radiation. In this observable both the NLO EW and NNLO QED corrections provide only a marginal effect on the order of permille, and neither of these corrections provides a significant shift of the peak of the distribution. Clearly, the dressing of the electrons has a significant effect on this distribution, reflecting the sensitivity to QED radiation. Bare electrons show a significant shape difference compared to dressed electrons. The results based on different dressing parameters however differ by at most a few %, suggesting that much of the photon radiation occurs close to the electron. Comparing different lepton species, we see that muons, in comparison to the dressed electrons, radiate significantly more, yielding up to 25% more events at low m . In contrast, the heavier τ 's radiate less in comparison, resulting in differences with respect to dressed electrons of only a few %.
A very similar behaviour can be found in the invariant mass of the dilepton system combined with the closest photon. As this observable requires the emission of at least one photon, the NLO QED curve corresponds effectively to a LO prediction. However, also the soft and soft-collinear approximations describe this observable reasonably well and higher order NNLO QED or NLO EW corrections are negligible. Comparing the dressing parameters, we find much smaller differences here: bare electrons only differing by about 15% from the dressed versions. There is barely a difference between the two dressings. In the same manner, the difference between lepton species is subdued as well: muons differing up to 2% at most from dressed electrons.
In Figure 3, we present the distribution of the transverse momentum of the lepton, p ⊥, , alongside the transverse momentum of the system of the two leptons, p ⊥, . The transverse momentum of the leptons, p ⊥, , receives small corrections from the inclusion of higher order corrections beyond NLO QED into the YFS formalism. Only the phenomenologically irrelevant region of very low p ⊥, receives corrections at the permille level at NLO EW. Both the soft and soft-collinear approximations agree at the permill level with NLO QED for p ⊥, > 20 GeV. Correspondingly, also the dressing of the electrons has a small effect on this distribution, with bare electrons carrying significantly less transverse momentum than the dressed versions. The difference between lepton species is marginal, up to about 5% at very low p ⊥, and above the Jacobi peak.
In contrast, the transverse momentum of the system of leptons, p ⊥, , shows significantly larger effects. Of course this distribution is not defined at LO and correspondingly it is very sensitive to the modelling of photon radiation. This can be appreciated when comparing the NLO QED prediction with the soft and soft-collinear approximations. Only at small p ⊥, the approximations agree. In this observable also the inclusion of NLO EW effects shows a significant impact, with differences reaching up to 5%. The NNLO QED effects provide a competing effect to the NLO EW corrections, lifting the distributions by about 2% across the entire distribution. The effects of the dressing on the distribution is unsurprisingly very large as well. Bare electrons show significantly more events at non-vanishing values of p ⊥, , while a different dressing parameter leads to an almost flat decrease across the spectrum. The comparison of the different lepton species shows that the muons again radiate a lot more, with up to 75% more events at medium p ⊥, . τ 's in comparison show a reduction in the number of events at large p ⊥, of up to 50%.
Finally, in Figure 4, we show the distribution of the sum of the photon energies in the decay rest frame, nγ E γ , and the distribution of the so-called φ * η -variable. The sum of the photon energies is largely correlated with the p ⊥, , as discussed before. This distribution shows a distinct edge at about half the Z-boson mass, which is being washed out by multiple radiation. The kinematics of the decay restrict the energy of a single radiated photon to be smaller than E 1 γ,max =ŝ −4m 2 2 √ŝ , which is roughly equal to half the boson mass near the resonance. For an event to have a total   photon energy beyond this edge, two hard photons need to recoil at least partly against each other. The region above the kinematical edge is then only described approximately, as long as no NNLO corrections are considered. The NLO EW prediction mildly increases the number of events without photon radiation, leading to a decrease at the kinematic edge of about 3%. The NNLO QED corrections again provide a competing effect, leading to a difference of about 1% to the NLO QED predictions near the edge. Beyond it, the NNLO QED corrections show a significant departure from the shape of the previous predictions as this region is for the first time described correctly at fixed-order. The behaviour of different dressings and lepton species is very similar to the case of the p ⊥, . The bare electrons show a significantly larger number of hard photons, while another dressing only leads to an approximately flat decrease. Muonic decays contain a larger number of events with hard photons, while τ 's radiate significantly less.
The φ * η -variable [97] can be seen as an alternative to p ⊥, , with the aim of being easier measurable. It is defined purely in terms of lepton directions as: where the acoplanarity angle φ acop is defined in terms of the difference in azimuthal angles ∆φ between the two leptons as φ acop = π − ∆φ, and θ * η = tanh η − −η + 2 in terms of the lepton pseudorapidities η i . In this observable, the soft region corresponds to the region of low φ * η . In comparison to the NLO QED predictions, the soft approximation predicts too many events with low φ * η , the difference quickly reaches beyond 10%. The soft-collinear approximation shows the opposite behaviour, predicting too many events with large φ * η . The NLO EW prediction provide corrections of a few percent, while the NNLO QED corrections compensate the NLO EW corrections  almost completely. The dressing shows effects of up to 25% at medium value of φ * η .

Charged Drell-Yan lepton-neutrino pair production
In Figs. 5-7, observables crucial for the study of charged-current Drell-Yan dilepton production are investigated. We present results for the decay W + → + ν , as the charge conjugate case behaves practically identically. All figures are similar to the neutral-current case presented in Section 3.2. However, here the best prediction is of NLO EW, as pure QED corrections cannot be defined in a gauge-invariant way. As before all nominal predictions correspond to dressed electrons.
In Figure 5, we start with the transverse mass of the lepton neutrino system, M ⊥ ν , and the invariant mass of the charged lepton and the nearest photon, m γ . The M ⊥ ν observable is barely affected by the NLO EW corrections. In fact the soft-collinear approximation agrees with NLO EW at the permill level. The dressing of the electrons has a rather large impact, with differences with respect to a bare treatment reaching up to 10% at the edge. A slight shift of the edge is observed when comparing different lepton species with one another, affecting the distribution to up to a few %.
The invariant mass of the charged lepton and the closest photon, m γ shows significantly larger corrections. Compared to the NLO EW corrections, the soft approximation predicts a spectrum that is too soft, while the soft-collinear approximation produces up to 5% more events with large m γ . Bare electrons have a lot more events at low m γ coming from those photons that have not been clustered in comparison to the dressed cases. On the other hand, those electrons dressed with ∆R = 0.2 have a reduced number of events at low m γ . The comparison between lepton species shows significant differences close to low m γ , illustrating the differing size of the dead cone.  Figure 6: Plots of the transverse momentum of the charged leptons, p ⊥, , on the left and the missing transverse E, E miss ⊥ , on the right. Predictions and labels as in Fig. 5.
In Figure 6, we show the transverse momentum of the charged lepton, p ⊥, , alongside the missing transverse energy, E miss ⊥ . The latter corresponds in our simple setup to the transverse energy that the neutrino carries away. Both distributions are related and indeed they behave very similarly. As in the neutral-current case, the transverse momentum of the charged lepton is barely affected by NLO EW corrections, with corrections only becoming appreciable for very low values of p ⊥, . The dressing affects the distributions by up to about 10% in the peak region, while different lepton species differ by up to 4% in the peak region and at low p ⊥, .
In Figure 7, we present the sum of photon energies in the decay rest frame, nγ E γ , and the number of photons with energy E γ > 0.1 GeV, n γ . The sum of photon energies shows a kinematic edge just as in the neutral current case. While the soft approximation predicts too soft a spectrum of photon energies, the soft-collinear approximation does a much better job in W -decays as the effects coming from NLO EW corrections reach at most 5% at the kinematic edge. The reason for this behaviour can be read from the distribution of the n γ . The soft approximation is shown to produce too few photons, while the soft-collinear approximation predicts more events with 1-3 photons. Analyses using bare electrons show a significantly larger number of photons, with already 4 times more events with 1 photon. At the same time, for ∆R = 0.2 electrons, the number of photons is suppressed significantly. A similar picture presents itself when comparing lepton species. Muonic decays contain significantly more photons, while decays into τ 's end up with a lot less events with at least one photon.
As a noteworthy observation we want to point out a difference between neutral-current and chargedcurrent processes: the soft-collinear approximation is more reliable in the charged-current case. This can be understood from the fact that here collinear radiation predominantly originates from just one particle, the lepton, rather than two competing particles as in the Z-boson case. Any error due to the missing interference contributions in the soft-collinear approximation is thus significantly diminished.

Leptonic Higgs-boson decays
Finally we highlight the effect of higher-order corrections in photon radiation off leptonic Higgs decays. Numerical results are shown in Fig. 8, where the nominal distribution corresponds to H → µ + µ − with bare muons. Here we focus on the dilepton invariant mass m and p ⊥, recoil.
As for neutral-current Drell-Yan we consider higher-order corrections at the level of soft and softcollinear approximations, full NLO QED, NLO EW and also combining NLO EW with NNLO QED. The LO prediction clearly fails to describe the invariant mass distribution. Yet, the soft and soft-collinear approximations provide a quite reliable description with corrections smaller than 1-2% with respect to full NLO QED. The weak corrections are slightly larger compared to the neutralcurrent Drell-Yan case, still they alter the invariant mass distribution only at the permille level and are overcompensated by NNLO QED effects of the same order. As mentioned in Section 3.1 we are unable to resolve the sharp mass peak of the Higgs-boson with the lowest energy photons we generate. However, investigating the low energy tail of the invariant mass distribution, we observe that the NLO QED corrections provide a mostly flat contribution in the peak region. Comparing decays into bare muons with decays into bare τ 's, we can appreciate a significantly smaller sensitivity of the τ distribution to QED radiation.
The distribution of the transverse momentum of the di-lepton system shows similar effects as in the case of the Z-boson decay. The soft approximation predicts a distribution that is far too soft, while the soft-collinear approximation predicts too many events with large p ⊥, . The NLO EW corrections increase the number of events by about a permille at low p ⊥, , and decrease them at high values up to about 5%. The NNLO QED corrections in this case do not provide a large competing effect, and the NNLO QED ⊕ NLO EW prediction agrees with the NLO EW one at the permille level. Decays into τ 's show about 40% less events with non-vanishing p ⊥, , the effect being close to constant across the entire distribution.

Conclusions and outlook
In this paper, we have presented an implementation of NLO EW and NNLO QED corrections to the decays of weak gauge and Higgs bosons within the YFS formalism. For this purpose, we extended SHERPA's module PHOTONS to include the relevant matrix elements, renormalized in the on-shell scheme, and subtractions needed within this formalism. In our numerical results we find that observables relating only to the leptons in the process are only marginally affected by the corrections, up to the level of a few permil. In particular, the peak of the invariant mass distributions is practically not affected. Distributions that relate to the energies of the generated photons themselves, or can be related to them, such as the transverse momentum of the pair of the leptons p ⊥, , naturally receive larger corrections. The electroweak corrections increase the likelihood of hard photon radiation by up to 2-3% for very hard radiation. The NNLO QED corrections compete with these corrections by reducing the likelihood of hard radiation, albeit to a smaller extent. At the same time, some regions of phase space are only described at leading order in α upon the inclusion of the double real radiation, such that in these regions the corrections can be significantly larger. Examples for such regions are those where the sum of the photon energies exceeds half the boson mass or regions of large φ * . Angular distributions of the photons are not affected by higher order contributions confirming the general radiation pattern of QED radiation.
The results give us confidence that the inclusion of the full EW corrections to particle decays within the YFS formalism in SHERPA are sufficient to achieve precise results for most leptonic observables. Beyond the corrections investigated in this work, it will be interesting to consider the YFS formalism also including initial state effects and the matching to NLO EW corrections to the hard production process, see [98].
The implemented NNLO QED and NLO EW corrections provide high precision also in extreme phase space regions and can be seamlessly added to standard precision QCD simulations. This provides an important theoretical input to future precision determinations of fundamental parameters of the EW theory at hadron colliders and beyond.

A Momentum mappings
For the purposes of event generation, we need to define the momenta that are used in the master formula Eq. (2.13). We will refer to the momenta used in the leading order matrix element,β 0 0 , as the "undressed" momenta, i.e. the momenta before the event is dressed with photons. The undressed momenta are labelled through q µ i , and we define as the sums of the final state neutral and charged momenta. After the generation of the additional photon momenta, the undressed momenta have to be mapped to a set of "dressed" momenta to account for momentum conservation. The dressed momenta are labelled through p µ i and we define the sums of the neutral and charged final state particles in the same way as for the undressed momenta: In a similar manner, we define the sum of the photon momenta as The mappings relevant for particle decays of both uncharged and charged initial particles have been outlined in section 3.3 of [53], but we will repeat them here for the benefit of the interested reader. The only condition the mapping has to meet is that in the limit of K → 0, the underlying momenta of the undressed n-parton phase space have to be recovered exactly. QED provides no guiding principle which particle should be taken to balance the momenta of the generated photons. It is therefore sensible to treat all the final state momenta fully democratically and let them all take the recoil. Considering all particles in the rest frame of the multipole responsible for the radiation, this can be achieved by scaling the three-momenta of all final state particles by a common factor u, distributing the photon momenta across, and finally enforcing momentum conservation and on-shell conditions.

A.1 Neutral initial states
For a neutral particle of mass m decaying into charged particles, such as is the case of a Z-or a Higgs-boson, the above procedure fixes the mapping to a rescaling of all final state momenta, balancing the photonic momentum by moving the frame of the multipole.
We start with the undressed momenta in the multipole rest frame The outlined procedure maps these momenta onto the final state momenta P C and P N : We can rewrite the three momentum of the initial state as u Q N + K = u q + K showing that the two vectors q and q are the same vector in different frames. All momenta now reside in the rest frame of the dressed multipole. We can then determine the scaling parameter u from energy conservation:

A.2 Charged initial states
For a charged particle of mass m decaying into a charged particle and a number of neutral particles, such as is the case of a W -boson, we require a different approach. In order to remain in the rest frame of the dressed multipole, we cannot accomodate the photon momenta purely in the initial state.
Again, we start with the undressed momenta in the multipole rest frame: In the most democratic approach, the photon momenta are accomodated equally by all particles in the final state and the undressed momenta will be mapped onto: All momenta now reside in the rest frame of the dressed multipole. The n C and n N denote the number of charged and neutral final state particles, and κ is defined as: One can however also choose to let only the charged particles or only the neutral particles in the process accomodate the photon momenta, in which case κ = K/(2n C ) or κ = K/(n N ), respectively, and corresponding terms in the mapping vanish. The default option in PHOTONS, and the one that we employ for the results presented this paper, is the choice of letting only the neutral particles take the recoil.
Again, the scaling parameter u can be determined from energy conservation:

A.3 Momenta in higher order corrections
Having discussed the momentum mappings necessary to map from undressed to dressed momenta, it is worth briefly discussing which set of momenta is to be used in each component of Eq. (2.13).
Every part of this formula apart from the correction factor, C, is calculated using the undressed momenta q i , with the Jacobean J accounting for the mapping from undressed to dressed momenta. This in particular includes the factorsS that implement the soft approximation to the real matrix elements.
The correction factor C amounts to a reweighting of the YFS approximation to the required perturbative order. Practically, for the real matrix element corrections, the eikonal factorsS have to be cancelled out. Thus, the eikonals in the denominators in Eq. (2.18) have to be calculated using the undressed momenta.
All matrix elements containing no additional photon,β i 0 , are calculated in the n-particle Born phase space, i.e. using the undressed momenta. The terms describing real matrix element corrections are then calculated in the phase space appropriate to the number of photons they contain: In the n + 1-particle phase space for the single real matrix elementsβ i 1 , in an n + 2-particle phase space for double real matrix elements,β i 2 , and so on. In order to define the momenta in these phase spaces, we repeat the mapping procedure described previously, but now only taking into account the photons that are taken to be hard in the matrix element correction. This procedure is repeated for every photon or set of photons that have been created. For the single real matrix elements, this means there are in total n γ calls to the mapping and the matrix elements, while for the double real matrix elements, there are n γ (n γ − 1)/2 calls to the mapping and the matrix element.

B NLO EW form factors and counterterms
For completeness in this section we collect the electroweak vertex form factors and counterterms required for setting up the NLO electroweak corrections toβ 1 0 . We use the vertex form factors found in [58] and the counterterms in the on-shell renormalization scheme from [57]. The vertex form factors retain the full dependence on the lepton masses only in the QED corrections, while the purely weak contributions are calculated in the massless limit. In order to find the pure NLO QED corrections, out of the form factors we need to only include the QED form factors. In the counterterms, we only need to include the photonic corrections to the wavefunction renormalization. The tree-level couplings are formally purely weak couplings and do not need to be renormalized in this case. This procedure amounts to the full separation of the U (1)-from the SU (2)-theory. Such a procedure is only possible for the decays of electroweak particles that do not couple to the photon, in our case the Z-and Higgs bosons. For the charged W -boson, such a separation does not yield a gauge-invariant subset of contributions and we can only calculate matrix elements in the full electroweak theory. Here we note, that shifts due to a different metric signature in SHERPA and [57] versus [58] have been considered. All results presented here are in Feynman gauge. We call the left-and right-handed tree-level couplings c L and c R and introduce g L = c L for convenience. We further use the vector coupling v f = (g L + g R ) and the axial coupling a f = (g L −g R ). Any quantity denoted as x f refers to the iso-spin partner of the fermion f .

B.1 Z → ff
The QED corrections to this vertex are given by: A (s) . (B.1) In the massless limit, only the structure proportional to γ µ (c L P L + c R P R ) contributes. The form factor F Aa (s) is given by: The other form factors are all proportional to the fermion mass and read The effect of abelian Z-and φ 0 -exchanges is given by: For the diagrams involving W bosons (and the associated ghosts), we introduce: The effect of abelian W -and φ-exchanges, i. e. all diagrams not involving a three-boson vertex, is described by: Note that this is purely a contribution to the left-handed part of the amplitude. The necessary auxilliary functions are given by: (B.11) The effect of non-abelian W -and φ-exchanges, i.e. all the diagrams containing a three-boson vertex, is described by: (−I f ) γ µ P L F W n (s) +F W n (s) . (B.12) Note that this is again purely a contribution to the left-handed part of the amplitude. The necessary auxilliary functions are given by: The counterterms for this vertex read: where the left-and right-handed, tree-level couplings c R , c L and their counterterms δc R , δc L are given by: The decay of W -bosons will only be applied to ν final states within the YFS framework, whereas qq final states will be treated within the parton shower to allow for consistent matching with the dominant QCD corrections. In the case of ν final states, there is no diagram for photon exchange between the final state particles. All the corrections to this decay are purely corrections to the left-handed coupling (since fermion masses are neglected in these subamplitudes). The effect of non-abelian photon exchange is given by: The form factor is given by: (B.21) The effect of abelian Z-exchange is described by: with the function F Za (s) as in the decay Z → ff (Eq. (B.7)).
The effect of non-abelian Z-exchange is given by: The counterterms for this process read: Here, the conjugated wavefunction counterterm is chosen for the antiparticle, with the usual unchanged counterterm chosen for the particle in the process. The tree level couplings are:

B.3 H → ff
The vertex corrections to the Higgs decay into fermions are more complex than the previously considered examples as all masses have to be retained. The amplitude will only be used for H → + − -decays, while the colourful decays are treated via the parton shower.
where the u may be particle or anti-particle spinors. The latter case will be denoted through a bar over the spin index s i . Similarly, we can define another function Y : Y (p 1 , s 1 ; p; p 2 , s 2 ; c R , c L ) =ū (p 1 , s 1 ) [c R P R + c L P L ] u (p 2 , s 2 ) , (D. 4) which would be used in the decay of a Higgs boson, when there is no structure Γ µ in the real matrix element. The calculation of these functions has been outlined in [85] and [53], and are based on the work in [82], [83] and [84].
Using these functions, we can write the full amplitude as: For the double real matrix elements, to reduce the size of the expressions, we only write the spin labels, the intermediate momenta and the respective internal vector, so that X(p i , s i ; j ; p k , s k ; c L , c R ) ≡ X({p i , }s i , j , {p k , }s k ). For the external leptons, it is understood that the spin label s i , i ∈ {1, 2}, corresponds to the momentum p i and we leave the momentum out. It is further understood, that the left-and right-handed couplings are 1, 1 when contracted with a photon polarization and c L , c R when contracted with the Z-polarization.
For the process Z → ff γγ, the matrix element reads: where we introduced the triple boson vertex V τ ρν = g τ ρ (p 2 − p 1 ) ν + g ρν (p 3 − p 2 ) τ + g ντ (p 1 − p 3 ) ρ . The first term in this matrix element can be treated like the terms in the process Z → ff γ. For the second term, we first contract the triple boson vertex, the W -propagator and the polarization vectors. What remains is a structure as in the definition of the X-function, so we can directly write down the result.