Particael
EN

Cross sections with MadGraph5_aMC@NLO: a step-by-step guide and common mistakes

To compute a cross section with MG5_aMC, define the process, choose the order and mode, set the beam energies, the PDF set and the scales, and read the result in the output.

Details

This guide walks through an LO and NLO QCD cross-section calculation with MadGraph5_aMC@NLO (MG5_aMC) 3.5.17, from the process definition to reading the result, and lists the mistakes that most often make two results disagree. The commands and the output are those of the calculation behind the figures on our Calculations page: pair production of a charged vector-like lepton at 14 TeV. Every default quoted here refers to MG5_aMC 3.5.17; check the run card of your own version before relying on one.

The MG5_aMC command sequence for a cross section.import model sm01generate p p > e+ e-02output03launch04set ebeam1 650005set ebeam2 650006done07σ = … ± … pb
The MG5_aMC command sequence for a cross section.

1. Define the process

Import the model, define the proton content and generate the process. Appending [QCD] requests NLO QCD corrections: MG5_aMC then generates the Born, the one-loop (virtual) and the real-emission matrix elements and combines them with FKS subtraction.

import model VLL_NLO_5fns_UFO
define p = g u c d s b u~ c~ d~ s~ b~
generate p p > vle vle~ [QCD]
output <directory>

For an NLO calculation the UFO model must contain the ultraviolet and R₂ counterterms of the one-loop amplitudes; a model built for leading order only cannot be used with [QCD]. The five-flavour scheme is set by this define line together with a model in which the b quark is massless, as here; it adds b-initiated subprocesses. On import, MG5_aMC adjusts its own definitions of p and j to the b mass of the model. Here vle is the charged vector-like lepton of the SU(2)-singlet model of Ajjath et al. (PDG code 9000003, charge −1).

2. Choose the order and the mode

After output and launch, MG5_aMC asks how to run: order=LO or NLO; fixed_order=ON for a total rate and histograms without events, or OFF to generate events for a parton shower; and whether to shower and to decay with MadSpin. A total cross section or a mass scan does not need events; observables shaped by soft and collinear radiation, such as the low-pT region of a pair, need a shower. Without [QCD], the process is an LO process run by MadEvent, with MadEvent's run-card keys; for the LO cross section from aMC@NLO, keep [QCD] and choose order=LO.

launch
order=NLO
fixed_order=ON
shower=OFF
madspin=OFF

3. Set the beam energies

MG5_aMC's default beams are 6500 + 6500 GeV, that is 13 TeV. For 14 TeV set ebeam1 and ebeam2 to 7000; the run summary repeats the beam energies, which is the quickest check.

4. Choose the PDF set

To use a specific set, set pdlabel to lhapdf and lhaid to the set number; the set then also fixes αs and its running. The example uses CT18NNLO, lhaid 14000. If you switch pdlabel to lhapdf but keep the default lhaid — 244600 for aMC@NLO, 230000 for MadEvent — check that the set is installed in your LHAPDF. reweight_PDF = True adds one weight per PDF member, which is what a PDF band needs; the default is False.

set pdlabel lhapdf
set lhaid 14000
set reweight_PDF False

5. Choose the scales

The central scale is set by dynamical_scale_choice. Its default, −1, means different things in the two engines: H_T/2 in aMC@NLO and a CKKW-clustering scale in MadEvent. For a heavy pair, the invariant mass of the pair is a common choice; MG5_aMC has no built-in option for it, so it needs dynamical_scale_choice = 10 together with a user function that defines user_dynamical_scale. If that function is missing, an NLO run silently uses a fixed 91.118 GeV and an LO run stops. Keep reweight_scale = True to obtain the scale band from the same run.

set dynamical_scale_choice 10
set custom_fcts <your file defining user_dynamical_scale>
set reweight_scale True
set rw_rscale 1.0, 0.5, 2.0
set rw_fscale 1.0, 0.5, 2.0

6. Masses, widths and cuts

Masses and widths go into the param card, for example set param_card MVLE 300. A width left at zero means the particle never decays in MG5_aMC: no lifetime is written, and MadSpin offers no decay. The value Auto, which lets MG5_aMC compute a width, is accepted only in the DECAY block. Cuts are part of the definition of σ, and their defaults differ between the engines: the charged-lepton pT cut, for example, is 10 GeV in MadEvent and 0 in aMC@NLO. In MadEvent, particles heavier than 20 GeV receive no cut, and the lepton cuts act only on |PDG| = 11, 13 and 15; to cut on a heavy exotic lepton, use pt_min_pdg and the related PDG-based keys.

7. Read the result

At the end of a fixed-order NLO run, MG5_aMC prints the total cross section with its Monte Carlo integration error and, if scale reweighting is on, the scale variation.

