This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
latex:tikz:decay_planes [2018/06/23 13:08] – created iwn | latex:tikz:decay_planes [2021/10/02 08:53] (current) – iwn | ||
---|---|---|---|
Line 7: | Line 7: | ||
</ | </ | ||
- | Example of drawing decay planes with LaTeX using the TikZ package. | + | Example of drawing decay planes with LaTeX using the TikZ package. For more, please visit https:// |
<file python decay_planes.tex> | <file python decay_planes.tex> | ||
Line 41: | Line 41: | ||
% | % | ||
% | % | ||
- | |||
- | |||
- | |||
- | % FALSE PERSPECTIVE - Higgs to tau lepton pair | ||
- | \small | ||
- | \tdplotsetmaincoords{90}{90} % look straight at yz plane | ||
- | \begin{tikzpicture}[tdplot_main_coords, | ||
- | |||
- | \def\W{5} | ||
- | \def\w{2.5} | ||
- | \def\R{0.7} | ||
- | | ||
- | \coordinate (A) at (0,-\W, 0); | ||
- | \coordinate (O) at (0, 0, 0); | ||
- | \coordinate (B) at (0, \W, 0); | ||
- | |||
- | \coordinate (P1) at (0, 0, 2); | ||
- | \coordinate (P2) at (0, \W, 2); | ||
- | \coordinate (P3) at (0, \W, -2); | ||
- | \coordinate (P4) at (0, 0, -2); | ||
- | \coordinate (P0) at (0, \w, 0); | ||
- | \coordinate (F1) at (0,3.5, 1.5); | ||
- | \coordinate (F2) at (0, | ||
- | | ||
- | \coordinate (phi) at (0,0,1.3); | ||
- | | ||
- | \begin{scope}[xslant=-0.4, | ||
- | \coordinate (Q1) at (0, -\W, 2); | ||
- | \coordinate (Q2) at (0, | ||
- | \coordinate (Q3) at (0, | ||
- | \coordinate (Q4) at (0, -\W, -2); | ||
- | \coordinate (Q0) at (0, -\w, 0); | ||
- | \coordinate (F3) at (0,-3.3, 1.5); | ||
- | \coordinate (F4) at (0, | ||
- | \end{scope} | ||
- | |||
- | % plane 2 | ||
- | \draw[thick] | ||
- | (Q1) %node at (Q1) {Q1} | ||
- | -- (Q2) %node at (Q2) {Q2} | ||
- | -- (Q3) %node at (Q3) {Q3} | ||
- | -- (Q4) %node at (Q4) {Q4} | ||
- | -- (Q1); | ||
- | | ||
- | % plane 1 - filled white | ||
- | \fill[color=white, | ||
- | (P1) -- (P2) -- (P3) -- (P4) -- cycle; | ||
- | | ||
- | % plane 2 - dashes corner | ||
- | \draw[dashed, | ||
- | |||
- | % axis and arrows | ||
- | \draw[dashed, | ||
- | (A) -- (Q0); | ||
- | \draw[dashed, | ||
- | (B) -- (P0); | ||
- | \draw[thick, | ||
- | (O) -- node[red, | ||
- | \draw[thick, | ||
- | (O) -- node[red, | ||
- | \draw[thick, | ||
- | (P0) -- node[red, | ||
- | \draw[thick, | ||
- | (P0) -- node[red, | ||
- | \draw[thick, | ||
- | (Q0) -- node[red, | ||
- | \draw[thick, | ||
- | (Q0) -- node[red, | ||
- | | ||
- | % dots | ||
- | \fill[blue] (O) circle [radius=4pt]; | ||
- | \node [above=8pt, | ||
- | %\fill (P0) circle [radius=2pt]; | ||
- | %\fill (Q0) circle [radius=2pt]; | ||
- | | ||
- | % angles | ||
- | \draw[canvas is yz plane at x=0,rotate around z=20,->] | ||
- | (phi) arc [start angle=90, | ||
- | node at (phi) [right=0pt] {$\phi^*$}; | ||
- | \draw[canvas is yz plane at x=0,->] | ||
- | (P0)+(\R, | ||
- | node[midway, | ||
- | \draw[canvas is yz plane at x=0, | ||
- | (Q0)+(-\R, | ||
- | node[midway, | ||
- | |||
- | \end{tikzpicture} | ||
- | |||
- | |||
Line 179: | Line 90: | ||
| | ||
% plane 2 - dashes corner | % plane 2 - dashes corner | ||
- | \draw[dashed, | + | |
+ | \clip (P1) -- (P2) -- (P3) -- (P4) -- cycle; | ||
+ | | ||
+ | \end{scope} | ||
% axis and arrows | % axis and arrows | ||
Line 268: | Line 182: | ||
| | ||
% plane 2 - dashes corner | % plane 2 - dashes corner | ||
- | \draw[dashed, | + | |
+ | \clip (P1) -- (P2) -- (P3) -- (P4) -- cycle; | ||
+ | | ||
+ | \end{scope} | ||
% axis and arrows | % axis and arrows |