1 Introduction

The search of new physics is one of the main priorities of the LHC. The recent observation of an anomaly in the di-photon spectra [1, 2] gives hope that we might have a first evidence of Beyond Standard Model (BSM) physics very soon. In that case, we would only be at the beginning of a long program of investigations of what the underlying physics is. In any case, searches of new particles or modifications of the interactions among the SM particles will continue as well as progress associated to our ability to provide precise predictions to be compared with data.

In the recent years, efforts have focussed on providing accurate theoretical predictions for a large number of BSM models at Leading Order (LO), in the form of event generators. First, various programs such as FeynRules [3], LanHep [4] or Sarah [5] have automated the extraction of the Feynman rules from a given Lagrangian. Secondly several matrix element based generators like MadGraph5_aMC@NLO [6] (referred to as MG5_aMC later on), Sherpa [7] or Whizard [8] have extended the class of BSM model they support with extensions in various directions: high spins, high color representations and any kind of Lorentz structure [9,10,11]. More recently, automated Next-to-Leading Order (NLO) prediction (in QCD) for BSM models are available thanks to the NLOCT [12] package of FeynRules which adds in the model the additional elements (R2 and UV counter-terms) required by loop computations.

It is now possible to generate Monte Carlo sample for a large class of BSM theories at LO and for an increasing number at NLO accuracy. Even though technically possible, producing samples for many models and benchmark points down to full detector level at the high luminosity expected at the LHC would require an unmanageable number of computing and storage resources. However, the stages of a simulation (parton-level generation, parton-shower and hadronisation, detector simulation, and reconstruction) are independent and factorise. Therefore changes in local probabilities happening at very short distance, i.e. from BSM physics, decouple from the rest of the simulation stages. This is particularly interesting since the slowest part of the simulation is the full simulation of the detector.

A logical possibility therefore arises: one can generate large samples under a SM or basic BSM hypothesis and then continuously and locally deform the probability functions associated to the distributions of parton-level events in the phase space by changing the “weight” of each event in a sample to account for an alternative theory or benchmark point. Under a not-too-restrictive set of hypotheses which are easy to list, such an event-by-event re-weighting can be shown to be exactly equivalent (at least in the infinite statistic limit) to a direct generation in the BSM. Note that such an event-by-event re-weighting is conceptually different from the very common yet very crude method where events are re-weighted using a pivotal one-dimensional distribution. Event-by-event re-weighting is a common practice in MC simulations, yet currently it has been only publicly available at LO [13, 14] or available at NLO for very specific cases (e.g. [15]) or in methods where NLO accuracy is far from ensured [16, 17]. It is the aim of this work to show that a consistent (and practical) re-weighting of events can also be done at NLO accuracy.

The plan of this paper is as follows. Before introducing the NLO re-weighting method, we will focus on the LO case in order to explain the intrinsic limitations of such types of methods (Sect. 2). In Sect. 3, we present three types of NLO re-weighting, two of them correspond to methods already introduced in the literature [14, 18]. The third one is the NLO accurate re-weighting method introduced here for the first time. In Sect. 4, we present some validation plots performed with MG5_aMC. We then present our conclusions in Sect. 5.

2 Re-weighting at the leading order

As stated in the introduction, the re-weighting method consists in attaching a new weight to every parton-level event as corresponding to a different scenario. The new weights allow to predict accurately (up to statistical precision) all the LO differential distributions at the parton level, leading also to the possibility of performing a single shower and detector simulation for all the models under consideration. At LO accuracy the new weight (\(W_{new}\)) can be easily obtained from the original one (\(W_{orig}\)) by simply multiplying it by the ratio of the matrix-elements estimated on that event for both models (noted respectively \(|M_{orig}|^2\) and \(|M_{new}|^2\)) [13, 14]:

$$\begin{aligned} W_{new} = \frac{|M_{new}|^2}{|M_{orig}|^2}W_{orig}. \end{aligned}$$
(1)

In practice, in a weighted Monte Carlo generation, the weights are simply given byFootnote 1

$$\begin{aligned} W_{orig} = f_1(x_1,\mu _F) f_2(x_2,\mu _F)|M_{orig}|^2 \Omega _{PS}\,, \end{aligned}$$
(2)

