Evaluating ME using standalone MG code
Hello,
I am trying to produce and use standalone code for ME computation using MadGraph. For this I use the prescription from here: https:/
First, I generate the process as such:
import model SMEFTatNLO-
generate g g > l+ l- l+ l- /g QCD=4 QED=4 NP^2==4
output standalone gg4l_OpgSquared
This should produce the tree-level ggH process available with the dim-6 operators of SMEFTatNLO.
Then I do 'make allmatrix2py.so' and use the library for ME computations as such for a rough example:
import allmatrix2py
allmatrix2py.
def invert_momenta(p):
""" fortran/C-python do not order table in the same order"""
new_p = []
for i in range(len(p[0])): new_p.append(
for i, onep in enumerate(p):
for j, x in enumerate(onep):
return new_p
p =[[ 0.5000000E+03, 0.0000000E+00, 0.0000000E+00, 0.5000000E+03],
[0.5000000E+03, 0.0000000E+00, 0.0000000E+00, -0.5000000E+03],
[ 0.8855133E+02, -0.2210069E+02, 0.4008035E+02, -0.7580543E+02],
[ 0.3283294E+03, -0.1038496E+03, -0.3019338E+03, 0.7649492E+02],
[ 0.1523581E+03, -0.1058810E+03, -0.9770964E+02, 0.4954839E+02],
[ 0.4307611E+03, 0.2318313E+03, 0.3595630E+03, -0.5023788E+02]
]
p =invert_momenta(p)
nhel = -1 # means sum over all helicity
pdgs = [21,21,
scale2 = 0.0 #only used for loop matrix element. should be set to 0 for tree-level
alphas=0.13
ans = allmatrix2py.
print ans
Now, no matter the four momenta, the answer always seems to be 0.0.
Note that for the simple example of 'generate p p > t t~' I do get a decent answer. Also, this issue seems to only arise when trying to have a single python library for the full set of matrix-element. It works okay for each of the SubProcesses/
Is there a way to resolve this issue? We would prefer to have the code for the full set of SubProcesses if possible.
Thanks,
Jay Sandesara
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier Mattelaer
- Solved:
- Last query:
- Last reply: