How it works¶
A diagram is built in layers: points joined by lines, a particle on each line, what happens at each point, what runs alongside, then where everything goes and how it is pictured. Each layer is one page in this section, in this order. Below, one diagram is built up a layer at a time. Point at a line of source to see what it draws.
1. Points and lines¶
Name the points and join them; feynjs places every point itself. Point at a line of source, or step through it with the arrows beside the diagram: what the line draws lights up, and the text beside the diagram says what it does.
Writing diagrams covers chains, panels and the switches that apply to a whole diagram.
2. A particle on each line¶
A particle's name sets the line's style, its arrow and its label in one word.
in: and out: can go: names starting with i come in and names starting with f go out.
Lines, particles and labels has every line style, label and note;
All particles and line types lists every name.
Or name the process, as MadGraph writes it, and feynjs works out the points and lines:
Processes covers decays, decay chains and production modes.
3. What happens at a point¶
A point can carry a vertex dot and its coupling, or be a blob, a proton beam, a nucleus, or a hadron's quarks.
Vertices, loops and hadrons also covers loops, boxes, penguins, mesons and spectator quarks.
4. What runs alongside¶
Colour can be drawn beside the quarks and gluons, and a final state can be drawn as what a detector sees: a jet, a large-R jet with what is inside it, missing energy.
See Colour flow and Detector objects.
5. How it's all laid out¶
An engine places the points, and one switch picks it; the rest of the source stays the same. Press a button to watch the same diagram move to another layout.
- Default balances forces that encode how physicists draw: decays fan out from their parent, the stages of a cascade grow shorter, nothing crosses.
- Grid snaps every line to a multiple of 45 degrees, as a diagram drawn on squared paper.
- Final plane lines up every outgoing particle on the right, as the final state an experiment sees.
Points given at (x, y) stay where they are put, and the rest settle round them.
Engines covers each engine and its settings.
6. Drawing the eye¶
Three marks point a reader at what matters: a pulse on a point or a line, a band for a particle that lives a while, and a brace grouping lines.
Drawing the eye covers pulses, lifetimes and revealing a diagram step by step; hadrons are in Vertices, loops and hadrons.
7. How it is pictured¶
The same diagram can be drawn as something else: the kinematics in the lab, a lattice, or for a nuclear process, the textbook picture of the reaction.
See Views.
The whole syntax, and complete diagrams¶
Syntax at a glance puts every part of the syntax on one page. Examples has complete diagrams by subject, from the Standard Model to supersymmetry, each with its source.