where \(f_i(x_i,\mu _F)\) is the parton-distribution function estimated on the Bjorken fraction \(x_i\) at the factorization scale \(\mu _F\). \(\Omega _{PS}\) is the phase-space measure of the phase-space volume associated to the events.Footnote 2 From this equation it is clear that Eq. 1 is the correct procedure since the weight is exactly multiplicative. This property is preserved by the unweighting procedure making Eq. 1 to hold for both weighted and un-weighted samples (an actual proof is presented in Appendix).

A few remarks are in order regarding the range of validity of this method. First, even if the method returns the correct weight, it requires that the event sampling related to \(W_{orig}\) covers appropriately the phase-space for the new theory. In particular, \(W_{orig}\) must be non-zero in all regions where \(W_{new}\) is non-vanishing. Though obvious, this requirement is in fact the most important and critical one. In other words, the phase-space where the new theoretical hypothesis contributes should be a subset of the original one. For example, re-weighing can not be used for scanning over different mass values of the final state particlesFootnote 3, yet it is typically well-suited for probing different types of spin and/or coupling structures. More in detail, when the new theory has large contribution in a region of the phase-space where the original sample has only few events – since the original is sub-dominant in that part of the phase-space –, the statistical uncertainty of the re-weighted sample becomes very large and the resulting predictions unreliable. To appreciate quantitatively such an effect, we can use a naive estimator assuming a gaussian behavior. In that case one can write the estimated uncertainty as

$$\begin{aligned} \Delta \mathcal {O}_{new} = \bar{w}\Delta \mathcal {O}_{orig} + Std(w)\mathcal {O}_{orig}, \end{aligned}$$
(3)

where \(\bar{w}\) and Std(w) are respectively the mean and the standard deviation of the ratio of the weights and , are an observable and the associated statistical uncertainty. As a consequence, the relative uncertainty can be enhanced if the weights have a large variance. In Appendix, we introduce, as a proof of principle, a second method on how to estimate the statistical uncertainty from the distribution of the weights.

Second, the parton-level configuration feeder to parton-shower programs not only depends of the four-momenta but also of additional information, which is commonly encoded in the LesHouches Event File (LHEF) [19, 20]. Consequently, re-weighting by an hypothesis that does not preserve such additional information is not accurate. In general, such informations are related to:

  • Helicity  The helicity state of the external states of a parton-level event is optional in the LHEF convention, yet some programs (e.g. [21]) use this information to decay the heavy state with an approximated spin-correlation matrix. In this case it is easy to modify Eq. 1 to correctly take into account the helicity information by using the following re-weighting:

    $$\begin{aligned} W_{new} = \frac{|M^{h}_{new}|^2}{|M^{h}_{orig}|^2}W_{orig}, \end{aligned}$$
    (4)

    where \(|M^{h}_{new}|^2\) and \(|M^{h}_{orig}|^2\) are the matrix elements associated to the event for a given helicity h – the one written in the LHEF – and for the corresponding theoretical hypothesis. This re-weighting is allowed since the total cross-section is equal to the sum of the individual polarized cross-sections.

  • Color-flow  A second piece of information presented in the LHEF is the color assignment in the large \(N_c\) limit. This information is used as the starting point for the dipole emission of the parton shower and therefore determines the result of the QCD evolution and hadronisation. Such information is untouched by the re-weigthing limiting the validity of the method. For example, it is not possible to re-weight events with a Higgs boson, with a process where the Higgs boson is replaced by a colored particle. One could think that, as for the helicity case, one could amend the re-weighting formula to be able to handle modifications in the relative importance between various flows. While possible in principle, in practice such re-weighting would require to store additional information (the relative probabilities of all color flows in the old model) in the LHEF, something that does not seem practical.

  • Internal resonances  In presence of on-shell propagators, the associated internal particle is written in the LHEF. This is used by the parton-shower program to guarantee that the associated invariant mass is preserved during the re-shuffling procedure intrinsic to the showering process. Consequently, modifying the mass/width of internal propagator should be done with caution since it can impact the parton-shower behaviour. This information can not be corrected via a re-weighting formula, as it links in a non-trivial way short-distance with long-distance physics.

