Dileptonic ttbar decay at NLO using Madspin

Asked by Aminul Hossain

Hi

I am trying to generate events for the following dileptonic process:

                                      p p > t t~, (t > b w+, w+ > l+ vl), (t~ > b~ w- , w- > l- vl~)

at NLO. Here I refrained from adding [QCD] command in Madgraph due to syntax mismatch. Instead, I tried decaying it using Madspin where I specify the particular decay chain for t and t~. So the commands follows as:

                             generate p p > t t~ [QCD]

and running the command which after a few steps give me the options for the different parameter cards. One being the madspin card, in which I specified the decay chain. Then while running the events, Madgraph crashes with the following error:

Command "launch auto " interrupted with error:
Exception : Some of the run failed: Please read /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/PROCNLO_loop_sm_0/Events/run_01/events.lhe.gz_0.lhe_tag_1_debug.log
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/PROCNLO_loop_sm_0/run_01_tag_1_debug.log'.
Please attach this file to your report.

The report is as follows (verbatim):

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 5.3.5.4 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* and *
#* http://amcatnlo.cern.ch *
#* *
#************************************************************
#* *
#* Command File for aMCatNLO *
#* *
#* run as ./bin/aMCatNLO.py filename *
#* *
#************************************************************
reweight /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/PROCNLO_loop_sm_0/Events/run_01/events.lhe.gz_0.lhe -from_cards --multicore=create
Traceback (most recent call last):
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/PROCNLO_loop_sm_0/bin/internal/extended_cmd.py", line 1546, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/PROCNLO_loop_sm_0/bin/internal/extended_cmd.py", line 1495, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/PROCNLO_loop_sm_0/bin/internal/common_run_interface.py", line 2250, in do_reweight
    reweight_cmd.import_command_file(path)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1694, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1575, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1495, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/various/misc.py", line 109, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/reweight_interface.py", line 566, in do_launch
    weight = self.calculate_weight(event)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/reweight_interface.py", line 1038, in calculate_weight
    self.pdf = lhapdf.mkPDF(self.banner.run_card.get_lhapdf_id())
AttributeError: 'NoneType' object has no attribute 'mkPDF'
Value of current Options:
             pythia8_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/pythia8
                hwpp_path : None
              thepeg_path : None
               hepmc_path : None
         madanalysis_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/MadAnalysis
        madanalysis5_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/madanalysis5/madanalysis5
          pythia-pgs_path : None
                  td_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/td
             delphes_path : None
      exrootanalysis_path : None
             syscalc_path : None
               rivet_path : None
                yoda_path : None
                   lhapdf : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/lhapdf6_py3/bin/lhapdf-config
               lhapdf_py2 : None
               lhapdf_py3 : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/lhapdf6_py3/bin/lhapdf-config
                  timeout : 60
            f2py_compiler : None
        f2py_compiler_py2 : None
        f2py_compiler_py3 : None
              web_browser : None
               eps_viewer : None
              text_editor : None
         fortran_compiler : None
             cpp_compiler : None
              auto_update : 7
             cluster_type : condor
    cluster_status_update : (600, 30)
         cluster_nb_retry : 1
       cluster_local_path : None
       cluster_retry_wait : 300
             stdout_level : None
   automatic_html_opening : True
      notification_center : True
                 run_mode : 2
            cluster_queue : None
             cluster_time : None
             cluster_size : 100
           cluster_memory : None
                  nb_core : 10
        cluster_temp_path : None
                 mg5_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4
mg5amc_py8_interface_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/MG5aMC_PY8_interface
                  fastjet : None
                    eMELA : None
                    golem : None
                    ninja : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/lib
                  collier : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/lib
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 3.5.4 2024-04-05 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set low_mem_multicore_nlo_generation False
set complex_mass_scheme False
set include_lepton_initiated_processes False
set gauge unitary
set loop_optimized_output True
set loop_color_flows False
set max_npoint_for_channel 0
set default_unset_couplings 99
set max_t_for_channel 99
set zerowidth_tchannel True
set nlo_mixed_expansion True
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
import model loop_sm
generate p p > t t~ [QCD]
output
######################################################################
## PARAM_CARD AUTOMATICALY GENERATED BY MG5 ####
######################################################################
###################################
## INFORMATION FOR MASS
###################################
BLOCK MASS #
      5 4.700000e+00 # mb
      6 1.730000e+02 # mt
      15 1.777000e+00 # mta
      23 9.118800e+01 # mz
      25 1.250000e+02 # mh
      1 0.000000e+00 # d : 0.0
      2 0.000000e+00 # u : 0.0
      3 0.000000e+00 # s : 0.0
      4 0.000000e+00 # c : 0.0
      11 0.000000e+00 # e- : 0.0
      12 0.000000e+00 # ve : 0.0
      13 0.000000e+00 # mu- : 0.0
      14 0.000000e+00 # vm : 0.0
      16 0.000000e+00 # vt : 0.0
      21 0.000000e+00 # g : 0.0
      22 0.000000e+00 # a : 0.0
      24 8.041900e+01 # w+ : cmath.sqrt(mz__exp__2/2. + cmath.sqrt(mz__exp__4/4. - (aew*cmath.pi*mz__exp__2)/(gf*sqrt__2)))
