1 Introduction

As Run-I of the LHC has been successfully completed, culminating in the celebrated experimental confirmation of the existence of the Higgs boson, Run-II proceeds its data-taking at the unprecedented centre-of-mass energy of 13 TeV. As the much anticipated discovery of signals of beyond-the-Standard-Model physics is still lacking, precision tests scrutinising the Standard Model are of prime importance, now and in the foreseeable future. At the same time, new physics searches are looking for increasingly small signals demanding more precise estimates of the Standard Model backgrounds. This expansion of sensitivity of both precision measurements and new physics searches in the multi-TeV region demand an immense improvement of theoretical predictions.

This precision can be achieved by the inclusion of next-to and next-to-next-to-leading order (NLO and NNLO) corrections in the strong coupling and next-to-leading order electroweak (EW) corrections. Here it should be noted that both NNLO QCD and NLO EW corrections are expected to be of a similar magnitude for inclusive observables as numerically \(\alpha _s^2\approx \alpha \). On selected differential distributions, however, electroweak corrections can grow much larger. They are dominated by photon emissions in the distributions of final state leptons, for example. In invariant mass spectra of lepton pairs below a resonance, for example, O(1) corrections can be present, in which case a proper resummation should be included [1]. Similarly, looking at the (multi-)TeV regime, the NLO EW corrections quickly grow considerably, reducing cross sections by a few tens of percent, due to the emergence of large electroweak Sudakov corrections arising as the scattering energies \(Q^2\gg m_W^2\) [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]. In this regime they are larger than even the NLO QCD corrections in many cases and their omission becomes the dominant uncertainty in experimental studies and searches.

To this end, benefiting from the well-established techniques developed for the automation of NLO QCD corrections many NLO EW corrections have been calculated recently [18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]. To fully automate these computations at NLO EW accuracy in a Monte-Carlo framework all infrared divergences need to be regulated, where various incarnations of subtraction methods have proven to be the methods of choice for practical implementations [39,40,41,42,43]. Similar subtractions have also been published for NLO EW calculations using a dipole picture [1, 44,45,46]. Contrary to the QCD case, only the implementation of [46], restricted to photon emissions of fermions, is publicly available though.

Besides the generalisation to all divergent splittings at \(\mathcal {O}(\alpha )\), including photon splittings and photon emissions off massive scalars and vector bosons, this publication addresses the issue of automatically detecting simultaneously occurring QCD and QED singularities and subtracting them consistently. These occur as soon as the Born process is defined at multiple orders \(\mathcal {O}(\alpha _s^n\alpha ^{N-n})\). In this case the NLO EW correction to the \(\mathcal {O}(\alpha _s^n\alpha ^{N-n})\) process, being of \(\mathcal {O}(\alpha _s^n\alpha ^{N-n+1})\), is at the same time the NLO QCD correction to the \(\mathcal {O}(\alpha _s^{n-1}\alpha ^{N-n+1})\) process and will in general exhibit the corresponding infrared singularities. Further, matters of the organisation of the contributing partonic processes and their mapping to reduce the computational complexity along with the provision of infrared safe phase space cuts are discussed. The algorithm is implemented in the Amegic [47] matrix element generator which is part of the Sherpa [48] Monte-Carlo event generator framework. It bases on the automated subtraction of massless NLO QCD divergences therein [49, 50]. The implementation presented in this publication has, in various preliminary forms, already been used to calculate electroweak corrections to a multitude of important signal and background processes [19, 21, 25, 31, 32, 34, 37, 51,52,53], highlighting its versatility.

The present paper is structured as follows: first, in Sect. 2 the Catani–Seymour dipole subtraction method is reviewed and the general modifications to its differential and integrated subtraction terms are discussed. Section 3 then details its automation in Sherpa ’s matrix element generator Amegic, highlighting the necessary changes and improvements with respect to [49, 50]. This section also discusses various options implemented for the incorporation of photon splittings, general infrared safe fiducial phase space definitions and flavour scheme conversions. Essential cross checks validating the presented implementation are then presented in Sect. 4 before concluding in Sect. 5. Explicit formulae for all differential and integrated dipoles are given in Appendix AC.

Fig. 1
figure 1

Classification of the four dipole types in Catani–Seymour-type dipole subtraction

2 Catani–Seymour subtraction at NLO EW

In order to be applicable to NLO EW calculations the well-known Catani–Seymour dipole subtraction [40, 41] needs to be recast in a suitable form. To highlight the changes from the original formulation for NLO QCD calculations the complete structure of the formalism is reviewed. This subtraction formalism starts from the the expectation value of any infrared safe observable O described at NLO accuracy through

$$\begin{aligned} \langle O\rangle ^\text {NLO}= & {} \int \mathrm{d}\Phi _m^{(4)}\;\mathrm {B}(\Phi _m^{(4)})\,O(\Phi _m^{(4)})\nonumber \\&+\left[ \int \mathrm{d}\Phi _m^{(d)}\; \left[ \mathrm {V}(\Phi _m^{(d)}) +\mathrm {C}(\Phi _m^{(d)}) \right] O(\Phi _m^{(d)})\right. \nonumber \\&\qquad \left. +\int \mathrm{d}\Phi _{m+1}^{(d)}\; \mathrm {R}(\Phi _{m+1}^{(d)})\;O(\Phi _{m+1}^{(d)}) \right] _{\epsilon =0}.\nonumber \\ \end{aligned}$$
(2.1)

Therein, the Born term \(\mathrm {B}\) consist of the squared matrix element \(\left| \mathcal {M}_m\right| ^2={}_m\langle s_1,\ldots ,s_m|s_1,\ldots ,s_m\rangle {}_m\) with helicity states \(s_n\) and further includes all parton densities, parton fluxes, symmetry and averaging factors. The virtual and real corrections, \(\mathrm {V}\) and \(\mathrm {R}\), as well as the collinear counter term, \(\mathrm {C}\), are defined analogously. When regulating their respective divergences through dimensional regularisation, they have to be evaluated consistently in \(d=4-2\epsilon \) dimensions for all singularities to cancel. Only after their summation can the limit \(\epsilon \rightarrow 0\) be taken. \(\mathrm{d}\Phi _n^{(4)}\) and \(\mathrm{d}\Phi _n^{(d)}\) are the four and d dimensional phase space element. As \(\mathrm {V}\) and \(\mathrm {C}\) on the one hand side and \(\mathrm {R}\) on the other are defined on phase spaces of different parton multiplicity, Eq. (2.1) cannot be used for numerical evaluation straight forwardly and it is rewritten as

$$\begin{aligned} \langle O\rangle ^\text {NLO}= & {} \int \mathrm{d}\Phi _m^{(4)}\;\mathrm {B}(\Phi _m^{(4)})\,O(\Phi _m^{(4)})\nonumber \\&+\int \mathrm{d}\Phi _m^{(4)}\; \Bigg [ \mathrm {V}(\Phi _m^{(d)}) +\mathrm {C}(\Phi _m^{(d)})\nonumber \\&\quad +\int \mathrm{d}\Phi _1^{(d)}\,\mathrm {D}(\Phi _m^{(d)}\cdot \Phi _1^{(d)}) \Bigg ]_{\epsilon =0} O(\Phi _m^{(4)})\nonumber \\&+\int \mathrm{d}\Phi _{m+1}^{(4)} \left[ \mathrm {R}(\Phi _{m+1}^{(4)})\;O(\Phi _{m+1}^{(4)})\right. \nonumber \\&\quad \left. -\mathrm {D}(\Phi _m^{(4)}\cdot \Phi _1^{(4)})\;O(\Phi _m^{(4)}) \right] , \end{aligned}$$
(2.2)

introducing the subtraction term \(\mathrm {D}\). For its construction it is a mandatory requirement that \(\mathrm {D}\rightarrow \mathrm {R}\) in all singular limits, rendering the integral on the third line finite in four dimensions. The divergences of the virtual correction and the collinear counterterm on the other side are cancelled separately by the integral of the subtraction term over the one-particle phase space, rendering the integrals of the second line finite in four dimensions as well. Section 2.1 now describes the construction of the differential subtraction term, \(\mathrm {D}\), used to subtract all divergences from the real emission correction, while Sect. 2.2 presents the integrated subtraction terms, \(\mathrm {I}_\mathrm {D}=\int \mathrm{d}\Phi _1\;\mathrm {D}\), that subtracts all divergences from the virtual corrections and the collinear counterterm in its explicit Laurent expansion after being analytically integrated over the factorised one-particle phase space.

All infrared divergences that occur at NLO EW are of QED origin. No subtractions of potentially large, but finite, corrections involving the emissions of real and virtual massive electroweak gauge bosons will be considered. The practical implementation described in Sect. 3 follows the general lines of [49, 50].

2.1 Differential subtraction terms

