Feynman diagram (1) of the ADD model with graviton and photon
Source code name: "feynman_add1_graviton.py"
Programming language: Python
Topic: Physics/HEP
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.

``````

from java.awt import *
from jhplot import *
from jhplot.jadraw import Diagram

# position of the diagram on the canvas
Xpos=0.25
Ypos=0.25

c1=HPlotJa("Canvas",600,400,1,1,0)
# c1.setGTitle("Feynman Diagram objects", Color.blue)
c1.visible()
c1.showEditor(0)

# upper V shape
# start position x=0.05, y=0.1
gl=Diagram.FLine(Xpos,Ypos)
gl.setRelWH(-0.15,-0.2,"NDC")
gl.setStroke(2)

# lower
gl=Diagram.FLine(Xpos,Ypos+0.2)
gl.setRelWH(0.15,-0.2,"NDC")
gl.setStroke(2)

# horisontal gamma line
gl=Diagram.PLine(Xpos+0.15,Ypos+0.2)
gl.setRelWH(0.2,0.0,"NDC")
gl.setArrow(False)
gl.setStroke(2)

# start position x=0.05, y=0.1
gl=Diagram.PLine(Xpos+0.2+0.15,Ypos)
gl.setRelWH(-0.15,0.2,"NDC")
gl.setStroke(3)

# lower
gl=Diagram.PLine(Xpos+0.2+0.15,Ypos+0.2)
gl.setRelWH(0.15,0.2,"NDC")
gl.setStroke(2)

# show Higgs lines
gl=Diagram.Text("γ", Xpos+0.2+0.15+0.2,Ypos+0.2+0.22)
gl=Diagram.Text("G", Xpos+0.2+0.15+0.2,Ypos-0.2+0.22)