###################################
## INFORMATION FOR SMINPUTS
###################################
BLOCK SMINPUTS #
      1 1.325070e+02 # aewm1
      2 1.166390e-05 # gf
      3 1.190000e-01 # as (note that parameter not used if you use a pdf set)
###################################
## INFORMATION FOR YUKAWA
###################################
BLOCK YUKAWA #
      5 4.700000e+00 # ymb
      6 1.730000e+02 # ymt
      15 1.777000e+00 # ymtau
###################################
## INFORMATION FOR DECAY
###################################
DECAY 6 1.491500e+00 # wt
DECAY 23 2.441404e+00 # wz
DECAY 24 2.047600e+00 # ww
DECAY 25 6.382339e-03 # wh
DECAY 1 0.000000e+00 # d : 0.0
DECAY 2 0.000000e+00 # u : 0.0
DECAY 3 0.000000e+00 # s : 0.0
DECAY 4 0.000000e+00 # c : 0.0
DECAY 5 0.000000e+00 # b : 0.0
DECAY 11 0.000000e+00 # e- : 0.0
DECAY 12 0.000000e+00 # ve : 0.0
DECAY 13 0.000000e+00 # mu- : 0.0
DECAY 14 0.000000e+00 # vm : 0.0
DECAY 15 0.000000e+00 # ta- : 0.0
DECAY 16 0.000000e+00 # vt : 0.0
DECAY 21 0.000000e+00 # g : 0.0
DECAY 22 0.000000e+00 # a : 0.0
###################################
## INFORMATION FOR QNUMBERS 82
###################################
BLOCK QNUMBERS 82 # gh
      1 0 # 3 times electric charge
      2 1 # number of spin states (2s+1)
      3 8 # colour rep (1: singlet, 3: triplet, 8: octet)
      4 1 # particle/antiparticle distinction (0=own anti)

#***********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat aMC@NLO *
# *
# This file is used to set the parameters of the run. *
# *
# Some notation/conventions: *
# *
# Lines starting with a hash (#) are info or comments *
# *
# mind the format: value = variable ! comment *
# *
# Some of the values of variables can be list. These can either be *
# comma or space separated. *
# *
# To display additional parameter, you can use the command: *
# update to_full *
#***********************************************************************
#
#*******************
# Running parameters
#*******************
#
#***********************************************************************
# Tag name for the run (one word) *
#***********************************************************************
  tag_1 = run_tag ! name of the run
#***********************************************************************
# Number of LHE events (and their normalization) and the required *
# (relative) accuracy on the Xsec. *
# These values are ignored for fixed order runs *
#***********************************************************************
  1000 = nevents ! Number of unweighted events requested
  -1.0 = req_acc ! Required accuracy (-1=auto determined from nevents)
  -1 = nevt_job ! Max number of events per job in event generation.
                 ! (-1= no split).
#***********************************************************************
# Output format
#***********************************************************************
  -1.0 = time_of_flight ! threshold (in mm) below which the invariant livetime is not written (-1 means not written)
  average = event_norm ! average/sum/bias. Normalization of the weight in the LHEF
#***********************************************************************
# Number of points per itegration channel (ignored for aMC@NLO runs) *
#***********************************************************************
  0.01 = req_acc_fo ! Required accuracy (-1=ignored, and use the
                     ! number of points and iter. below)
# These numbers are ignored except if req_acc_FO is equal to -1
  5000 = npoints_fo_grid ! number of points to setup grids
  4 = niters_fo_grid ! number of iter. to setup grids
  10000 = npoints_fo ! number of points to compute Xsec
  6 = niters_fo ! number of iter. to compute Xsec
#***********************************************************************
# Random number seed *
#***********************************************************************
  0 = iseed ! rnd seed (0=assigned automatically=default))
#***********************************************************************
# Collider type and energy *
# 0 = no PDF *
# 1/-1 = proton/antiproton *
# 3/-3 = electron/positron with ISR/Beamstrahlung; *
# 4/-4 = muon/antimuon with ISR/Beamstrahlung; *
#***********************************************************************
  1 = lpp1 ! beam 1 type (0 = no PDF)
  1 = lpp2 ! beam 2 type (0 = no PDF)
  6500.0 = ebeam1 ! beam 1 energy in GeV
  6500.0 = ebeam2 ! beam 2 energy in GeV