To describe all singular limits of a given real emission matrix element \(\mathcal {R}\), related to the real emission term of Eq.  (2.1) in a similar fashion as the Born term, it is decomposed into a sum over dipoles \(\mathcal {D}\) [40, 41] as

$$\begin{aligned} \left| \mathcal {M}_{n+1}\right| ^2= & {} \mathcal {R} \,\rightarrow \;\mathcal {D}= \sum \limits _{i,j}\sum \limits _{k\ne i,j}\mathcal {D}_{ij,k} +\sum \limits _{i,j}\sum \limits _{a}\mathcal {D}_{ij}^a \nonumber \\&+\sum \limits _{a,j}\sum \limits _{k\ne j}\mathcal {D}_{j,k}^{a} +\sum \limits _{a,j}\sum \limits _{b\ne a}\mathcal {D}_j^{a,b}. \end{aligned}$$
(2.3)

Therein, i is the emitter in the final state, j is the emittee, k is the spectator in the final state, a and b are the initial state partons. Each dipole thus encodes the singularity structure caused by the emission of j in the presence of the charge of the spectator. While the divergence associated with the soft emission of j off the dipole \({\widetilde{\imath \jmath }}-{\tilde{k}}\) is partially fractioned into a piece associated with a splitting \({\widetilde{\imath \jmath }}\rightarrow i+j\) in the presence of spectator k and a piece where i and k swap their roles, the divergence associated with the collinear emission of j off \({\widetilde{\imath \jmath }}\) is recovered through charge conservation once all dipoles having \({\widetilde{\imath \jmath }}\) as emitter are summed over.

All four dipole types are depicted in Fig. 1. The individual dipoles take the form [40, 41, 54, 55]

$$\begin{aligned}&\mathcal {D}_{ij,k} = -\frac{1}{(p_i+p_j)^2-m_{\widetilde{\imath \jmath }}^2}\;{{\varvec{Q}}}_{{\widetilde{\imath \jmath }}{\tilde{k}}}^2\; {}_m\langle \ldots ,{\widetilde{\imath \jmath }},\ldots ,{\tilde{k}}, \nonumber \\&\qquad \qquad \ldots |\mathbf {V}_{ij,k}| \ldots ,{\widetilde{\imath \jmath }},\ldots ,{\tilde{k}},\ldots \rangle {}_m\; \Theta (\alpha _\text { FF}-y_{ij,k}) \nonumber \\&\mathcal {D}_{ij}^a = -\frac{1}{(p_i+p_j)^2-m_{\widetilde{\imath \jmath }}^2}\,\frac{1}{x_{ij,a}} {{\varvec{Q}}}_{{\widetilde{\imath \jmath }}{\tilde{a}}}^2\; {}_m\langle \ldots ,{\widetilde{\imath \jmath }},\ldots ,{\tilde{a}},\nonumber \\&\qquad \qquad \ldots |\mathbf {V}_{ij}^a| \ldots ,{\widetilde{\imath \jmath }},\ldots ,{\tilde{a}},\ldots \rangle {}_m\; \Theta (\alpha _\text { FI}-1+x_{ij,a})\nonumber \\&\mathcal {D}_{j,k}^{a} = -\frac{1}{2p_ap_j}\,\frac{1}{x_{aj,k}}\;{{\varvec{Q}}}_{{\widetilde{a\;\!\!\jmath }}{\tilde{k}}}^2\; {}_m\langle \ldots ,{\widetilde{a\;\!\!\jmath }},\ldots ,{\tilde{k}},\nonumber \\&\qquad \qquad \ldots |\mathbf {V}_{j,k}^a| \ldots ,{\widetilde{a\;\!\!\jmath }},\ldots ,{\tilde{k}},\ldots \rangle {}_m\; \Theta (\alpha _\text { IF}-u_j)\nonumber \\&\mathcal {D}_j^{a,b} = -\frac{1}{2p_ap_j}\,\frac{1}{x_{aj,b}}\;{{\varvec{Q}}}_{{\widetilde{a\;\!\!\jmath }}{\tilde{b}}}^2\; {}_m\langle \ldots ,{\widetilde{a\;\!\!\jmath }},\ldots ,{\tilde{b}},\nonumber \\&\qquad \qquad \ldots |\mathbf {V}_j^{a,b}| \ldots ,{\widetilde{a\;\!\!\jmath }},\ldots ,{\tilde{b}},\ldots \rangle {}_m\; \Theta (\alpha _\text { II}-v_j). \end{aligned}$$
(2.4)

Therein, the charge-correlator is defined as [1, 44, 45]

