KeyError in Madspin with sm-no_b_mass

Asked by Eric

Hi,

I am trying to calculate p p > Z with the Z decaying into neutrinos with MadSpin in the sm-no_b_mass model using MG5_v2.4.0, but (after applying the fix described in https://answers.launchpad.net/mg5amcnlo/+question/293826) MadSpin aborts with a KeyError

INFO: running MadSpin
INFO: detect independant decays
INFO: MadSpin: Estimate the maximum weight
INFO:
INFO: Estimating the maximum weight
INFO: *****************************
INFO: Probing the first 75 events
INFO: with 400 phase space points
INFO:
INFO: Event 1/75 : current time: 16h54
INFO: Event 6/75 : 0.11s
INFO: Event 11/75 : 0.21s
Command "generate_events " interrupted with error:
KeyError : ((-5, 5), (23,))

I think this is the same problem as reported in https://answers.launchpad.net/mg5amcnlo/+question/270563 and which was due to a bug that was fixed in version 2.3.2.
Could it be that you reintroduced this bug?

I was able to solve my problem in an evil way: I copyed the MadSpin folder from MG_v2.3.3 into the 2.4.0 folder. Is there a better way to solve it?

Cheers,

Eric

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
Best Olivier Mattelaer (olivier-mattelaer) said :
#1

Thanks for the notice.

Here is a patch:

=== modified file 'MadSpin/interface_madspin.py'
--- MadSpin/interface_madspin.py 2016-05-18 14:36:57 +0000
+++ MadSpin/interface_madspin.py 2016-05-20 09:56:18 +0000
@@ -460,7 +460,7 @@
         """ """

         try:
- self.mg5cmd.do_define(line)
+ self.mg5cmd.exec_cmd('define %s' % line)
         except:
             #cleaning if the error is recover later
             key = line.split()[0]

Cheers,

Olivier

> On May 19, 2016, at 16:22, Eric <email address hidden> wrote:
>
> New question #293944 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/293944
>
> Hi,
>
> I am trying to calculate p p > Z with the Z decaying into neutrinos with MadSpin in the sm-no_b_mass model using MG5_v2.4.0, but (after applying the fix described in https://answers.launchpad.net/mg5amcnlo/+question/293826) MadSpin aborts with a KeyError
>
> INFO: running MadSpin
> INFO: detect independant decays
> INFO: MadSpin: Estimate the maximum weight
> INFO:
> INFO: Estimating the maximum weight
> INFO: *****************************
> INFO: Probing the first 75 events
> INFO: with 400 phase space points
> INFO:
> INFO: Event 1/75 : current time: 16h54
> INFO: Event 6/75 : 0.11s
> INFO: Event 11/75 : 0.21s
> Command "generate_events " interrupted with error:
> KeyError : ((-5, 5), (23,))
>
> I think this is the same problem as reported in https://answers.launchpad.net/mg5amcnlo/+question/270563 and which was due to a bug that was fixed in version 2.3.2.
> Could it be that you reintroduced this bug?
>
> I was able to solve my problem in an evil way: I copyed the MadSpin folder from MG_v2.3.3 into the 2.4.0 folder. Is there a better way to solve it?
>
> Cheers,
>
> Eric
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Eric (e-r-i-c) said :
#2

Thanks Olivier Mattelaer, that solved my question.