#***********************************************************************
# PDF choice: this automatically fixes also alpha_s(MZ) and its evol. *
#***********************************************************************
  nn23nlo = pdlabel ! PDF set
  244600 = lhaid ! If pdlabel=lhapdf, this is the lhapdf number. Only
              ! numbers for central PDF sets are allowed. Can be a list;
              ! PDF sets beyond the first are included via reweighting.
  0 = pdfscheme ! the scheme of the input PDFs. 0->MSbar; 1->DIS
             ! 2->eta (leptonic); 3->beta (leptonic)
      ! 4->mixed (leptonic); 6->delta (leptonic)
                    ! if pdlabel==emela, this is set automatically
#***********************************************************************
# The following block is specific to lepton collisions (lpp=+-3) *
#***********************************************************************
  True = photons_from_lepton ! whether to include or not photons from
                              ! lepton ISR
#***********************************************************************
# Include the NLO Monte Carlo subtr. terms for the following parton *
# shower (HERWIG6 | HERWIGPP | PYTHIA6Q | PYTHIA6PT | PYTHIA8) *
# WARNING: PYTHIA6PT works only for processes without FSR!!!! *
#***********************************************************************
  PYTHIA8 = parton_shower
  1.0 = shower_scale_factor ! multiply default shower starting
                            ! scale by this factor
  False = mcatnlo_delta ! use MC@NLO-Delta matching, arXiv:2002.12716
                        ! (only with Pythia8309 or later)
#***********************************************************************
# Renormalization and factorization scales *
# (Default functional form for the non-fixed scales is the sum of *
# the transverse masses divided by two of all final state particles *
# and partons. This can be changed in SubProcesses/set_scales.f or via *
# dynamical_scale_choice option) *
#***********************************************************************
  False = fixed_ren_scale ! if .true. use fixed ren scale
  False = fixed_fac_scale ! if .true. use fixed fac scale
  91.118 = mur_ref_fixed ! fixed ren reference scale
  91.118 = muf_ref_fixed ! fixed fact reference scale
  -1 = dynamical_scale_choice ! Choose one (or more) of the predefined
           ! dynamical choices. Can be a list; scale choices beyond the
           ! first are included via reweighting
  1.0 = mur_over_ref ! ratio of current muR over reference muR
  1.0 = muf_over_ref ! ratio of current muF over reference muF

#***********************************************************************
# Reweight variables for scale dependence and PDF uncertainty *
#***********************************************************************
  1.0, 2.0, 0.5 = rw_rscale ! muR factors to be included by reweighting
  1.0, 2.0, 0.5 = rw_fscale ! muF factors to be included by reweighting
  True = reweight_scale ! Reweight to get scale variation using the
            ! rw_rscale and rw_fscale factors. Should be a list of
            ! booleans of equal length to dynamical_scale_choice to
            ! specify for which choice to include scale dependence.
  False = reweight_pdf ! Reweight to get PDF uncertainty. Should be a
            ! list booleans of equal length to lhaid to specify for
            ! which PDF set to include the uncertainties.
#***********************************************************************
# Store reweight information in the LHE file for off-line model- *
# parameter reweighting at NLO+PS accuracy *
#***********************************************************************
  True = store_rwgt_info ! Store info for reweighting in LHE file
#***********************************************************************
# Customization of the code. List of files containing user hook function
#***********************************************************************
   = custom_fcts ! List of files containing user hook function
#***********************************************************************
# ickkw parameter: *
# 0: No merging *
# 3: FxFx Merging - WARNING! Applies merging only at the hard-event *
# level. After showering an MLM-type merging should be applied as *
# well. See http://amcatnlo.cern.ch/FxFx_merging.htm for details. *
# 4: UNLOPS merging (with pythia8 only). No interface from within *
# MG5_aMC available, but available in Pythia8. *
# -1: NNLL+NLO jet-veto computation. See arxiv:1412.8408 [hep-ph]. *
#***********************************************************************
  0 = ickkw
#***********************************************************************
#
#***********************************************************************
# BW cutoff (M+/-bwcutoff*Gamma). Determines which resonances are *
# written in the LHE event file *
#***********************************************************************
  15.0 = bwcutoff
#***********************************************************************
# Cuts on the jets. Jet clustering is performed by FastJet. *
# - If gamma_is_j, photons are also clustered with jets. *
# Otherwise, they will be treated as tagged particles and photon *
# isolation will be applied. Note that photons in the real emission *
# will always be clustered with QCD partons. *
# - When matching to a parton shower, these generation cuts should be *
# considerably softer than the analysis cuts. *
# - More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
  1.0 = jetalgo ! FastJet jet algorithm (1=kT, 0=C/A, -1=anti-kT)
  0.7 = jetradius ! The radius parameter for the jet algorithm
  10.0 = ptj ! Min jet transverse momentum
  -1.0 = etaj ! Max jet abs(pseudo-rap) (a value .lt.0 means no cut)
  False = gamma_is_j ! Wether to cluster photons as jets or not
