Python

Asked by Sef S Altakarli

Greetings,

I would like to use Madgraph to find an expression for the scattering amplitude for Drell yan process as a python code. I am not sure if what I said is correct because what I understand is that the produced script is in fortran. Is there a way to get python script instead.

Thanks in advance.

Question information

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

Did you read the following thread:
https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FAQ-General-4

Cheers,

Olivier

Revision history for this message
Sef S Altakarli (saifsal90) said :
#2

Thanks alot Olivier. I went through the link. I still have some doubts. I wanted to do the C++ version for the drell yan so I used
    generate p p > e+ e-
   output standalone_cpp PATH.

This created 4 directories one of them is the subprocess directory. I went to that directory and I went to one of the processes then just typed make all and I got .h and .o files. So basically I am still stuck how can I get the final c++ file that reads the matrix elements.

sorry for the long message, and appreciate your response.

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

So you can go to the SubProcesses/P1_Sigma_sm_ddx_epem
then do
make check
and
./check
to have the value of the matrix element
you will get this
 -----------------------------------------------------------------------------
 Matrix element = 1.822156e-03 GeV^0
 Matrix element = 4.672391e-04 GeV^0
 -----------------------------------------------------------------------------
the first value is for d dbar > e+ e-
the second for
dbar d > e+ e-

The matrix element is the same for s s~ obviously.
For u u~ you need to go to the second directory.

Cheers,

Olivier

Revision history for this message
Sef S Altakarli (saifsal90) said :
#4

Thank you for the clarification.

On Sat, 31 Jul 2021 at 16:55, Olivier Mattelaer
<email address hidden> wrote:
>
> Your question #698181 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/698181
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> So you can go to the SubProcesses/P1_Sigma_sm_ddx_epem
> then do
> make check
> and
> ./check
> to have the value of the matrix element
> you will get this
> -----------------------------------------------------------------------------
> Matrix element = 1.822156e-03 GeV^0
> Matrix element = 4.672391e-04 GeV^0
> -----------------------------------------------------------------------------
> the first value is for d dbar > e+ e-
> the second for
> dbar d > e+ e-
>
> The matrix element is the same for s s~ obviously.
> For u u~ you need to go to the second directory.
>
> Cheers,
>
> Olivier
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/mg5amcnlo/+question/698181/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/mg5amcnlo/+question/698181
>
> You received this question notification because you asked the question.

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