whizard is hosted by Hepforge, IPPP Durham

ExampleCascadeDecays: casc_dec1.tex

File casc_dec1.tex, 1.9 KB (added by ohl, 14 years ago)
Line 
1\documentclass[12pt]{article}
2
3\usepackage{gamelan}
4\usepackage{amsmath}
5
6\begin{document}
7\begin{gmlfile}
8
9\begin{gmlcode}
10  color col.default, col.excess;
11  col.default = 0.9white;
12  col.excess  = red;
13  boolean show_excess;
14  show_excess = false;
15\end{gmlcode}
16
17\section{Cascade Decays}
18$p + p \to u+ \bar u \to \bar{\tilde u}_1 + u + \tilde e_{12}^+ + e^-$
19
20\vspace*{\baselineskip}
21\vspace*{\baselineskip}
22\unitlength 1mm
23\begin{gmlgraph*}(130,90)[dat]
24  setup (linear,linear);
25  graphrange (#0.00, #0), (#600., ??);
26  fromfile "casc_dec.dat":
27    key "# Histogram:";
28    dx := #10.0;
29    for i withinblock:
30      get x, y, y.d, n, y.e;
31      plot (data) (x,y) hbar dx;
32    endfor
33    key "# Histogram:";
34    dx := #10.0;
35    for i withinblock:
36      get x, y, y.d, n, y.e;
37      plot (datb) (x,y) hbar dx;
38    endfor
39    key "# Histogram:";
40    dx := #10.0;
41    for i withinblock:
42      get x, y, y.d, n, y.e;
43      plot (datc) (x,y) hbar dx;
44    endfor
45    key "# Histogram:";
46    dx := #10.0;
47    for i withinblock:
48      get x, y, y.d, n, y.e;
49      plot (datd) (x,y) hbar dx;
50    endfor
51  endfrom
52  calculate data.base (datb) (x,#0);
53  calculate datb.base (datb) (x,#0);
54  calculate datc.base (datc) (x,#0);
55  calculate datd.base (datd) (x,#0);
56  pickup pencircle scaled 2pt;
57  draw piecewise cyclic from (datd, datd.base/\) withcolor blue withlegend  btex isotropic etex;
58  draw piecewise cyclic from (datc, datc.base/\) withcolor green withlegend btex diag. etex;
59  draw piecewise cyclic from (datb, datb.base/\) withcolor red withlegend  btex off-diag. etex;
60  draw piecewise cyclic from (data, data.base/\) withcolor black withlegend btex full etex;
61  label.ulft (<<\#evt/bin>>, out);
62  label.bot (<<$M_{\rm inv}(ue^-)$>>, out);
63  begingroup interim bboxmargin:=3mm;
64    label.urt(fdbox(thelegend) (withcolor white) ()(), on graph at (#410,#700));
65  endgroup;
66\end{gmlgraph*}
67\end{gmlfile}
68\end{document}