#***********************************************************************
# Cuts on the charged leptons (e+, e-, mu+, mu-, tau+ and tau-) *
# More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
  0.0 = ptl ! Min lepton transverse momentum
  -1.0 = etal ! Max lepton abs(pseudo-rap) (a value .lt.0 means no cut)
  0.0 = drll ! Min distance between opposite sign lepton pairs
  0.0 = drll_sf ! Min distance between opp. sign same-flavor lepton pairs
  0.0 = mll ! Min inv. mass of all opposite sign lepton pairs
  30.0 = mll_sf ! Min inv. mass of all opp. sign same-flavor lepton pairs
#***********************************************************************
# Fermion-photon recombination parameters *
# If Rphreco=0, no recombination is performed *
#***********************************************************************
  0.1 = rphreco ! Minimum fermion-photon distance for recombination
  -1.0 = etaphreco ! Maximum abs(pseudo-rap) for photons to be recombined (a value .lt.0 means no cut)
  False = lepphreco ! Recombine photons and leptons together
  False = quarkphreco ! Recombine photons and quarks together
#***********************************************************************
# Photon-isolation cuts, according to hep-ph/9801442 *
# Not applied if gamma_is_j *
# When ptgmin=0, all the other parameters are ignored *
# More specific cuts can be specified in SubProcesses/cuts.f *
#***********************************************************************
  20.0 = ptgmin ! Min photon transverse momentum
  -1.0 = etagamma ! Max photon abs(pseudo-rap)
  0.4 = r0gamma ! Radius of isolation code
  1.0 = xn ! n parameter of eq.(3.4) in hep-ph/9801442
  1.0 = epsgamma ! epsilon_gamma parameter of eq.(3.4) in hep-ph/9801442
  True = isoem ! isolate photons from EM energy (photons and leptons)
#***********************************************************************
# Cuts associated to MASSIVE particles identified by their PDG codes. *
# All cuts are applied to both particles and anti-particles, so use *
# POSITIVE PDG CODES only. Example of the syntax is {6 : 100} or *
# {6:100, 25:200} for multiple particles *
#***********************************************************************
  {} = pt_min_pdg ! Min pT for a massive particle
  {} = pt_max_pdg ! Max pT for a massive particle
  {} = mxx_min_pdg ! inv. mass for any pair of (anti)particles
#***********************************************************************
# Use PineAPPL to generate PDF-independent fast-interpolation grid *
# (https://zenodo.org/record/3992765#.X2EWy5MzbVo) *
#***********************************************************************
  False = pineappl ! PineAPPL switch
#***********************************************************************
# Folding parameters for S-events to reduce the number of negatively *
# weighted events. Allowed values are 1, 2, 4 or 8 for each of the *
# three variables. Typically, folding in xi_i or y_ij results in the *
# largest reduction of negatively weighted events. (arXiv:2002.12716) *
#***********************************************************************
  1, 1, 1 = folding ! correspond to folding in xi_i, y_ij, and phi_i
#***********************************************************************

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Do you ask for BSM reweighing?

Cheers,

Olivier

Revision history for this message
Aminul Hossain (aminul-hossain9991) said :
#2

Hi

No, there is no BSM reweighing. I am not trying to implement any BSM effects in the specified decay. I am only interested in the cross section after hadronization for the specific decay.

Aminul

Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#3

Hum, this is weird since they are multiple sign that seems to indicate that you are in that module.

1) the command crashing is reported as
reweight /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/PROCNLO_loop_sm_0/Events/run_01/events.lhe.gz_0.lhe -from_cards --multicore=create

2) the run_card contains the line:
 True = store_rwgt_info ! Store info for reweighting in LHE file

Which is typically only set to True for BSM reweighting.

So maybe be sure to have
reweight=OFF
when you run since this might solve your issue.

Independently of the reweighitng or not the issue is related to your installation of lhapdf.
In general we do download PDF automatically when using lhapdf, but looks like since you use one of the internal pdf at NLO, this not done automatically in your case (no sure which one since this is not reweighting). So one solution is to do a manual download of that PDF set. (or do the full generation with a lhapdf set)

Cheers,

Olivier

Revision history for this message
Aminul Hossain (aminul-hossain9991) said :
#4

Hi

The reweight was set to False so that wasn't the issue, it was the installation of lhapdf. It has been fixed and its works now.

Thank you.

Aminul

Revision history for this message
Aminul Hossain (aminul-hossain9991) said :
#5

Thanks Olivier Mattelaer, that solved my question.