Selected results obtained with this re-weighting are presented in Sect. 4.

3 Next to leading order re-weighting

In this section, we will present three re-weighting methods for NLO samples. First we will present a LO type of re-weighting that we dubbed “Naive LO-like” re-weighting introduced in VBFNLO (i.e. REPOLO [17]) and MadSpin [22, 23]. As it will become clear later, this method is not NLO accurate and should be used only if the difference between the two theories factorizes from the QCD production. The second method that we propose is original and consists in a fully accurate and general NLO re-weighting. Finally, we present the “loop-improved” re-weighting method [18] to perform approximate NLO computation for loop-induced processes when the associated two-loop computations are not available.

3.1 Naive LO-like re-weighting

Following the MC@NLO method [24, 25], the cross-section can be decomposed in two parts, each of which can be used to generate events associated to a given final state multiplicity:

$$\begin{aligned} d\sigma ^{(\mathbb {H})}= & {} d\sigma ^R - d\sigma ^{MC},\nonumber \\ d\sigma ^{(\mathbb {S})}= & {} d\sigma ^{MC} + \sum _{\alpha =S,C,SC} d\sigma ^\alpha , \end{aligned}$$
(5)

where RSCSCMC correspond respectively to the contributions of the fully-resolved configuration (the real), of its soft (including the Born matrix-element), collinear, soft-collinear limits (the counter-events) and the Monte Carlo (MC) counter-term. The \((\mathbb {S})\) (for standard) part corresponds to events generated with the Born configuration (N particles in the final state), while the \((\mathbb {H})\) (for hard) part corresponds to events generated with the real configuration (N\(+\)1 particles in the final state). The MC counter-term (shower dependent) assures the coherent treatment with the parton-shower (no double counting) while preserving the NLO accuracy of the computation.

The Naive LO-like re-weighting computes the weights based on the multiplicity of the events before parton shower. i.e.,

$$\begin{aligned} W^{(\mathbb {S})}_{new}= & {} \frac{\mathcal {B}^{new}}{\mathcal {B}^{orig}} W^{\mathbb {S}}_{orig},\end{aligned}$$
(6)
$$\begin{aligned} W^{(\mathbb {H})}_{new}= & {} \frac{\mathcal {R}^{new}}{\mathcal {R}^{orig}} W^{\mathbb {H}}_{orig}. \end{aligned}$$
(7)

, are respectively the weights for Born/real topology events for the hyppothesis (where is either the orig or new label). is the Born matrix element squared ( ) while is the real matrix element squared ().

As this method does not consider the dependence of the virtual contributions, it fails to be NLO accurate. To ensure NLO accuracy, it requires that the effect of the new theory factorises out, i.e., when

$$\begin{aligned} \frac{\mathcal {B}^{new}}{\mathcal {B}^{orig}} = \frac{\mathcal {V}^{new}}{\mathcal {V}^{orig}} = \frac{\mathcal {R}^{new}}{\mathcal {R} ^{orig}}= \text {Cst} \end{aligned}$$
(8)

where is the finite piece of the virtual contribution (the interference term between the Born and the loop amplitude). Such relation should hold over the full phase-space with a universal constant since the MC counter terms connect the born and the real in a non local way. Nevertheless, as we will see later, the effect of the MC counter terms are quite mild, as expected since their contribution to the total cross-section are exactly zero by construction. This allows the Naive LO-like method to nicely approximate the NLO differential cross-section for many processes/theories where the last equation needs to be valid only phase-space point by phase-space point (i.e. when the ratio of the real matches the ratio of the Born and of the virtual in the soft and/or collinear limit).

3.2 NLO re-weighting

In order to have an accurate NLO re-weighting method, one should explicitly factorise out the dependence in the (various) matrix elements (i.e. in the Born squared matrix element – \(\mathcal {B}\) – , the real squared matrix element – \(\mathcal {R}\) – and in the finite piece of the virtual – \(\mathcal {V}\) – ). We use the decomposition of the differential described in [25]Footnote 4 introduced in the context of the evaluation of the systematics uncertainties:

