Reweighting aQGC in MG2.6

Asked by Robert Les on 2017-12-14

Hi MG experts,

I am attempting to generate the VBS process pp > z z j j using the aQGC model (http://feynrules.irmp.ucl.ac.be/wiki/AnomalousGaugeCoupling). When reweighing events using either MG2.6.0 or 2.6.1 the jobs end unexpectedly and I find the following error in the debug.log:

reweight run_02 -from_cards
Traceback (most recent call last):
  File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/bin/aQGC_LS012_nodecay_reweight_generate/bin/internal/extended_cmd.py", line 1467, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/bin/aQGC_LS012_nodecay_reweight_generate/bin/internal/extended_cmd.py", line 1421, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/bin/aQGC_LS012_nodecay_reweight_generate/bin/internal/common_run_interface.py", line 2035, in do_reweight
    reweight_cmd.import_command_file(path)
  File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/extended_cmd.py", line 1609, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/extended_cmd.py", line 1494, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/extended_cmd.py", line 1421, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/reweight_interface.py", line 480, in do_launch
    self.load_module()
  File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/reweight_interface.py", line 1758, in load_module
    if self.model.get_mass(int(pdg[i])) == self.model.get_mass(int(oldpdg[i])):
AttributeError: 'Model' object has no attribute 'get_mass'

I found as a naive workaround that commenting out this problematic line and adjusting the indent on the subsequent line solves this problem and the reweighing proceeds properly. Is there a better fix to this issue?

Regards,
Robert Les

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2017-12-18
Last query:
2017-12-18
Last reply:
2017-12-17

Hi,

Yes, it should be fine in 99% of the case. This is a line that check that everything is fine (i.e. it should always be True).
The problem is that we have two format for the model internally and looks like you have found a case where the type of model which does not have the function
to evaluate the mass is used.

Thanks I will secure this problem in next version of the code.

Cheers,

Olivier

> On Dec 14, 2017, at 22:57, Robert Les <email address hidden> wrote:
>
> New question #661784 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/661784
>
> Hi MG experts,
>
> I am attempting to generate the VBS process pp > z z j j using the aQGC model (http://feynrules.irmp.ucl.ac.be/wiki/AnomalousGaugeCoupling). When reweighing events using either MG2.6.0 or 2.6.1 the jobs end unexpectedly and I find the following error in the debug.log:
>
> reweight run_02 -from_cards
> Traceback (most recent call last):
> File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/bin/aQGC_LS012_nodecay_reweight_generate/bin/internal/extended_cmd.py", line 1467, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/bin/aQGC_LS012_nodecay_reweight_generate/bin/internal/extended_cmd.py", line 1421, in onecmd_orig
> return func(arg, **opt)
> File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/bin/aQGC_LS012_nodecay_reweight_generate/bin/internal/common_run_interface.py", line 2035, in do_reweight
> reweight_cmd.import_command_file(path)
> File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/extended_cmd.py", line 1609, in import_command_file
> self.exec_cmd(line, precmd=True)
> File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/extended_cmd.py", line 1494, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/extended_cmd.py", line 1421, in onecmd_orig
> return func(arg, **opt)
> File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/various/misc.py", line 100, in f_with_no_logger
> out = f(self, *args, **opt)
> File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/reweight_interface.py", line 480, in do_launch
> self.load_module()
> File "/afs/cern.ch/user/r/rles/public/MG5_aMC_v2_6_1/madgraph/interface/reweight_interface.py", line 1758, in load_module
> if self.model.get_mass(int(pdg[i])) == self.model.get_mass(int(oldpdg[i])):
> AttributeError: 'Model' object has no attribute 'get_mass'
>
> I found as a naive workaround that commenting out this problematic line and adjusting the indent on the subsequent line solves this problem and the reweighing proceeds properly. Is there a better fix to this issue?
>
> Regards,
> Robert Les
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Robert Les (robertles) said : #2

Thanks Olivier Mattelaer, that solved my question.