ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
latex3.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_graphics
3
/// \notebook
4
/// \preview Example illustrating a TPaveText with Latex inside.
5
///
6
/// \macro_image
7
/// \macro_code
8
///
9
/// \author Rene Brun
10
11
void
latex3()
12
{
13
14
TCanvas
*
c1
=
new
TCanvas
(
"c1"
);
15
TPaveText
*
pt
=
new
TPaveText
(.05, .1, .95, .8);
16
17
pt
->AddText(
"#frac{2s}{#pi#alpha^{2}} #frac{d#sigma}{dcos#theta} "
18
"(e^{+}e^{-} #rightarrow f#bar{f} ) = #left| #frac{1}{1 - #Delta#alpha} "
19
"#right|^{2} (1+cos^{2}#theta)"
);
20
21
pt
->AddText(
"+ 4 Re #left{ #frac{2}{1 - #Delta#alpha} #chi(s) "
22
"#[]{#hat{g}_{#nu}^{e}#hat{g}_{#nu}^{f} "
23
"(1 + cos^{2}#theta) + 2 #hat{g}_{a}^{e}#hat{g}_{a}^{f} cos#theta) } #right}"
);
24
25
pt
->AddText(
"+ 16#left|#chi(s)#right|^{2} "
26
"#left[(#hat{g}_{a}^{e}^{2} + #hat{g}_{v}^{e}^{2})"
27
"(#hat{g}_{a}^{f}^{2} + #hat{g}_{v}^{f}^{2})(1+cos^{2}#theta)"
28
"+ 8 #hat{g}_{a}^{e} #hat{g}_{a}^{f} #hat{g}_{v}^{e}"
29
"#hat{g}_{v}^{f}cos#theta#right] "
);
30
31
pt
->SetLabel(
"Born equation"
);
32
pt
->Draw();
33
}
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TPaveText
Definition
TPaveText.h:21
pt
TPaveText * pt
Definition
entrylist_figure1.C:7
c1
return c1
Definition
legend1.C:41
tutorials
visualisation
graphics
latex3.C
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1