$$\begin{aligned} d\sigma ^\alpha= & {} f_1(x_1,\mu _F)f_2(x_2,\mu _F) \left[ \mathcal {W}^\alpha _0 +\mathcal {W}^\alpha _F \,\text {log}\left( \mu _F/Q\right) ^2 \right. \nonumber \\&+\,\left. \mathcal {W}^\alpha _R \,\text {log}\left( \mu _R/Q\right) ^2 \right] d\chi ^\alpha , \end{aligned}$$
(9)

where the \(\alpha \) index is either RSCSCMC (see previous section). Q is the Ellis-Sexton scale and \(d\chi ^\alpha \) is the phase-space measure.

The expression of the \(\mathcal {W}^\alpha _0\), \(\mathcal {W}^\alpha _F\), \( \mathcal {W}^\alpha _R\) are given in the appendix of [25] and are not repeated here. All those expressions have linear dependencies in the Born, the virtual, the real, the color connected Born \(\mathcal {B}_{CC}\) (this term is defined Eq. (3.28) of [26]) and the reduced matrix element \(\mathcal {B}_{RM}\) (Eq. (D.1) of [26]). This allows us to decompose the corresponding expressions as:Footnote 5

$$\begin{aligned} \mathcal {W^\alpha _\beta }= & {} \mathcal {B}\,\mathcal {C}^\alpha _{\beta ,B} +\mathcal {B}_{CC}\,\mathcal {C}^\alpha _{\beta ,B_{CC}} + \mathcal {B}_{RM}\,\mathcal {C}^\alpha _{\beta ,B_{RM}} \nonumber \\&+\, \mathcal {V}\,\mathcal {C}^\alpha _{\beta ,V} + \mathcal {R}\,\mathcal {C}^\alpha _{\beta ,R} \end{aligned}$$
(10)

where the \(\beta \) index is either 0, R or F. The are expressions which do not depend of either the PDF/scale or the matrix-element. From this expression we define the following three terms:Footnote 6

$$\begin{aligned} \mathcal {W}^\alpha _{\beta ,B}\equiv & {} \mathcal {B}\,\mathcal {C}^\alpha _{\beta ,B} +\mathcal {B}_{CC}\,\mathcal {C}^\alpha _{\beta ,B_{CC}}+\mathcal {B}_{RM}\,\mathcal {C}^\alpha _{\beta ,B_{RM}},\end{aligned}$$
(11)
$$\begin{aligned} \mathcal {W}^\alpha _{\beta ,V}\equiv & {} \mathcal {V}\,\mathcal {C}^\alpha _{\beta ,V},\end{aligned}$$
(12)
$$\begin{aligned} \mathcal {W}^\alpha _{\beta ,R}\equiv & {} \mathcal {R}\,\mathcal {C}^\alpha _{\beta ,R}. \end{aligned}$$
(13)

By keeping track of the at the generation time and writing it in the final event, one can perform an NLO re-weighting by:

$$\begin{aligned} \begin{aligned} \mathcal {W}_{\beta ,B}^{\alpha ,new}&= \frac{\mathcal {B}^{new}}{\mathcal {B}^{old}} \, \mathcal {W}_{\beta ,B}^{\alpha ,old}, \\ \mathcal {W}_{\beta ,V}^{\alpha ,new}&=\frac{\mathcal {V}^{new}}{\mathcal {V}^{old}} \, \mathcal {W}_{\beta ,V}^{\alpha ,old}, \\ \mathcal {W}_{\beta ,R}^{\alpha ,new}&= \frac{\mathcal {R}^{new}}{\mathcal {R}^{old}} \, \mathcal {W}_{\beta ,R}^{\alpha ,old}. \end{aligned} \end{aligned}$$
(14)

The final weight associated to the event can then be calculated by combining those various pieces as it is done for the estimation of the systematics uncertainty (see Appendix of [25]). One can notice that both the color-connected Born and the reduced matrix-element are simply re-weighted by the ratio of the Born which can lead to a breaking of the NLO accuracy of the method. In the case of the color-connected Born, this does not consist in an additional limitation of the method since the re-weighting factors should differ only if the two theories present a difference in the relative importance of the various color-flows (a case already not handled at LO accuracy). The case of the reduced matrix-element is actually different since the contribution related to this matrix-element vanishes after integration over the azimutal angle [26]. The infra-red observables are therefore not sensitive to such contribution and consequently neither on the re-weighting used for such contribution.

