Feynman diagram (1) of the ADD model with graviton and photon
Source code name: "feynman_add1_graviton.py"
Programming language: Python
Topic: Physics/HEP
DMelt Version 1. Last modified: 12/05/2015. License: Free
https://datamelt.org/code/cache/feynman_add1_graviton_2344.py
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)
c1.add(gl)

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

# 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)
c1.add(gl)

# 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)
c1.add(gl)

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

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

# show Higgs lines
gl=Diagram.Text("q", Xpos-0.1,Ypos+0.2+0.22)
c1.add(gl)
gl=Diagram.Text("#bar{q}", Xpos-0.1,Ypos-0.2+0.22)
c1.add(gl)


c1.update()
# c1.export("add1_diagram.eps")