User Tools

Site Tools


latex:exampe_eta

Pseudorapidity. For more, please visit https://tikz.net/category/physics/particle-physics/.

theta-eta.tex
% Author: Izaak Neutelings (July 2017)
 
\documentclass{article}
\usepackage{amsmath} % for \text
\usepackage{tikz}
\tikzset{>=latex} % for LaTeX arrow head
\definecolor{mylightred}{RGB}{255,200,200}
\definecolor{mylightblue}{RGB}{172,188,63}
\definecolor{mylightgreen}{RGB}{150,220,150}
 
% split figures into pages
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{1pt}%
 
\begin{document}
 
 
 
\begin{tikzpicture}[scale=3]
 
  % limits
  \def\R{1.2}
 
  % axis labels
  \node[below=5pt,left=2pt] at (0,\R) {$y$};
  \node[left=5pt,below=2pt] at (\R,0) {$z$};
 
  % lines
  \foreach \t in {90,60,45,30,10,0}{
    \draw[->,black!60!red,thick]
      (0,0) -- ({\R*cos(\t)},{\R*sin(\t)})
      node[anchor=180+\t,black] {$\theta=\t$};
  }
 
\end{tikzpicture}
 
 
 
\begin{tikzpicture}[scale=3]
 
  % limits
  %\def\N{4}
  \def\R{1.2}
 
  % axis labels
  \node[scale=0.9,below=5pt,left=2pt] at (0,\R) {$y$};
  \node[scale=0.9,left=5pt,below=2pt] at (\R,0) {$z$};
 
  % lines
  \foreach \t/\e in {90/0,60/0.55,45/0.88,30/1.32,10/2.44,0/\infty}{
    \draw[->,black!60!red,thick] %samples=\N,variable=\x,domain=0:1]
      (0,0) -- ({\R*cos(\t)},{\R*sin(\t)})
      %plot({\x*\R*cos(\t)},{\x*\R*sin(\t)}) % alternative way with plotting a linear function
      node[anchor=180+\t,black] {$\eta=\e$};
    \node[fill=white,scale=0.8] at ({0.8*cos(\t)},{0.8*sin(\t)}) {$\theta=\t^\circ$};
  }
 
\end{tikzpicture}
 
 
 
\end{document}
latex/exampe_eta.txt · Last modified: 2021/10/02 08:55 by iwn