More generally, the possible drawbacks and limitations on the statistical precision of the method are the same as for the LO case. However, for NLO calculations in MG5_aMC we face one additional source of statistical uncertainty due to the method used to integrate the virtual contribution. This method reduces the number of computations of the virtual by using an approximate of the virtual contribution based on the Born amplitudes times a fitted parameter \(\kappa \). It performs a separate phase-space integration to get the difference between the virtual and its approximation (full description of the method is presented in Section 2.4.3 of [6]). Schematically it can be written as:

$$\begin{aligned} \int (\mathcal {B}+\mathcal {V}) = \int (\mathcal {B}+\kappa \mathcal {B}) \,\,+\,\, \int (\mathcal {V}-\kappa \mathcal {B}). \end{aligned}$$
(15)

If it exists a value of \(\kappa \) such that \(\kappa \mathcal {B}\approx \mathcal {V}\), the second integral is approximately zero and does not need to be probed as often as the first integral (thanks to importance sampling [27]), reducing the amount of time used in the evaluation of the loop-diagrams. However the re-weighting proposed in Eq. 14 will highly enhance the contribution of the second integral since each term of the integral will be re-weighted by a different factor, having a direct impact on the statistical uncertainty.

To reduce this effect, we propose to use a slightly more advanced re-weighting technique. We split the contribution proportional to the Born (\(\mathcal {W}^\alpha _{\beta ,B}\)) in two parts: \(\mathcal {W}^\alpha _{\beta ,BC}\) and \(\mathcal {W}^\alpha _{\beta ,BB}\). \(\mathcal {W}^\alpha _{\beta ,BC}\) is the part, proportional to the Born, related to the one of the counterterms, while \(\mathcal {W}^\alpha _{\beta ,BB}\) includes all of the other contributions (the Born itself and the approximate virtual). We then apply the following re-weighting:

$$\begin{aligned} \begin{aligned} \mathcal {W}_{\beta ,BB}^{\alpha ,new}&= \frac{(\mathcal {B}^{new}+\mathcal {V}^{new})}{(\mathcal {B}^{old}+\mathcal {V}^{old})} \,\mathcal {W}_{\beta ,BB}^{\alpha ,old}, \\ \mathcal {W}_{\beta ,BC}^{\alpha ,new}&= \frac{\mathcal {B}^{new}}{\mathcal {B}^{old}} \, \mathcal {W}_{\beta ,BC}^{\alpha ,old}, \\ \mathcal {W}_{\beta ,V}^{\alpha ,new}&= \frac{(\mathcal {B}^{new}+\mathcal {V}^{new})}{(\mathcal {B}^{old}+\mathcal {V}^{old})} \, \mathcal {W}_{\beta ,V}^{\alpha ,old}, \\ \mathcal {W}_{\beta ,R}^{\alpha ,new}&= \frac{\mathcal {R}^{new}}{\mathcal {R}^{old}} \, \mathcal {W}_{\beta ,R}\,^{\alpha ,old}. \end{aligned} \end{aligned}$$
(16)

Both the virtual and the approximate virtual are re-weighted by the same pre-factor which should allow to limit the enhancement of the second integral. The demonstration that such re-weighting is NLO accurate is presented in Appendix. It can be intuitively understood considering (\(\mathcal {B}+\mathcal {V}\)) as a single block which is re-weighted accordingly.

3.3 Loop improved re-weighting

A third type of re-weighting was originally introduced in the context of multiple Higgs production [18, 28,29,30], which we now briefly describe. In this case the idea is to perform the NLO computation in the infinite top-mass limit and then re-introduce the finite top-mass effects via re-weighting. Equation 16 is directly applicable if the exact finite virtual part is known. If not, one can still use an approximate method:

$$\begin{aligned} \mathcal {W}_{\beta ,B}^{\alpha ,new}= & {} \frac{\mathcal {B}^{new}}{\mathcal {B}^{old}} \, \mathcal {W}_{\beta ,B}^{\alpha ,old}, \nonumber \\ \mathcal {W}_{\beta ,V}^{\alpha ,new}= & {} \frac{\mathcal {B}^{new}}{\mathcal {B}^{old}} \, \mathcal {W}_{\beta ,V}^{\alpha ,old}, \nonumber \\ \mathcal {W}_{\beta ,R}^{\alpha ,new}= & {} \frac{\mathcal {R}^{new}}{\mathcal {R}^{old}} \, \mathcal {W}_{\beta ,R}^{\alpha ,old}. \end{aligned}$$
(17)

Both this method and the Naive LO-like method are not NLO accurate. However one can expect that the loop improved method has a better accuracy than the other one due to the correct treatment of the various counter terms.

4 Implementation and validation

The various methods of re-weighting discussed in the previous section have been implemented in MG5_aMC and are publicly available starting from version 2.4.0. At the LO, the default re-weighting mode is based on the helicity information present in the event (Eq. 4), while for NLO samples, the default re-weighting mode is the NLO accurate one (Eq. 16). Fixed-order NLO generation can not be re-weighted since no event generation is performed in this mode. A manual of the code is available online at the following address: https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/Reweight.

In this section, we will present four validation examples covering the various types of re-weighting introduced in the previous section. Since the purpose of this section is mainly to validate our method, the details of the simulation used (cuts, type of scale, ...) are kept to a minimum. Unless otherwise stated, the settings used correspond to the default value of MG5_aMC (version 2.4.0). In particular the minimal transverse momentum on jet is of 20 GeV at LO and of 10 GeV at NLO.

4.1 ZW associated production in the effective field theory at the LO

For the first validation, we will use the effective field theory (EFT) in the Electro-Weak sector [31]. We will focus on the associated production of the W and Z boson for the following dimension six operator:

$$\begin{aligned} \mathcal {O}_{3W} = Tr\left[ W_{\mu \nu }W^{\nu \rho }W_{\rho }{}^{\mu }\right] , \end{aligned}$$
(18)

with

$$\begin{aligned} W_{\mu \nu } = \frac{i}{2} g_W \tau ^I (\partial _\mu W^I_\nu - \partial _\nu W^I_\mu + g_W \epsilon _{IJK} W^J_\mu W^K_\nu ) \end{aligned}$$
(19)

and \(g_W\) is the weak gauge coupling, \(\tau ^I\) are the pauli matrices and \(W^I_\mu \) is the gauge Field of SU(2).

In Fig. 1 we present the differential distributions for the transverse momenta of the Z boson at LO accuracy. Starting from a sample of Standard Model events (black solid curve), we have re-weighted our sample to get the SM plus the interference term with the dimension six operator for two values of the associated coupling: \(c=50\, \text {TeV}^{-2}\) (dashed blue) and \(c=500\, \text {TeV}^{-2}\) (dashed green). This second value is clearly outside the validity region for the EFT approach as the differential distributions turns to be negative at low transverse momentum. Nevertheless, having such large effects is interesting for the validation of the re-weighting method. The same differential distributions are generated with MG5_aMC (solid green and blue) and validates the re-weighting method.

The ratios between the differential curves obtained with each method are presented in the second inset. This inset contains also the statistical uncertainty (yellow band) for the ratio of two independent SM samples. The compatibility of those two ratio plots with the expected statistical fluctuation validates our approach/code implementation. The first inset presents the ratio between the EFT and SM predictions. It shows that the method works correctly for quite small and quite large modifications of the differential distributions.

One can note that in the context of EFTs, the weight is linear in the dim-6 couplingFootnote 7 therefore it is trivial to predict the weight from any value of the coupling as soon as the weights for two different values of the coupling are known. This property can be used to further speed up the computation of the weight.

Fig. 1
figure 1

Differential cross-section for \(p p \rightarrow Z W^+\) at 13 TeV LHC. This correspond to the Standard model plus the operator \(\mathcal {O}_3W\) for two different couplings value. Only the SM contribution plus the interference term is kept on this plot. See text for details

