How to extract the matrix element value for each generated phase space point?

Asked by Maksym Ovchynnikov

Consider for simplicity a process

ve e+ > vm mu+

The output file - .lhe - contains the phase space points. Could you please tell me how to extract the values of the matrix element squared as predicted by MadGraph for these points?

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Maksym Ovchynnikov (name-xxx) said :
#1

An update. I have found the manual, https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FAQ-General-4
However, something does not work. I tried to use the example python program. After making
import matrix2py
and trying to launch the .py code (the one below "Then you can link this from your python code. Here is an example:") I get an error:

Traceback (most recent call last):
  File "progr.py", line 1, in <module>
    import matrix2py
ImportError: /home/name/Downloads/mg5/bin/PROC_SA_Neutrinophilic-simple_UFO_0/SubProcesses/P1_vmnp_nnmupphi/matrix2py.so: undefined symbol: PyException_SetCause

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

This typically happens when you have a missmatch of python version between the f2py program and the python executable that you use.

Cheers,

Olivier

> On 22 Aug 2022, at 17:50, Maksym Ovchynnikov <email address hidden> wrote:
>
> Question #702848 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/702848
>
> Maksym Ovchynnikov gave more information on the question:
> An update. I have found the manual, https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FAQ-General-4
> However, something does not work. I tried to use the example python program. After making
> import matrix2py
> and trying to launch the .py code (the one below "Then you can link this from your python code. Here is an example:") I get an error:
>
> Traceback (most recent call last):
> File "progr.py", line 1, in <module>
> import matrix2py
> ImportError: /home/name/Downloads/mg5/bin/PROC_SA_Neutrinophilic-simple_UFO_0/SubProcesses/P1_vmnp_nnmupphi/matrix2py.so: undefined symbol: PyException_SetCause
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Maksym Ovchynnikov (name-xxx) said :
#3

Thanks, get it. Could you please also tell whether it is the Feynman matrix element squared, without the 1/(2*E)^2 factors?

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

No flux factor are included.

> On 23 Aug 2022, at 00:20, Maksym Ovchynnikov <email address hidden> wrote:
>
> Question #702848 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/702848
>
> Status: Answered => Open
>
> Maksym Ovchynnikov is still having a problem:
> Thanks, get it. Could you please also tell whether it is the Feynman
> matrix element squared, without the 1/(2*E)^2 factors?
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Maksym Ovchynnikov for more information if necessary.

To post a message you must log in.