-
Notifications
You must be signed in to change notification settings - Fork 3
/
3d-physics-jet-cones+3d+physics.tex
110 lines (97 loc) · 2.65 KB
/
3d-physics-jet-cones+3d+physics.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
% https://wiki.physik.uzh.ch/cms/latex:tikz:jet_cones
\documentclass{standalone}
\usepackage{amsmath} % for \dfrac
\usepackage{tikz}
\usepackage{tikz-3dplot}
\tikzset{>=latex} % for LaTeX arrow head
\usetikzlibrary{decorations.pathmorphing} % for snake
% colors
\definecolor{mylightred}{RGB}{255,200,200}
\definecolor{myblue}{RGB}{172,188,63}
\definecolor{mylightgreen}{RGB}{150,220,150}
% split figures into pages
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{1pt}%
% draw two cones
\begin{document}
% BOOSTED TAU
\begin{tikzpicture}
% AK8 variables
\def\x{2.4}
\def\y{3.5}
\def\R{\x+0.02}
\def\yc{\y+0.08}
\def\e{0.6}
% AK8 cone
\shade[right color=white,left color=blue,opacity=0.2]
(-\x,\y) -- (-\x,\yc) arc (180:360:{\R} and \e) -- (\x,\y) -- (0,0) -- cycle;
%\shade[right color=white,left color=blue,opacity=0.2]
%(0,\yc) circle ({\R} and \e);
%(-\x,\yc) -- ( \x,\yc) arc ( -2:182:{\R} and \e) -- (\x,\yc) -- (0,0) -- cycle;
\draw[fill=blue,opacity=0.2]
(0,\yc) circle ({\R} and \e);
\draw
(-\x,\y) -- (0,0) -- (\x,\y);
\draw
(0,\yc) circle ({\R} and \e);
% AK4 variables
\def\x{1.0}
\def\y{4.0}
\def\R{\x+0.005}
\def\yc{\y+0.04}
\def\e{0.4}
% AK4 cone 1
\begin{scope}[rotate=12]
\shade[right color=white,left color=green,opacity=0.3]
(-\x,\yc) -- (-\x,\yc) arc (180:360:{\R} and \e) -- (\x,\yc) -- (0,0) -- cycle;
\draw[fill=green,opacity=0.2]
(0,\yc) circle ({\R} and \e);
\draw
(-\x,\y) -- (0,0) -- (\x,\y);
\draw
(0,\yc) circle ({\R} and \e);
\end{scope}
% AK4 cone 2
\begin{scope}[rotate=-10]
\shade[right color=white,left color=red,opacity=0.3]
(-\x,\yc) -- (-\x,\yc) arc (180:360:{\R} and \e) -- (\x,\yc) -- (0,0) -- cycle;
\draw[fill=red,opacity=0.2]
(0,\yc) circle ({\R} and \e);
\draw
(-\x,\y) -- (0,0) -- (\x,\y);
\draw
(0,\yc) circle ({\R} and \e);
\end{scope}
\end{tikzpicture}
% TikZ code
% 2D CONE
\begin{tikzpicture}%,scale=0.85
% cone variables
\def\x{2.0}
\def\y{4.0}
\def\R{\x}
\def\yc{\y+0.02}
\def\e{0.4}
% cone shades + frame
\shade[right color=white,left color=mylightgreen,opacity=0.3]
(-\x,\yc) -- (-2,4) arc (180:360:{\R} and \e) -- (\x,\yc) -- (0,0) -- cycle;
\draw[fill=green,opacity=0.2]
(0,\yc) circle ({\R} and \e);
\draw
(-\x,\y) -- (0,0) -- (\x,\y);
\draw
(0,\yc) circle ({\R} and \e);
% tracks
\draw[thick]
(0,0) arc (320:360:-3 and 6.0); %node[above] {1};
\draw[thick]
(0,0) arc (-70: 0:0.8 and 3.5); %node[above] {2};
\draw[thick]
(0,0) arc ( 0: 70:0.9 and 4.5); %node[above] {3};
\draw[thick]
(0,0) arc (180:140:2 and 6.0); %node[above] {4};
\draw[thick,dashed]
(0,0) -- (1,4.6);
\end{tikzpicture}
\end{document}