4.2 ZH associated production in the effective field theory at NLO

For our first NLO validation, we consider the associated production of a Z and H boson in the EFT as implemented in the Higgs Characterisation framework/model [33]. We use two of the benchmarks introduced in [34]: HD and HDder. In more details, the effective Lagrangian relevant for this example is

$$\begin{aligned} \mathcal {L}_{HD}= & {} -\frac{1}{4} \frac{1}{\Lambda }\kappa _{HWW} Z_{\mu \nu }Z^{\mu \nu }H \end{aligned}$$
(20)
$$\begin{aligned} \mathcal {L}_{HDder}= & {} -\frac{1}{\Lambda }\kappa _{H\partial Z} Z_\nu \partial _\mu Z^{\mu \nu }H \nonumber \\&+\,\left( -\frac{1}{\Lambda }\kappa _{H\partial W}W^+_\nu \partial _\mu W^{-\mu \nu }H +h.c.\right) , \end{aligned}$$
(21)

where \(\Lambda \) is the high energy scale (set to \(1 \text {TeV}\)), \(\kappa _{HWW}\), \(\kappa _{H\partial Z}\), \(\kappa _{H\partial W}\) are dimensionless couplings (set to one). H is the Higgs doublet field and \(V_{\mu \nu } = \partial _\mu V_\nu -\partial _\nu V_\mu \); \(V=Z, W^-,W^+\).

In Fig. 2 we present the differential cross-section for the transverse momentum of the Higgs and for its rapidity. In both cases, we present the curve for the SM, HD and HDder benchmarks. For the transverse momentum, we start from an HDder sample of events and perform the re-weighting to the other scenarios. While for the rapidity we present the plot where the original sample is the HD theory. Each re-weighted curve is then compared with a dedicated generation and the associated ratio plot is displayed below with the statistical uncertainty expected for the generation of two independent samples. The agreement between the two is excellent for both the NLO accurate re-weighting and the Naive LO-like re-weighting. In this case the NLO QCD effects factorise from the BSM ones and therefore the NLO accuracy of the Naive LO-like approach can only be spoiled by MC counter terms – which are as expected quite mild – .

Fig. 2
figure 2

Differential cross-section for \(p p \rightarrow Z H\) at 13 TeV LHC featuring both LO and NLO re-weighting methods. Events have been showered with Herwig6 [32]. See text for details

From the comparison of the two methods for the HD curve in the plot of the transverse momenta (top plot), we can observe that the statistical fluctuations are more pronounced for the curve obtained by re-weighting. This is an example of enhancement of statistical uncertainty due to the re-weighting as discussed around Eq. 3 since in the high \(p_T\) region, the HDder is suppressed compare to the other theories under consideration (HD and SM).

4.3 Effective field theory (\(t\bar{t}Z\)) at NLO

In this second NLO example, we will use the EFT framework in the context of the top-quark [35] and focus on the chromomagnetic operator:

$$\begin{aligned} \mathcal {O}_{tg}=y_t g_s(\bar{Q}\sigma ^{\mu \nu }T^At)\tilde{\varphi }G_{\mu \nu }^A, \end{aligned}$$
(22)

where Q is the third generation left-handed quark doublet, \(\varphi \) and t are respectively the Higgs and top quark fields, \(g_s\) is the SM strong coupling constant, \(y_t\) is the top-Yukawa coupling and \(T^A\) is the SU(3) generator.

In Fig. 3, we present the transverse momentum of the Z boson in the associated production of this boson with a top/anti-top quark pair. We present the result for both the full matrix element squared (labelled \(\sigma ^{(2)}\)) and for the SM contribution plus the interference with the dimension 6 operator only (labelled \(\sigma ^{(1)}\)).