$$\begin{aligned} {{\varvec{Q}}}_{{\widetilde{\imath \jmath }}{\tilde{k}}}^2&= \left\{ \begin{array}{ll} \frac{Q_{\widetilde{\imath \jmath }}Q_{\tilde{k}}\theta _{\widetilde{\imath \jmath }}\theta _{\tilde{k}}}{Q_{{\widetilde{\imath \jmath }}}^2} &{} {\widetilde{\imath \jmath }}\ne \gamma \\ \kappa _{{\widetilde{\imath \jmath }}{\tilde{k}}} &{} {\widetilde{\imath \jmath }}=\gamma \end{array}\right. \quad \text {and}\quad \sum _{{\tilde{k}}\ne {\widetilde{\imath \jmath }}}\kappa _{{\widetilde{\imath \jmath }}{\tilde{k}}}=-1\quad \forall {\widetilde{\imath \jmath }}=\gamma . \end{aligned}$$
(2.5)

The \(Q_{\widetilde{\imath \jmath }}\) and \(Q_{\tilde{k}}\) are the charges of the emitter and the spectator and their \(\theta _{{\widetilde{\imath \jmath }}/{\tilde{k}}}\) are \(1 (-1)\), if they are in the final (initial) state. Of course, \(Q_{\tilde{k}}=Q_k\) and \(\theta _{\tilde{k}}=\theta _k\). In the case of photon splittings no soft divergence is present. Thus, these splittings have no dipole character. To include them in the dipole-formalism nonetheless and to distribute the recoil in splittings away from the collinear limit, spectator partons need to be assigned. As their only role is to absorb transverse momentum of the splitting process, any other particle may be considered as spectator. Each thus assigned recoil partner may be assigned a weight \(\kappa _{{\widetilde{\imath \jmath }}{\tilde{k}}}\), only their sum is constraint by Eq. (2.5) in order to add up to the correct collinear limit. Various options to assign recoil partners are implemented, they are detailed in Sect. 3.2.

Since the QED charges are real numbers, the charge-correlator simply multiplies the matrix element and only leaves the spin-correlators \(\mathbf {V}_{ij,k}\), \(\mathbf {V}_{ij}^a\), \(\mathbf {V}_{j,k}^a\) and \(\mathbf {V}_j^{a,b}\) as insertions in the spin-correlated underlying Born matrix elements. The spin-correlators directly correspond to their QCD counterparts and are detailed in Appendix A. It also defines the initial state momentum rescaling parameters \(x_{ij,a}\), \(x_{aj,k}\) and \(x_{aj,b}\), as well as the splitting variables \(y_{ij,k}\), \(u_j\) and \(v_j\). The \(\{\alpha _\text {dip}\}=\{\alpha _\text { FF},\alpha _\text { FI},\alpha _\text { IF},\alpha _\text { II}\}\) parameters serve to restrict the phase space where the individual dipole terms are non-zero and therefore need to be evaluated [54, 55]. They are constructed such that for every \(\alpha _{{\widetilde{\imath \jmath }}{\tilde{k}}}>0\) the singularity is fully subtracted. The introduction of a parameter \(\kappa \) in dipoles where a final state photon splits into a massive fermion pair in the presence of a final state spectator similarly allows a redistribution of finite terms, cf. Appendix A.

2.2 Integrated subtraction terms

By the above construction, the integral of the subtraction terms \(\mathrm {D}\) over the one-particle phase space possesses all the necessary poles to render the second line in Eq. (2.2) finite as \(\epsilon \rightarrow 0\). This section now summarises the formulae and findings of [40, 41], translated to the QED case, and discusses their important features. The integrated subtraction terms, together with the collinear counterterm, are commonly reorganised into \({{\varvec{I}}}, {{\varvec{K}}}\) and \({{\varvec{P}}}\) operators through the following identification

$$\begin{aligned}&\sum _{a,b}\int \mathrm{d}\eta _a\mathrm{d}\eta _b \int \mathrm{d}\Phi _m^{(4)}\; \Bigg [ \mathrm {V}_{ab}(\Phi _m^{(d)})\nonumber \\&\qquad +\,\mathrm {C}_{ab}(\Phi _m^{(d)}) +\int \mathrm{d}\Phi _1^{(d)}\,\mathrm {D}_{ab}(\Phi _m^{(d)}\cdot \Phi _1^{(d)}) \Bigg ]_{\epsilon =0} O(\Phi _m^{(4)}) \nonumber \\&\quad = \sum _{a,b}\int \mathrm{d}\eta _a\mathrm{d}\eta _b \int \mathrm{d}\Phi _m^{(4)}\; \Bigg \{ \left[ \mathrm {V}_{ab}(\Phi _m^{(d)})\right. \nonumber \\&\qquad \quad \left. +\,\mathrm {B}_{ab}(\Phi _m^{(d)})\cdot {{\varvec{I}}}(\epsilon ,\mu ^2;\kappa ,\{\alpha _\text {dip}\}) \right] _{\epsilon =0}\nonumber \\&\qquad +\sum _{a'}\int \mathrm{d}x_a\; \mathrm {B}_{a'b}(\Phi _m^{(4)})\cdot \left[ {{\varvec{K}}}_{aa'}(x_a;\{\alpha _\text {dip}\})\right. \nonumber \\&\qquad \quad \left. +\,{{\varvec{P}}}_{aa'}(x_a;\mu _F^2) \phantom {\Phi _m^{(4)}} \right] \nonumber \\&\qquad +\sum _{b'}\int \mathrm{d}x_b\; \mathrm {B}_{ab'}(\Phi _m^{(4)})\cdot \left[ {{\varvec{K}}}_{bb'}(x_b;\{\alpha _\text {dip}\})\right. \nonumber \\&\qquad \quad \left. +\,{{\varvec{P}}}_{bb'}(x_b;\mu _F^2) \phantom {\Phi _m^{(4)}} \right] \Bigg \}\; O(\Phi _m^{(4)}). \end{aligned}$$
(2.6)

The \({{\varvec{I}}}\) operator contains the necessary infrared poles to cancel all divergences of the virtual correction such that, after summing both, the limit \(\epsilon \rightarrow 0\) can be taken and the integral can be evaluated in four dimensions. The \({{\varvec{K}}}\) and \({{\varvec{P}}}\) operators are infrared finite by construction and, thus, evaluation in four dimension is unproblematic as well. Please note, that due to the fact that, contrary to the colour correlator in QCD, the charge correlator in QED is a simple real number and thus the convolution of the Born matrix element with the respective insertion operators in QCD becomes a trivial product of the Born matrix element and the operators in QED. The spin-correlation that was still present in the real subtraction terms has been integrated out in full analogy to the QCD case. In the following, the structure of all three operators in the QED case is discussed.

The \({{\varvec{I}}}\) operator. The \({{\varvec{I}}}\) operator contains all flavour-diagonal endpoint contributions and cancels all divergences present in the one-loop matrix elements. It takes the general form

$$\begin{aligned} {{\varvec{I}}}(\epsilon ,\mu ^2;\kappa ,\{\alpha _\text {dip}\})&=-\frac{\alpha }{2\pi }\,\frac{(4\pi )^\epsilon }{\Gamma (1-\epsilon )}\;\nonumber \\&\quad \times \sum _i\sum _{k\ne i}\; {{\varvec{I}}}_{ik}(\epsilon ,\mu ^2;\kappa ,\{\alpha _\text {dip}\}) \end{aligned}$$
(2.7)

and contains single and, in case of massless emitters, double poles in \(\epsilon \). Due to the presence of such poles a dependence on the regularisation scale \(\mu ^2\) enters. It is commonly identified with the renormalisation scale \(\mu _\text {R}^2\). The \({{\varvec{I}}}\) operator is further dependent on the choice of the \(\{\alpha _\text {dip}\}\) and \(\kappa \) parameters that effect non-singular terms only. It is further decomposed into dipoles [41]

$$\begin{aligned}&{{\varvec{I}}}_{ik}(\epsilon ,\mu ^2;\kappa ,\{\alpha _\text {dip}\}) \nonumber \\&\quad = {{\varvec{Q}}}_{ik}^2 \left[ \mathcal {V}_{ik}(\epsilon ,\mu ^2;\kappa ) +\Gamma _i(\epsilon ,\mu ^2)+\,\gamma _i\left( 1+\ln \frac{\mu ^2}{s_{ik}}\right) \right. \nonumber \\&\qquad \qquad \qquad \left. +\,K_i+A_{ik}^I(\{\alpha _\text {dip}\}) +\mathcal {O}(\epsilon ) \right] ,\end{aligned}$$
(2.8)

wherein i labels the emitter and k the spectator. The charge insertion operator, which is a trivial real number in the QED case, is defined in Eq. (2.5). The full crossing invariance of the QCD \({{\varvec{I}}}\) operator may be broken in the QED case in the presence of photon splittings as their recoil partner assignment is arbitrary and may involve information on initial or final state particles. Different possible choices are discussed in Sect. 3.2, some of which may break this crossing invariance.

The divergences of the \({{\varvec{I}}}\) operator are encoded in the functions \(\mathcal {V}_{ik}\) and \(\Gamma _i\). While the former contains all soft-(quasi-)collinear divergences the latter contains the pure (quasi-)collinear ones. They do not only differentiate whether the emitter is a photon or not, but also between different spins of the emitter. Their precise form as well as the the flavour constants \(\gamma _i\) and \(K_i\) are given in Appendix B. \(A_{ik}^I\) encodes the dependence on the phase space restriction of the individual dipoles \(\{\alpha _\text {dip}\}\). Finite terms originating in dipoles involving initial state legs, however, can be pushed into the \({{\varvec{K}}}\) operator. Thus, \(A_{ik}^I\) by convention only depends on \(\alpha _\text { FF}\). Its precise form is given in Appendix C.

The \({{\varvec{K}}}\) and \({{\varvec{P}}}\) operators. The \({{\varvec{K}}}\) and \({{\varvec{P}}}\) operators collect all pieces of the integrated dipole terms that are not collected in the \({{\varvec{I}}}\) operator and combines them with the collinear counterterms \(\mathrm {C}\) to give a finite result as \(\epsilon \rightarrow 0\). By construction they contain only remainders of splittings where either the emitter or the spectator is in the initial state. Thus, they are comprised of terms arising due to the change of the flavour or the partonic momentum fraction x of an initial state due to a splitting.

The \({{\varvec{K}}}\)-operator is given by [41]

(2.9)

It depends on the partonic x, and the flavour change from the Born process initial state flavour a to \(a'\) of the convolution Eq. (2.6). Therein, the \(\overline{K}\) collect universal terms present in all splitting involving an initial state as either emitter or spectator. Then, while \(\mathcal {K}\) contains solely remaining terms from final state splittings in the presence of initial state spectators, the \(K_{}^t\) are their counterparts for initial state splittings in the presence of a final state spectator, i and k running over all final state partons in each case. \(\tilde{K}\) contains solely related correlations between both initial states, arising from dipoles where both the emitter and the spectator are in the initial state. The \(A^K\) terms collect all finite terms arising when any of \(\alpha _\text { FI}\), \(\alpha _\text { IF}\) or \(\alpha _\text { II}\) is different from unity, thus restricting the phase space of the respective dipoles. Again, the \({{\varvec{Q}}}_{ik}^2\) are the charge correlators of Eq. (2.5). Finally, \(K_\text {FS}\) contains the factorisation scheme dependence. Currently, both only the \(\overline{\text {MS}}\) schemes is supported, setting these terms identically zero.

The \({{\varvec{P}}}\)-operator now collects the remaining initial state collinear singularity from all dipoles involving initial states either as emitters or as spectators and cancels them against the collinear counterterm. Through this counterterm a dependence on the factorisation scale enters. The \({{\varvec{P}}}\) operator is given by [40, 41]

$$\begin{aligned}&{{\varvec{P}}}_{aa'}(x,\mu _F^2)\nonumber \\&\quad = \frac{\alpha }{2\pi }\;P^{aa'}(x) \left[ \sum \limits _k{{\varvec{Q}}}_{a'k}^2\,\log \frac{\mu _\text {F}^2}{xs_{ak}}+{{\varvec{Q}}}_{a'b}^2\,\log \frac{\mu _\text {F}^2}{xs_{ab}} \right] . \end{aligned}$$
(2.10)

Only initial state splittings are present, either in the presence of a spectator in the final state, which is encoded in the sum of k, or with the opposite initial state b acting as the spectator. It otherwise only depends on the Alterelli–Parisi splitting function detailed in Appendix B.

3 Implementation

The implementation of the QED generalisation of the Catani–Seymour dipole subtraction scheme in Sherpa ’s matrix element generator Amegic proceeds along the lines of [49]. As in general real and virtual corrections of \(O(\alpha _s^n\alpha ^m)\) contain divergences of both QCD and QED origin, both cases are included in this section. In the following, the general structure of the implementation is reviewed.

3.1 Identification of dipoles

The starting point to construct the involved subtraction terms in the Catani–Seymour subtraction formalism is a given flavour configuration in the Born or the real emission phase space and the perturbative order \(\mathcal {O}(\alpha _s^n\alpha ^m)\) in accordance with the respective virtual or real correction to be computed. For all parts, on-the-fly variations of both the factorisation scale \(\mu _\text {F}\) and the renormalisation scale \(\mu _\text {R}\) are available through an extension of the algorithm detailed in [56].

Differential subtraction terms. A given real emission configuration \(\{ab\}\rightarrow \{1,..,m+1\}\) at order \(O(\alpha _s^n\alpha ^m)\) can in general exhibit both QCD and QED divergences simultaneously. The following therefore describes the identification of both types of dipoles. Thus, all triplets \(\{i,j,k\}\) that can be built from the external particles of the process are tested for the presence of an infrared divergence, QCD or QED, by checking for the existence of a dipole subtraction term. In these triplets i and k may be in the initial or final state while j may be in the final state only. Likewise, \(i\ne j\), \(i\ne k\), \(j\ne k\) and triplets that only differ in a permutation of i and j are considered identical. Then, the following steps are executed.

  1. 1.

    Based on the quantum numbers and flavours of the triplet it is decided whether a QCD, a QED or both splitting function can exist. A QCD splitting function can exist only if i, j and k are colour charged, while a QED splitting function can exist only if the charge-correlator \({{\varvec{Q}}}_{{\widetilde{\imath \jmath }}{\tilde{k}}}^2\) does not vanish. The dipole type is determined based on whether i and k are in the initial or final state. A given triplet \(\{i,j,k\}\) may exhibit both QCD and QED divergences, and thus may form both a QCD and a QED dipole.

  2. 2.

    The flavours \({\widetilde{\imath \jmath }}\) and \({\tilde{k}}\) are determined for each possible splitting function.

  3. 3.

    For each possible splitting function \(\{{\widetilde{\imath \jmath }},{\tilde{k}}\}\rightarrow \{i,j,k\}\) the underlying Born configuration and its order, \(O(\alpha _s^{n-1}\alpha ^m)\) in case of a QCD splitting function and \(O(\alpha _s^n\alpha ^{m-1})\) in case of a QED splitting function, are determined. If, including the insertion of the appropriate colour-, charge- and spin-correlations, such a process at this order exists, a dipole subtraction term is built.

If the above steps do not lead to a valid dipole subtraction term, no divergence can be present. The real emission, a conventional tree-level process, is grouped together with all its subtraction terms into one computational unit and their respective cross sections and observable values, \(O(\Phi _{m+1})\) and all \(O(\Phi _{m_i})\), are treated as correlated.

Integrated subtraction terms. Similar to the above discussed real emission corrections, the virtual correction configurations \(\{ab\}\rightarrow \{1,\ldots ,m\}\) at order \(O(\alpha _s^n\alpha ^m)\) in general exhibits poles due to both QCD and QED origins. To subtract them, both QCD and QED integrated subtraction need to be included. In fact, they naturally arise as counterparts to differential subtraction terms constructed for the corresponding real emission correction, as guaranteed by Bloch and Nordsieck [57] or Kinoshita–Lee–Nauenberg [58, 59] theorem. Consequently, QCD and QED \({{\varvec{I}}}, {{\varvec{K}}}\) and \({{\varvec{P}}}\) operators are constructed. While their QCD version are described in detail in [49, 50], their QED version of Eq. (2.6) are discussed below.

The \({{\varvec{I}}}\) operator, on the one hand side, has the same initial state flavours and momentum fractions as the virtual correction. The \({{\varvec{K}}}\) and \({{\varvec{P}}}\) operators on the other hand, resulting from the combination of the integrated subtraction terms and the collinear counterterms, involve a summation over possible initial state flavours and comprise the following general structure in their dependence on the additional x integration variable

$$\begin{aligned} \left[ g(x)\right] _++\delta (1-x)h(x)+k(x). \end{aligned}$$
(3.1)

Therein, both h(x) and k(x) are regular functions in x, while the plus distribution of g(x) is defined as

$$\begin{aligned} \int \limits _0^1\mathrm{d}x\;f(x)\left[ g(x)\right] _+&= \int \limits _0^1\mathrm{d}x\;\left[ f(x)-f(1)\right] g(x). \end{aligned}$$
(3.2)

Hence, the potentially computationally intensive matrix elements in \(\mathrm {B}\) have to be calculated twice for every phase space point in addition to the flavour summation. To remedy this, the original expression of Eq. (2.6) is reformulated. Dropping the dependence on the \(\{\alpha _\text {dip}\}\) parameters and explicitly stating the dependence of the underlying Born term on the initial state momentum fractions and parton densities, \(\mathrm {B}_{ab}=f_af_b\,\mathcal {B}_{ab}\), the \({{\varvec{K}}}\) and \({{\varvec{P}}}\) operators it can be recast to

$$\begin{aligned}&\sum _{a,b}\int \mathrm{d}\eta _a\mathrm{d}\eta _b \int \mathrm{d}\Phi _m^{(4)}\; \sum _{a'}\int \limits _0^1\mathrm{d}x_a\; \mathrm {B}_{a'b}(x_a\eta _a,\eta _b;\Phi _m^{(4)})\nonumber \\&\qquad \cdot \left[ {{\varvec{K}}}_{aa'}(x_a;\{\alpha _\text {dip}\}) +{{\varvec{P}}}_{aa'}(x_a;\mu _F^2) \phantom {\Phi _m^{(4)}} \right] \;O(\Phi _m^{(4)})\nonumber \\&\quad = \sum _{a,b}\int \mathrm{d}\eta _a\mathrm{d}\eta _b \int \mathrm{d}\Phi _m^{(4)}\; \sum _{a'}\int \limits _0^1\mathrm{d}x_a \Bigg \{ g^{aa'}(x_a) \nonumber \\&\qquad \times \left. \left[ \mathrm {B}_{a'b}(x_a\eta _a,\eta _b;\Phi _m^{(4)}) -\mathrm {B}_{a'b}(\eta _a,\eta _b;\Phi _m^{(4)}) \right] \phantom {\int } \right. \nonumber \\&\qquad \qquad \left. +\,k^{aa'}(x_a)\, \mathrm {B}_{a'b}(x_a\eta _a,\eta _b;\Phi _m^{(4)})\right. \nonumber \\&\qquad \qquad +h^{aa'}(1)\,\mathrm {B}_{a'b}(\eta _a,\eta _b;\Phi _m^{(4)})\phantom {\int } \Bigg \} \;O(\Phi _m^{(4)})\nonumber \\&\quad = \sum _{a,b}\int \mathrm{d}\eta _a\mathrm{d}\eta _b \int \mathrm{d}\Phi _m^{(4)}\; f_b(\eta _b)\, \mathcal {B}_{ab}(\Phi _m^{(4)})\nonumber \\&\qquad \times \sum _{a'} \left\{ \; \int \limits _{\eta _a}^1\mathrm{d}x_a \left[ \tfrac{1}{x_a}\,f_{a'}\!\!\left( \tfrac{\eta _a}{x_a}\right) \left( g^{aa'}(x_a)+k^{aa'}(x_a)\right) \right. \right. \nonumber \\&\left. \left. \qquad \qquad \qquad -f_{a'}(\eta _a)\,g^{aa'}(x_a) \right] \right. \nonumber \\&\qquad \qquad \qquad \left. \phantom {\frac{f_{a'}\left( \frac{\eta _a}{x_a}\right) }{x_af_a(\eta _a)}} +f_{a'}(\eta _a) \left( h^{aa'}-G^{aa'}(\eta _a) \right) \right\} \;O(\Phi _m^{(4)}), \end{aligned}$$
(3.3)

with \(f_a(\eta )\) being the parton density of flavour a and momentum fraction \(\eta \) in the proton, otherwise absorbed in the Born term \(\mathrm {B}\). All PDFs are evaluated at the same scale \(\mu _\text {F}\). \(G^{ab}(\eta )=\int _0^\eta \mathrm{d}x\;g^{ab}(x)\) are the analytically computed divergence free parts of the integral of the functions under the plus distribution. Its divergence at \(x=1\) is cancelled numerically on the second last line. Effectively, this reformulation results in a redefinition of the PDF for incoming parton a of \(\mathrm {B}_{ab}\). As the integrand of the remaining integral over \(x_a\) is a simple one-dimensional function without a pronounced structure, its numerical evaluation is very stable and can be accomplished by a single point for each summand per phase space point \(\mathrm{d}\Phi _m^{(4)}\). The \({{\varvec{K}}}\) and \({{\varvec{P}}}\) operators for the second incoming parton b are recast similarly.

The thus transformed form of the \({{\varvec{K}}}\) and \({{\varvec{P}}}\) operators require only a single evaluation of the potentially costly matrix elements in \(\mathrm {B}\) while retaining the number of computations of PDFs needed, speeding up the computation considerably for involved processes. This allows to generate and evaluate the underlying Born matrix element for both the \({{\varvec{I}}}\) operators and the \({{\varvec{K}}}\) and \({{\varvec{P}}}\) operators at the same time. In fact, due to these three operators being simple multiplicative scalars, the common underlying Born matrix element is identical to the standard Born matrix element, allowing for their simultaneous calculation at no extra cost. The operators themselves are then built from dipoles constructed from all doublets \(\{i,k\}\), \(i\ne k\), of external partons available in the partonic process for which the charge-correlator \({{\varvec{Q}}}_{ik}^2\) does not vanish.

3.2 External photons

External photons can play different roles in a calculation: they can either be resolved or unresolved. According to this distinction they should be treated differently at NLO EW [31, 60]. Initial state photons are always unresolved at a hadron collider. They thus should be treated in a short-distance scheme, allowing them to split into massless fermions, necessitating a proper subtraction of infrared divergences. Final state photons on the other hand can play both roles. If they are considered resolved, they should be treated in an on-shell scheme and no explicit photon splitting is allowed. Concerning the dipole subtraction discussed in this paper they are thus neutral particles and do not form part of a dipole, except as possible recoil partner of another unresolved photon. A final state unresolved photon, on the other hand, again must be treated in a short-distance scheme, necessitating their splittings to be subtracted.

As discussed in Sect. 2.1, the dipole picture is not necessary to capture the divergences of photons splitting in pairs of massless fermions, leptons and quarks, due to the absence of soft divergences that necessitate the correlation with the emissions off other partons of the event. Nonetheless, it offers a possibility to assign one or more recoil partners to absorb the transverse momentum of the splitting, thus fitting these purely collinear splittings into the dipole picture. The choice of spectator is essentially arbitrary, and all other partons of the event offer being viable spectators. Only the following condition has to hold

$$\begin{aligned} \sum _{{\tilde{k}}\ne {\widetilde{\imath \jmath }}}\kappa _{{\widetilde{\imath \jmath }}{\tilde{k}}} \,=\;-1 \end{aligned}$$
(3.4)

for every splitting photon \({\widetilde{\imath \jmath }}\), cf. 2.5. Therein, the \(\kappa _{{\widetilde{\imath \jmath }}{\tilde{k}}}\) are arbitrary and possibly dynamic weights assigned to every dipole with spectator \({\tilde{k}}\). In practise, for initial state as well as final state splittings five choices \(c_{\tilde{k}}^\gamma \) have been implemented:

  1. 0.

    only allow initial state partons as spectators,

  2. 1.

    only allow final state partons as spectators,

  3. 2.

    only allow QED charged particles as spectators,

  4. 3.

    only allow QED neutral particles as spectators,

  5. 4.

    allow all particles as spectators.

The \(\kappa _{{\widetilde{\imath \jmath }}{\tilde{k}}}\) are set to the phase space point independent value \(-n_\text {spec}^{-1}\), with \(n_\text {spec}\) the number of assigned spectators, thus trivially fulfilling Eq. (3.4).

3.3 Process mappings

In general, physical cross sections include multiple different partonic channels. However, many of these partonic channels share identical squared matrix elements, potentially differing by constant factors. They, thus, do not need to be recomputed for every flavour channel but can be reused. As a typical example, consider the production of a lepton pair in association with two jets. The process \(g\,d\rightarrow e^+e^-\,g\,d\) shares a common squared matrix element with \(g\,s\rightarrow e^+e^-\,g\,s\) and \(g\,b\rightarrow e^+e^-\,g\,b\) on Born level at \(\mathcal {O}(\alpha _s^2\alpha ^2)\). Hence, the squared matrix elements of the latter two partonic processes are mapped on the first, reusing its computed value. In this way, of the 95 partonic channels of this process, only 30 have to be computed. Further mappings of individual graphs and subgraphs are implemented but are not discussed in the following, see [47, 48].

In Sherpa ’s matrix element generators various forms of process mappings are implemented to reduce the computational complexity and memory footprint, both for the virtual and real emission corrections, cf. [47,48,49,50]. However, while for NLO QCD corrections to the leading order Born process it is true that if the Born process is mappable onto another existing process, then also both the virtual correction and the insertion-operator-augmented colour-correlated underlying Born process of the integrated subtraction term are mappable to the same process. This is no longer true when considering the NLO EW or NLO QCD corrections to subleading Born processes.

In the present implementation of a full NLO QCD and NLO EW subtraction in the matrix element generator Amegic the following process mapping strategy is followed for the real subtracted contributions:

  • The real emission process and its associated dipole subtraction terms are grouped in one computational unit. A given partonic channel of the real emission process can be mapped onto another already existing one if both processes consist of the same diagrams and all involved (internal and external) particles have the same masses and widths and the same underlying interaction (coupling factors may differ by a constant). Is this the case the whole computational unit can be mapped and the result of the mapped-to process can simply be reused.

  • Individual dipoles can be mapped if the emitter, emittee and spectator indices are identical, and the underlying Born process can be mapped according to the above rules. In this case, the result of the mapped-to process can simply be reused.

  • Underlying Born matrix elements can be mapped if the Born-level emitter \({\widetilde{\imath \jmath }}\) carries the same indices and the underlying Born process itself can be mapped. The spin correlation insertion operator, needed if parton \({\widetilde{\imath \jmath }}\) is either a gluon or a photon and described in [49], is encoded in the calculational routines and necessitates the above restriction. Can the underlying Born process be mapped, only the calculational routines can be shared, reducing the memory footprint, but due to the potentially differing underlying Born momenta its result has to be recomputed.

The strategy for the virtual subtracted contributions reads as follows:

  • The virtual correction process, interfaced from an external virtual correction provider, as well as its associated integrated dipole subtraction terms and the collinear counterterm, taken together and reformulated according to Sect. 3.1, are grouped into one computational unit. If the underlying Born processes of the integrated subtraction contribution (in all orders required) can be mapped according to the above rules and the virtual correction provider confirms that the virtual correction can be mapped onto the same process that Sherpa ’s tree-level matrix element generator maps the underlying Born processes onto, the whole computational unit is mapped. In this case, the result of the mapped-to process can simply be reused. The \({{\varvec{K}}}\) and \({{\varvec{P}}}\) operators, whose internal PDF factors depend on the initial state flavour, still have to be recomputed, but their matrix element coefficients are cached.

  • If the virtual correction provider cannot confirm the mapping performed for the underlying Born process, only the underlying Born process is mapped and virtual correction is recomputed. Again, the \({{\varvec{K}}}\) and \({{\varvec{P}}}\) have to be recomputed, but their matrix element coefficients are cached. Here, efficiency is lost if the virtual correction provider uses less efficient process mappings.

3.4 Fiducial phase space definition

Phase space restrictions are an essential part of the implementation of a framework for automated NLO calculcations. These cuts, however, need to be applied in an infrared safe way. At NLO, they must not discriminate between a massless parton before and after its collinear splitting or before and after a soft gluon or photon emission. Thus, if QCD singularities are present, massless QCD charged particles must be clustered into jets before any further cuts are applied. Similarly, in case of the presence of QED divergences, massless charged particles must either be dressed with the surrounding photons or be included in the jet algorithm. Subtleties arise in the presence of both QCD and QED singularities simultaneously. Here, usually, only a fully democratic jet finding can consistently treat all singularities, although specialised solutions exist for simplified situations. Massive QCD and QED charged particles may be treated as bare as their mass shields the collinear singularity, but can also be included into jet finding and dressing algorithms. An intermediate scheme which includes only the logarithms of the parton mass needed to regulate the collinear divergences [45], but are otherwise treated massless in the calculation, is not implemented.

To this end, the implementation in Sherpa is equipped with a range of algorithms to define infrared safe quantities on which further restrictions can be applied. Multiple such selectors can be nested.

  • DressedParticleSelector This selector takes a choice of dressing algorithm (cone or sequential recombination) and (flavour-dependent) dressing parameters (cone radius or radial parameter and exponent). All charged particles of the process are then dressed with all photons using the specified algorithm with the given (flavour-dependent) parameters. Their four momenta are added such that four momentum is conserved. The dressed charged particles may no longer be on-shell and the photons used to dress the charged particles are removed from the list of particles. The resulting list of particles and their momenta are then passed to all subselectors.

  • Jet_Selector This selector uses FastJet [61] to build jets from a given list of input particles. It takes a list of flavours that are considered as jet finding input particles, the jet finding algorithm and its parameters including phase space boundaries in \(p_\perp \), \(\eta \) or y, as well as a minimal and maximal number of jets to be found as arguments. Additionally, clustered jets can be tagged or anti-tagged based on their flavour content, including relative and absolute constituent momentum requirements (e.g. b tagging a jet if one of its constituents is a b-quark or anti-\(\gamma \)-tagging a jet if its photon constitents carry in excess of \(z_\text {thr}\) fraction of the total jet momentum). The clustered jets as well as all particles not used as jet finding input are passed on to all subselectors.

  • Isolation_Selector This selector uses the smooth cone isolation of [62] to isolate particles of a given flavour against particles of another flavour. It takes both the isolation flavour and rejection flavour list as well as the algorithm parameters as input. It further can be specified how many isolated particles of the given flavour should minimally and maximally be found in a given phase space volume (bounded by \(p_\perp \) and \(\eta \) or y ranges), e.g. exactly two isolated photons with \(p_\perp >30\,\text {GeV}\) and \(|\eta |<2.35\). The list of found isolated flavours and all other particles except for those that should be isolated, but are not, are passed to all subselectors.

Once an infrared safe definition of particles is found, the standard single- or multi-particle selectors such as PT (implementing transverse momentum requirements on a given flavour), PTmis (missing transverse momentum build from all neutrinos), or DR (angular distance between the two given particles) can be used. Further, Sherpa is equipped with a user hook system, providing the possibility for users to implement arbitrary routines for phase space cuts and dynamically load them at run time, without the need to modify their Sherpa installation.

Identified particles should in principle be defined using fragmentation functions, denoted \(D_i^j(z)\) for finding parton i in parton j at momentum fraction z. As, however, all \(D_i^i(z)\) have a \(\delta (1-z)\) as leading term in on-shell renormalisation schemes (and only differ by ratios of couplings in other schemes) simplified schemes exist that are applicable to many practical situations. Hence, no fragmentation function is implemented yet.

3.5 Flavour scheme conversion

All publicly available PDF sets containing QED effects in their evolution are fitted with five (Mrstqed [63], CT14qed [64], Luxqed [65, 66], HKR16 [67], Nnpdf3.0qed [68], Nnpdf3.1luxqed [69]) or six (Nnpdf2.3qed [70]) light flavours. Thus, for next-to-leading order calculations with four or less light flavours the following scheme-conversion terms need to be added for consistency [71]

$$\begin{aligned}&\langle O\rangle _\text {NLO QCD}^{({n_\text {lf}})}(\mu _\text {R}^2,\mu _\text {F}^2)\nonumber \\&\quad =\langle O\rangle _\text {NLO QCD}^{({n_\text {f}})}(\mu _\text {R}^2,\mu _\text {F}^2)+ \int \!\mathrm{d}\Phi _m \sum \limits _{i={n_\text {lf}}}^{n_\text {f}}\sum _{\{ab\}} \frac{\alpha _s}{3\pi }\, {T_R}\nonumber \\&\qquad \times \left[ p\,\log \frac{m_i^2}{\mu _\text {R}^2}\,\Theta \left( \mu _\text {R}^2-m_i^2\right) -\Delta _{ab}^{gg}\log \frac{m_i^2}{\mu _\text {F}^2}\, \right. \nonumber \\&\quad \qquad \qquad \left. \Theta \left( \mu _\text {F}^2-m_i^2\right) \right] \mathrm {B}_{ab}^{({n_\text {f}})}(\Phi _m;\mu _\text {R}^2,\mu _\text {F}^2)\;O(\Phi _m) \end{aligned}$$
(3.5)

and

$$\begin{aligned}&\langle O\rangle _\text {NLO EW}^{({n_\text {lf}})}(\mu _\text {R}^2,\mu _\text {F}^2)\nonumber \\&\quad = \langle O\rangle _\text {NLO EW}^{({n_\text {f}})}(\mu _\text {R}^2,\mu _\text {F}^2)\nonumber \\&\qquad - \int \mathrm{d}\Phi _m \sum \limits _{i={n_\text {lf}}}^{n_\text {f}}\sum _{\{ab\}} \frac{\alpha }{3\pi } {N_C}\,Q_i^2\; \Delta _{ab}^{\gamma \gamma }\log \frac{m_i^2}{\mu _\text {F}^2}\nonumber \\&\qquad \quad \times \Theta \left( \mu _\text {F}^2-m_i^2\right) \; \mathrm {B}_{ab}^{({n_\text {f}})}(\Phi _m;\mu _\text {R}^2,\mu _\text {F}^2)\;O(\Phi _m). \end{aligned}$$
(3.6)

Therein, the \(\langle O\rangle _\text {NLO QCD/EW}^{(n)}\) is the expectation value of an arbitrary observable O computed at NLO QCD or NLO EW, respectively, with n-flavour scheme parton densities and the corresponding strong coupling summed over all initial state contributions. \(\mathrm {B}_{ab}^{(n)}\) is the Born term, as defined in Sect. 2, in the ab channel. The sums run over all \(({n_\text {f}}-{n_\text {lf}})\) flavours of mass \(m_i\) that are part of the \(n_\text {f}\)-flavour PDF parametrisation but not the \(n_\text {lf}\)-flavour scheme of the calculation and all combinations of partonic channels ab occurring in the \(n_\text {lf}\)-flavour scheme, respectively. p is the power of the strong coupling in the Born process and \(\Delta _{ab}^{gg}=\delta _{ga}+\delta _{gb}\), i.e. it takes the values 2 in the gg channel, 1 in all qg and \(\bar{q}g\) channels, and zero otherwise. \(\Delta _{ab}^{\gamma \gamma }\) is defined analogously. Each logarithm of course only contributes if the scale is larger than the respective mass. As the electroweak coupling is not taken running in the common renormalisation schemes it is independent of the number of massless flavours in the calculation. For \(\overline{\text {MS}}\)-like renormalisation schemes a similar term proportional to its power in the Born process is to be added.

4 Checks of the implementation

The implementation of the formalism described in the previous sections in Sherpa needs to be validated. To this end, both its independence of its internal free parameters, \(\{\alpha _\text {dip}\}=\{\alpha _\text { FF},\alpha _\text { FI},\alpha _\text { IF},\alpha _\text { II}\}\), \(\kappa \) and the choice of spectator in photon splittings, and its agreement with independent implementations for fixed values of these parameters need to be tested. While the latter were carried out in [19, 21, 25, 31, 32] against the private implementations in Munich [74], in [51] against MadGraph5 [75], and in [51, 53] against Recola [76] and found full agreement, the former represent a powerful check of internal consistency. Further, as the \(\{\alpha _\text {dip}\}\) parameters regulate the phase space coverage of the differential subtraction terms, they can be used to lower the average number of contributing dipoles for a given real emission contribution and, thus, reduce the computational costs of the real-subtracted contribution.

There are now two independent aspects of the calculation that need to be checked:

  1. (a)

    The \({{\varvec{I}}}\) operator of Sect. 2.2 containing the explicit Laurent expansion in \(\epsilon \) as \(\epsilon \rightarrow 0\) needs to reproduce the correct \(\epsilon ^{-2}\) and \(\epsilon ^{-1}\) coefficients in order to cancel all corresponding poles of the virtual matrix elements, leading to a finite integrand in Eq. (2.2) in \(d=4\). These checks were performed for all possible dipoles in [19, 21, 25, 31, 32, 34, 37, 51,52,53] and are not repeated here.

  2. (b)

    The expectation value of any infrared observable is independent of the choice of the technical \(\{\alpha _\text {dip}\}\) and \(\kappa \) parameters as well as the choice \(c_{\tilde{k}}^\gamma \) of spectator for photon splittings. It thus needs to be verified that the sum of the contributions of the \(\epsilon ^0\) coefficient of the integrated subtraction terms and the differential subtraction terms is independent of these parameters and choices. In order to arrive at a finite result in \(d=4\), cf. Eq. (2.2), the real emission correction and the collinear counterterms are added. The corresponding quantity is defined as

    $$\begin{aligned} \langle O\rangle _\text {IRD}&= \int \mathrm{d}\Phi _m^{(4)}\; \left[ \mathrm {I}_\mathrm {D}(\Phi _m^{(4)};\{\alpha _\text {dip}\},\kappa ,c_{\tilde{k}}^\gamma )\right. \nonumber \\&\qquad \left. +\,\mathrm {C}(\Phi _m^{(4)}) \right] _{\epsilon ^0\,\text {coeff.}} O(\Phi _m^{(4)})\nonumber \\&\quad +\int \mathrm{d}\Phi _{m+1}^{(4)} \left[ \mathrm {R}(\Phi _{m+1}^{(4)})\;O(\Phi _{m+1}^{(4)})\right. \nonumber \\&\qquad \left. -\,\mathrm {D}(\Phi _m^{(4)}\cdot \Phi _1^{(4)};\{\alpha _\text {dip}\},\kappa ,c_{\tilde{k}}^\gamma )\;O(\Phi _m^{(4)}) \right] , \end{aligned}$$
    (4.1)

    and will be evaluated for processes containing all available dipole configurations in the following.

In the following, the inclusive or fiducial cross section contribution \(\sigma _\text {IRD}\) is evaluated for a range of different processes, testing all possible dipole configurations. Throughout the input parameters of Table 1 are used in the \(G_\mu \) scheme, although several other EW input parameter schemes are available in general. Similarly, all unstable particles are treated in the complex-mass scheme [77]. Further, the CT14nlo [78] and CT14qed [64]Footnote 1 PDF sets with five active and massless flavours and their corresponding \(\alpha _s\) parametrisations with \(\alpha _s(m_Z)=0.118\) are used. While the use of the CT14nlo PDF set for NLO EW calculations is, strictly speaking, inconsistent due its missing QED evolution of the initial state quarks, it offers the quantification of the importance of photon initiated processes in these technical comparisons. To the same end, the CT14qed PDF set is not employed using its the best fit value for the intrinsic inelastic photon momentum fraction at the reference scale of \(Q=1.295\,\text {GeV}\) \(p_0^\gamma =0.05\%\), but rather evaluate it for the extremes of its \(1\sigma \) uncertainty, \(p_0^\gamma =0\) and \(p_0^\gamma =0.14\%\), where applicable.

Table 1 Numerical values of all input parameters. The gauge boson masses are taken from [72], while their widths are obtained from state-of the art calculations. The Higgs mass and width are taken from [73]. The top quark mass is taken from [72] while its width has been calculated at NLO QCD. In calculations where a massive particle is present as an external state, its width is set to zero

In processes where jets need to be constructed to define a fiducial phase space volume, anti-\(k_t\) jets with \(R=0.4\) and \(p_\perp >30\,\text {GeV}\) are used [80] and both partons and photons are considered as constituents. Similarly, if leptons need to be defined for the same purpose, they are dressed with all photons in a cone of \(\Delta R=0.1\). The number of phase space points in the computation of \(\sigma _\text {IRD}(\{\alpha _\text {dip}\},\kappa ,c_{\tilde{k}}^\gamma )\) is kept constant for each process, such that the indicated statistical uncertainty can be interpreted as a measure of the change of convergence of the subtraction with respect to the variation of the technical parameter choices.

Fig. 2
figure 2

\(\{\alpha _\text {dip}\}\)-dependence of the sum of integrated subtraction term and differentially subtracted real emission for \(\nu _e\bar{\nu }_e\rightarrow jj\), \(\nu _e p\rightarrow \nu _e j\) and \(pp\rightarrow \nu _e\bar{\nu }_e\)

Massless dipoles. Contrary to the QCD case, in the Standard Model almost all particles carry QED charges and therefore participate in the construction of dipoles. One notable exception are neutrinos. Therefore, in order to investigate the behaviour of the massless II, IF, FI and FF dipoles, and, thus, the independence of \(\alpha _\text { II}, \alpha _\text { IF}, \alpha _\text { FI}\) and \(\alpha _\text { FF}\) separately in this technical validation \(\sigma _\text {IRD}\) is considered for all three different rotations of the interaction of a quark-anti-quark pair with a neutrino-anti-neutrino pair. Hence, besides the \(\sigma _\text {IRD}\) contribution to the \(\mathcal {O}(\alpha )\) correction to \(pp\rightarrow \nu _e\bar{\nu }_e\) at the LHC at an invariant mass of 13 TeV, \(\sigma _\text {IRD}\) is computed for both the production of at least two jets at a hypothetical \(\nu _e-\bar{\nu }_e\) collider at a centre-of-mass energy of 1 TeV and inclusive single jet production in equally hypothetical \(\nu _ep\) deep inelastic scattering (DIS) with the same centre-of-mass energy are calculated.

Figure 2 now details \(\sigma _\text {IRD}\) for all three setups. \(\nu _e\bar{\nu }_e\rightarrow jj\) production, detailed in the left hand side plot, comprises only FF dipoles and, thus, only depends on \(\alpha _\text { FF}\). Varying its value over four orders of magnitude leads leaves the value of \(\sigma _\text {IRD}\) unchanged within the statistical uncertainties. The black line is placed at the central value of the computation with the smallest statistical uncertainty to guide the eye. As is evident, lowering the \(\alpha \) parameter too much, i.e. restricting the subtraction to act only on configurations very close to the divergence, results in large cancellations between the real-subtracted and the integrated dipole contributions of Eq. (4.1), degrading the statistical prowess of the calculation. Similarly, \(pp\rightarrow \nu _e\bar{nu}_e\) production, detailed on the right hand side, comprises only II dipoles and, thus, depends on \(\alpha _\text { II}\) only. Showing the results for all three choices of photon content, contributing directly through the respective \(\gamma q/\gamma \bar{q}\) channels as well as indirectly through the impact on the quark PDFs and, through momentum conservation, on the gluon PDF, a similar picture as for \(\nu _e\bar{\nu }_e\rightarrow jj\) emerges. The three coloured lines now indicate the central value of the calculation with the smallest statistical uncertainty for each PDF choice. In each case, \(\sigma _\text {IRD}\) is found to be stable under the variation of \(\alpha _\text { II}\). Finally, the centre plot shows the correction contribution for the hypothetical DIS process \(\nu _ep\rightarrow \nu _ej\) requiring at least one jet in the lab frame. As FI and IF dipoles always occur in pairs the \(\alpha _\text { FI}\) and \(\alpha _\text { IF}\) dependence is evaluated together here. The resulting \(\sigma _\text {IRD}(\alpha _\text { IF}=\alpha _\text { FI})\) are also found to be stable when varying both parameters simultaneously over four orders of magnitude.

Fig. 3
figure 3

Left and centre: \(\{\alpha _\text {dip}\}\)-dependence of the sum of integrated subtraction term and differentially subtracted real emission for \(\nu _e\bar{\nu }_e\rightarrow e^+e^-\) and \(pp\rightarrow e^+e^-\). Right: dependence of the sum of the integrated subtraction term and differentially subtracted real emission for \(pp\rightarrow e^+e^-\) in the \(\gamma q\)/\(\gamma \bar{q}\) channel on the choice of recoil partner for the initial state photon splittings \(c_{\tilde{k}}^\gamma \). The invariant mass of the electron pair is raised to increase the contribution of the photon induced channels. The \(q\bar{q}\) and \(\gamma \gamma \) channels comprise no dipoles with splitting photons

Moving away from the simplest configurations, Fig. 3 displays the results for electron-positron pair production. The left hand side plot again displays their production at the hypothetical \(\nu _e\)-\(\bar{\nu }_e\) collider used before, finding very similar results and their independence of \(\alpha _\text { FF}\). The centre plot now, however, displays the production of an electron-positron pair at the LHC. At leading order, this process proceeds through \(q\bar{q}\rightarrow e^-e^+\) and \(\gamma \gamma \rightarrow e^-e^+\) at \(\mathcal {O}(\alpha ^2)\). Consequently, the \(q\bar{q}\) channel exhibits six dipoles of all four types. In the \(\gamma \gamma \) channel, the number and types of dipoles present depends on the choice of possible photon splitting spectators \(c_{\tilde{k}}^\gamma \). To regulate all LO singularities the fiducial phase space is defined by requiring the dressed electrons to have a transverse momentum of at least \(20\,\text {GeV}\) and the pair to have an invariant mass of at least \(60\,\text {GeV}\). As \(\sigma _\text {IRD}\) now potentially depends on the full set \(\{\alpha _\text {dip}\}\) no continuous variation over four orders of magnitude is performed. Instead, each of the four parameters is varied independently to 0.001 keeping all others at their default value of 1. These four variations are completed by setting \(\alpha _\text { FF}=\alpha _\text { FI}=\alpha _\text { IF}=\alpha _\text { II}=1\) and 0.001. The resulting correction contributions are found to be independent of \(\{\alpha _\text {dip}\}\).

Finally, the right hand side plot of Fig. 3 displays the dependence of \(\sigma _\text {IRD}\) on the choice of spectators in photon splittings. Only the \(\gamma q/\gamma \bar{q}\) channel is considered as both the \(\gamma \gamma \) and \(q\bar{q}\) channels are independent of this choice in this process. The \(\gamma q/\gamma \bar{q}\) channel, however, still receives contributions from photon radiation off quarks in addition to the sought after photon splittings into quark-antiquark pairs. Hence, the minimum invariant mass is raised to \(2\,\text {TeV}\) to increase the relative importance of the photon PDF, enhancing the photon splitting contribution. The resulting correction contribution at \(\mathcal {O}(\alpha ^3)\) is found to be independent of all five choices of photon splitting spectators available. Please note that for this process scheme 0 and 3 as well as scheme 1 and 2 lead to the same set of allowed spectators, respectively, and therefore to identical results.

Fig. 4
figure 4

\(\{\alpha _\text {dip}\}\)-dependence of the sum of integrated subtraction term and differentially subtracted real emission for \(\nu _e\bar{\nu }_e\rightarrow t\bar{t}\) and \(\nu _e p\rightarrow \nu _e t\). For the latter the Standard Model is extended by a \(u\bar{t}Z\) interaction with the structure and coupling as the existing \(u\bar{u}Z\) interaction

Massive dipoles. Massive particles are so far only allowed in the final state.Footnote 2 Dipoles involving massive partons, either as emitter or spectator, comprise only three types: FF, FI and IF. Emittees are always considered massless, otherwise no singularity would be present. In Fig. 4 again top-anti-top pair production at a hypothetical \(\nu _e\)-\(\bar{\nu }_e\) collider and single top production at a hypothetical \(\nu _e\)-p collider is considered in order to study the individual dipoles separately. In the left plot, the \(\alpha _\text { FF}\) (in)dependence of the \(\mathcal {O}(\alpha ^3)\) correction contribution \(\sigma _\text {IRD}\), containing only massive FF dipoles, is shown. It exhibits the familiar picture of decreasing statistical prowess of the calculation with too small \(\alpha _\text { FF}\), but otherwise consistent results. The right plot details the \(\alpha _\text { IF}\) and \(\alpha _\text { FI}\) dependent massive dipoles in the hypothetical DIS scenario. As before, \(\alpha _\text { IF}\) and \(\alpha _\text { FI}\) are varied simultaneously for this purpose and the independence of the corrections contribution on both parameters is observed.

Fig. 5
figure 5

Left: \(\kappa \)-dependence of the sum of integrated subtraction term and differentially subtracted real emission for \(\nu _e\bar{\nu }_e\rightarrow t\bar{t}j\). Right: dependence of the sum of the integrated subtraction term and differentially subtracted real emission for \(\nu _e\bar{\nu }_e\rightarrow t\bar{t}j\) at \(\mathcal {O}(\alpha ^4)\) on the choice of recoil partner for the final state photon splittings \(c_{\tilde{k}}^\gamma \)

Fig. 6
figure 6

\(\{\alpha _\text {dip}\}\)-dependence of the sum of integrated subtraction term and differentially subtracted real emission for \(\nu _e\bar{\nu }_e\rightarrow t\bar{t}\) and \(pp\rightarrow t\bar{t}\)

The left plot of Fig. 5 now investigates the dependence of \(\sigma _\text {IRD}\) on the \(\kappa \) parameter. In only arises in FF dipoles of gluons splitting into gluons or massless quarks or photons splitting into massless fermions in the presence of a massive spectator. Consequently, to restrict the number of additional contributions, top-anti-top pair production in association with one jet at the hypothetical \(\nu _e\)\(\bar{\nu }_e\) collider is considered. At LO, this process contributes is defined both at \(\mathcal {O}(\alpha _s\alpha ^2)\) and \(\mathcal {O}(\alpha ^3)\) where the final state photon forms the jet. At NLO, there are contributions at \(\mathcal {O}(\alpha _s^2\alpha ^2), \mathcal {O}(\alpha _s\alpha ^3)\) and \(\mathcal {O}(\alpha ^4)\). The \(\mathcal {O}(\alpha _s\alpha ^3)\) contribution, however, contains neither gluon nor photon splittings. Due to the relative size of \(g\rightarrow gg\) and \(g\rightarrow q\bar{q}\) splittings in relation to gluon radiation off the top quarks the \(\kappa \) dependence of the \(\mathcal {O}(\alpha _s^2\alpha ^2)\) contribution is much more pronounced than at \(\mathcal {O}(\alpha ^4)\), where photon radiation off the top quarks overwhelms the photon splitting contribution. Nonetheless, at both orders an independence of the \(\sigma _\text {IRD}\) of \(\kappa \) is found. In addition, the right plot investigates the influence on the choice of spectators for the final state photon splitting ocurring at \(\mathcal {O}(\alpha ^4)\). No dependence on this choice is observed. Please note that for this process scheme 0 and 3 as well as scheme 1 and 2 lead to the same set of allowed spectators, respectively, and therefore to identical results.

Figure 6 now considers top-anti-top pair production at the LHC. This process occurs at LO at \(\mathcal {O}(\alpha _s^2), \mathcal {O}(\alpha _s\alpha )\) and \(\mathcal {O}(\alpha ^2)\). Thus, at NLO there exist four contributions, at \(\mathcal {O}(\alpha _s^3)\), \(\mathcal {O}(\alpha _s^2\alpha ), \mathcal {O}(\alpha _s\alpha ^2)\) and \(\mathcal {O}(\alpha ^3)\). While the \(\mathcal {O}(\alpha _s^3)\) and \(\mathcal {O}(\alpha ^3)\) terms can be clearly identified as NLO QCD and NLO EW corrections to the LO \(\mathcal {O}(\alpha _s^2)\) and \(\mathcal {O}(\alpha ^2)\) expressions, respectively, the \(\mathcal {O}(\alpha _s^2\alpha )\) and \(\mathcal {O}(\alpha _s\alpha ^2)\) terms do not possess such a unique characterisation: they act as both NLO QCD corrections and NLO EW corrections to different LO processes. Consequently, their divergence structure contains singularities of both QCD and QED origin. Hence, both QCD and QED dipoles with underlying Born processes of different orders are needed for a full subtraction of all divergences. As explained in Sect. 3.1, this holds true both for the differential and integrated subtraction terms. It therefore serves as an additional check to verify the independence of the result of the \(\{\alpha _\text {dip}\}\) for each \(\mathcal {O}(\alpha _s^{3-m}\alpha ^m)\), \(m=0..3\), individually. And indeed, the correction contribution \(\sigma _\text {IRD}\) is found independent of \(\{\alpha _\text {dip}\}\) for each such order.

Fig. 7
figure 7

\(\{\alpha _\text {dip}\}\)-dependence of the sum of integrated subtraction term and differentially subtracted real emission for \(\nu _e\bar{\nu }_e\rightarrow W^+W^-\) and \(pp\rightarrow W^+W^-\). Both choices of subtraction terms for external massive charged vector bosons, using the ones of an external massive scalar (filled symbols) and massive fermions (empty symbols), are compared

External \(\varvec{W}\) bosons. Lastly, it may become necessary to also consider external W bosons (or other massive charged particle with spin \(>\tfrac{1}{2}\) in BSM theories) as stable final state particles, e.g. to reduce the computational complexity for high final state multiplicity processes where off-shell effects and effects in the decays can be ignored or recovered through other means [83]. In this case the literature does not provide expressions for the respective massive dipole functions. As their mass, however, can be assumed to be large enough to suppress collinear radiation well enough, this only leaves the spin-independent soft photon emission limit.Footnote 3 Here, both the expressions for the radiation of a photon off a massive scalar or a massive fermion can be used.

Figure 7 details the production of a \(W^+W^-\) pair in the hypothetical \(\nu _e-\bar{\nu }_e\) collider, separating the FF dipoles and their \(\alpha _\text { FF}\) dependence, on the left hand side. As before, \(\sigma _\text {IRD}\) is found to be independent within the statistical accuracy and also independent of the whether the massive scalar or massive fermion subtraction terms are used. The right hand side focusses on their production at the LHC. Again, all dipoles contribute at \(\mathcal {O}(\alpha ^3)\), leading again to the afore described six-point variation. Also in this case, the result is independent of \(\{\alpha _\text {dip}\}\) and the choice of scalar or fermionic subtraction term. The FI and IF dipoles cannot be investigated separately, as in the \(\nu _ep\rightarrow \nu _et\) case, due to charge conservation.

5 Conclusions

This paper detailed the construction and implementation of the adaptation of the Catani–Seymour subtraction formalism for NLO EW calculations. Besides the translation of the QCD dipole functions to the QED case, several other issues have been addressed. They include the special role photon splittings play in the formalism, embedding extermal massive emitters of spin \(>\tfrac{1}{2}\) into the formalism and the interplay of QCD and QED subtractions for processes exhibiting both kinds of divergences. The resulting general subtraction for NLO EW calculations has been implemented in the Sherpa Monte-Carlo event generator framework. Interfaces to OpenLoops, GoSam and Recola to access the needed virtual corrections exist and are fully functional.

In addition to the checks against independent implementations on the level of partial and total cross sections performed in previous publications, numerous internal cross checks for independence of technical parameter choices, \(\{\alpha _\text {dip}\}=\{\alpha _\text { FF},\alpha _\text { FI},\alpha _\text { IF},\alpha _\text { II}\}\), \(\kappa \) and the choice of spectator in photon splittings \(c_{\tilde{k}}^\gamma \), have been presented here. This implementation will become publically available in the near future with the next major Sherpa release and an extension to the Comix matrix element generator [84] is foreseen.