Final results and run summary:
Process p p > vle vle~ [QCD]
Run at p-p collider (7000.0 + 7000.0 GeV)
Total cross section: 2.655e-02 +- 8.9e-05 pb

Scale variation (computed from histogram information):
    Dynamical_scale_choice 10 (envelope of 9 values):
        2.655e-02 pb  +1.5% -1.4%

Here σ(NLO) = 2.655 × 10⁻² pb at m_E = 300 GeV, with a Monte Carlo integration error of 8.9 × 10⁻⁵ pb, about 0.3%. The scale line is the envelope of all nine (μR, μF) combinations; a seven-point band, which leaves out the two opposite extremes, can only be equal or narrower. The LO (Born) cross section of the same run is stored with the same PDF set and scales, which makes it the natural denominator of a K-factor. No PDF band appears because reweight_PDF was False.

Common mistakes

  1. Comparing MadEvent LO with aMC@NLO LO using the defaults. Cuts, the meaning of the −1 scale choice and the default PDF set differ; match the active settings first.
  2. Comparing a 14 TeV result with a run at the default beams. The default is 6500 + 6500 GeV (MG5_aMC source: banner.py, lines 3976–3977).
  3. Assuming the default lepton cut reaches a heavy exotic lepton. In MadEvent nothing heavier than 20 GeV is cut (setcuts.f, line 211); use pt_min_pdg.
  4. Treating a scale band as a summary of all uncertainties. For a Drell–Yan-like LO process the band comes from μF alone; PDF and αs uncertainties are separate.
  5. Scale choice 0 or 10 without a user function. At NLO the scale silently becomes a fixed 91.118 GeV; at LO the run stops.
  6. A K-factor with different PDFs at LO and NLO. The ratio then also contains the change of PDF and αs.
  7. Reading "not computed" as zero or as an error. In an LO run the NLO result and K are undefined.
  8. Switching pdlabel to lhapdf and keeping the default lhaid. Sets 230000 and 244600 must be installed in the active LHAPDF.
  9. Switching MadSpin on without writing decays. The default card decays only t, W and Z, and in its default, spin-correlated mode MadSpin does not handle three-body decays.
  10. Leaving a width at zero and expecting a decay or a decay length. With Γ = 0 no lifetime is written.
  11. Writing Auto outside the DECAY block. MG5_aMC warns and ignores it.
  12. Enabling FxFx or MLM merging and expecting to keep your scale. With FxFx, MG5_aMC resets the scale choice to −1; when it sets up MLM merging itself, it also uses −1.

What "not computed" means

Quantities that a run does not produce
RunNot computedWhy
LO run (MadEvent or aMC@NLO at LO)NLO result and K-factorThe run did not compute NLO; this is not a failure
aMC@NLO run with reweight_scale offScale bandNo scale weights were stored
MadEvent run without a systematics summaryScale and PDF bandIn MadEvent the band comes from the systematics module after the run
MadEvent run with lepton beamsScale and PDF bandMG5_aMC switches the systematics off
reweight_PDF off (central member only)PDF bandNo member weights were stored

The same steps in Particael

In Particael the same choices are made as settings — process, model, order, beams, PDF set, scales, masses — and the MG5 script they produce can be inspected and edited. Each field names the source of its default. Nothing in this guide depends on Particael: every step works in MG5_aMC directly.

Sources and further reading

MG5_aMC: Alwall et al. (2014); the UFO format: Degrande et al. (2012); NLO counterterms for new models: Degrande (2014); PDF access: Buckley et al. (2015). Next: K-factor, scale uncertainty, NLO+PS.

Sources

  1. J. Alwall et al., “MadGraph5_aMC@NLO”, JHEP 1407 (2014) 079 · arXiv:1405.0301 · Reference
  2. C. Degrande, C. Duhr, B. Fuks, D. Grellscheid, O. Mattelaer, T. Reiter, “UFO — The Universal FeynRules Output”, Comput. Phys. Commun. 183 (2012) 1201–1214 · arXiv:1108.2040 · Reference
  3. Celine Degrande, “Automatic evaluation of UV and R2 terms for beyond the Standard Model Lagrangians: a proof-of-principle” · arXiv:1406.3030 · Reference
  4. A. H. Ajjath, Benjamin Fuks, Hua-Sheng Shao, Yehudi Simon, “Precision predictions for exotic lepton production at the Large Hadron Collider”, Phys.Rev.D107:075011,2023 · arXiv:2301.03640 · Reference
  5. A. Buckley et al., “LHAPDF”, LHAPDF6: parton density access in the LHC precision era (2015) · arXiv:1412.7420 · Reference

Last reviewed · MadGraph5_aMC@NLO 3.5.17

The compiler: where an MG5_aMC build on Apple silicon breaks