As in the previous section, we present our prediction both via the Naive LO-like re-weighting method (RWGT-LO) and via the NLO accurate one (RWGT-NLO), The ratio to the SM curves are presented in the first inset while the ratio between our prediction and the direct computation in MG5_aMC for \(\sigma ^{(2)}\) is presented in the second inset. The green band represents the expected statistical uncertainty for the ratio of two MG5_aMC samples. It is not possible to extract in automatic way the contribution of \(\sigma ^{(1)}\) from MG5_aMC and therefore we do not provide any comparison for this curve. As before, we observe a case where the statistical uncertainties are enhanced by the re-weighting approach and where both the Naive LO-like and the NLO re-weighting provides similar results. In this case the theory do not factorise and the ratio of the virtual and of the Born are not expected to match. The nice agreement is explained by the small contribution of the virtual and, once again, by the mild effect of the MC counter terms.

Fig. 3
figure 3

Differential cross-section for \(p p \rightarrow Z t \bar{t}\) at 13 TeV LHC featuring both LO and NLO re-weighting methods. The shower have been performed with Herwig6 [32]. See text for details

4.4 Higgs plus one jet production at LO and NLO order

In this last example, we will present results for the associated production of a SM Higgs with one jet. In Fig. 4, we present the transverse momentum of the Higgs at both LO and NLO accuracy. For the LO case, we present three curves. The first one is the curved obtained within the heft model [36] featuring the dimension five operator obtained by integrating out the top quark (HEFT LO). The second line (SM LO/RWGT) is the one obtained by re-weighting the previous curve by the full one loop matrix element squared which contain the complete top-quark mass dependence. The last LO curve is the one obtained via direct integration of the one-loop amplitude squared by MG5_aMC [37] (SM LO). At NLO accuracy, we have the curve in the infinite top mass limit (HEFT NLO) using the Higgs characterization model [34]. This sample is then re-weighted by the full-loop (Loop Improved) following the loop-improved method presented in the previous section. It is so far not possible to compute the NLO contribution directly in order to compare the accuracy of such method.

The first inset presents the ratio at LO and NLO of the infinite top mass limit over the full theory. For the NLO case, the full theory is approximated by the loop-improved method. The two ratios are very similar showing that the loop-improved method re-introduces the top-mass effects in a sensible way. The second inset presents the ratio between the re-weighting and the direct approach in the LO case, the statistical uncertainty of the ratio of two independent SM sample is presented by the yellow band. Its bumpy shape is due to the use of multiple samples with different cuts to decrease the statistical uncertainty. This ratio plot fully validates the re-weighting in the case of the LO curves.

Fig. 4
figure 4

Differential cross-section of the Higgs transverse momentum in the heavy top mass limit (both LO and NLO) re-weighted to include the finite top mass effect. This is compare to the loop-induced processes (LO). The shower have been performed with Herwig6 [32]. See text for details

5 Conclusion

We have presented the implementation of several methods that can be used for re-weighting LO and NLO samples and discuss the associated intrinsic limitations. We have released a new version of MG5_aMC that allows the users to employe the various re-weighting methods presented in this paper in a fully automatic and user-friendly way. In particular we have introduced for the first time an NLO accurate re-weighting method and compared it with the approximate methods available in the literature. Other re-weighting methods like the Naive LO-like and the loop-improved are for the first time available in a public code.

The comparison between the various methods shows that the approximate method (the Naive LO-like re-weighting) performs a satisfactory job. This indicates that the non locality of the MC counter terms is often more a theoretical problem than a contribution spoiling the NLO accuracy of the Naive LO-like re-weighting. Therefore the Naive LO-like re-weighting should be a good approximation in a quite large class of model/observable either when the virtual contribution is sub-dominant and/or when the effect of the BSM physics factorises. Consequently, we recommend phenomenologist to first test the Naive LO-like re-weighting and in case of loss of accuracy move forward to the slower NLO method. On the other hand for mass production at the LHC, where the samples are often used for more than one study, we recommend to always use the NLO accurate method.

The framework introduced here is flexible enough to accommodate different types of re-weighting approaches. In the near future we plan to capitalise on this to allow different type of functionalities. First we plan to implement a standard systematics uncertainty computation module as it is done in [16, 25, 38,39,40,41,42]. Compared to the existing module of MG5_aMC [25], this new module will allow to perform this determination independently of the event generation which will be extremely useful to evaluate the effect of a new PDF set/test a new scale scheme on existing samples. In a second stage, we plan to be able to compute the systematics uncertainty for the re-weighted BSM sample at the time of the re-weighting.