formfactor python error: undefined reference to `p_'
I wanted to modify anomalous quartic coupling by a form factor so that:
a -> a/(1+aamass^
I found and tried to follow this link (Method1: Pure Python):
https:/
To fix MadGraph output errors, I had to do the following:
1. change "HeavTheta" to "theta_function" in "form_factors.py" second import statement
2. add "import function_library" at the top of "__init__.py"
3. "import formfactors as ForFac" to "import form_factors as ForFac" (with underscore, like the file name) in lorentz.py
I guess above is either due to a typo on the wiki, or some version difference in my environment (i5-3337U CPU, Ubuntu 14.04x64, MG5_aMC_v2_2_3, Python 2.7.6). Finally I got the following error:
MadGraph5Error: A compilation Error occurs ...
../
FF7_
FF7_
collect2: error: ld returned 1 exit status
make: *** [gensym] Error 1
= = = = = = = = = = = = = = = =
Here are some detail about my files and full error stack:
**1. Model: (generated using FeynRules 2.0 on Windows)
added two Lagrangians to SM Lagrangian
LaQ0 := Block[{
ExpandIndices
LaQc := Block[{
ExpandIndices
where F0, Fc are:
M$Parameters = {
F0 == {
ParameterType -> External,
BlockName -> ANOINPUTS,
Tex -> Subscript[f, 0],
Interaction
Value -> 2.,
Description -> "L_aQ0 coefficient"
},
Fc == {
ParameterType -> External,
BlockName -> ANOINPUTS,
Tex -> Subscript[f, 0],
Interaction
Value -> 2.,
Description -> "L_aQc coefficient"
},
**2. I wanted to modify F0 by the formfactor:
a -> a/(1+aamass^
in my form_factors.py:
AAA = FormFactor(name = 'AAA',
**3. Identifying the interactions I wanted to modify in vertices.py:
V_93 = Vertex(name = 'V_93',
color = [ '1' ],
"L.VVVV2", "L.VVVV3" are FC and SM couplings, so I changed "L.VVVV7" to "L.FF7"
**4. Lorentz structure associated to it in lorentz.py:
VVVV7 = Lorentz(name = 'VVVV7',
so besides "import form_factors as ForFac" at the top, I added:
FF7 = Lorentz(name = 'FF7',
**5. in MadGraph, after imporing the model, when launching the process
generate a a > w+ w- NP=2
(set lpp 2)
I got the error (dump from run_01_
#******
#* MadGraph5_
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.2.3 2015-02-10 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https:/
#* *
#******
#* *
#* Command File for MadEvent *
#* *
#* run as ./bin/madevent.py filename *
#* *
#******
generate_events run_01
Traceback (most recent call last):
File "/home/
return self.onecmd_
File "/home/
return func(arg, **opt)
File "/home/
postcmd=False)
File "/home/
stop = Cmd.onecmd_
File "/home/
return func(arg, **opt)
File "/home/
self.
File "/home/
return misc.compile(
File "/home/
raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /home/abdueni/
The compilation fails with the following output message:
gfortran -O -w -fbounds-check -fPIC -ffixed-
touch qmass.inc
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
../
FF7_
FF7_
collect2: error: ld returned 1 exit status
make: *** [gensym] Error 1
Please try to fix this compilations issue and retry.
Help might be found at https:/
If you think that this is a bug, you can report this at https:/
automatic_
cluster_
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Mamutjan
- Solved:
- Last query:
- Last reply: