SMEFTNLO reweighting problem. KeyError: (((-3, 4), (-6, 6, 24)), 'V')

Asked by Reza Goldouzian on 2020-05-06

Dear Experts,

I am trying to generate ttW process with EFT vertices at NLO. I am going to include weights for various combination of EFT coupling in my sample. My process card is like

import model SMEFTatNLO_U2_2_U3_3_cG_4F_LO_UFO-NLO
define j = p
define p = 21 2 4 1 3 -2 -4 -1 -3 5 -5
define WW = w+ w-
generate p p > t t~ WW QCD=2 QED=1 NP=2 [QCD]
output ttW_SMEFTNLOQED1_v1 -nojpeg

everything works when I do reweighting at LO. But for NLO reweighting, I see the following error
KeyError : (((-3, 4), (-6, 6, 24)), 'V')

I do not know what is wrong in my NLO reweighting procedure.

Best regards,


reweight /afs/ -from_cards --multicore=create
Traceback (most recent call last):
  File "/afs/", line 1514, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/afs/", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/afs/", line 2142, in do_reweight
  File "/afs/", line 1660, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/afs/", line 1543, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/afs/", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/afs/", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/afs/", line 546, in do_launch
    weight = self.calculate_weight(event)
  File "/afs/", line 954, in calculate_weight
    return self.calculate_nlo_weight(event)
  File "/afs/", line 1028, in calculate_nlo_weight
    w_origV = self.calculate_matrix_element(cevent, 'V0', scale2=scale2)
  File "/afs/", line 1155, in calculate_matrix_element
    orig_order, Pdir, hel_dict = self.id_to_path[tag]
KeyError: (((-3, 4), (-6, 6, 24)), 'V')

Question information

English Edit question
MadGraph5_aMC@NLO Edit question
No assignee Edit question
Last query:
Last reply:

Can you create a bug report and attach to it
1) Your UFO model
2) the lhe file that you try to reweight
3) the reweight_card



Reza Goldouzian (rgoldouz) said : #2

Hi Olivier,
I just made a bug report with all attachements you asked for


Can you help with this problem?

Provide an answer of your own, or ask Reza Goldouzian for more information if necessary.

To post a message you must log in.