latex3.C

Go to the documentation of this file.
00001 void latex3() {
00002    //example illustrating a TPaveText with Latex inside
00003    //Author: Rene Brun
00004    
00005    TCanvas *c1 = new TCanvas("c1");
00006    TPaveText *pt = new TPaveText(.05,.1,.95,.8);
00007 
00008    pt->AddText("#frac{2s}{#pi#alpha^{2}}  #frac{d#sigma}{dcos#theta} \
00009    (e^{+}e^{-} #rightarrow f#bar{f} ) = #left| #frac{1}{1 - #Delta#alpha} \
00010    #right|^{2} (1+cos^{2}#theta)");
00011 
00012    pt->AddText("+ 4 Re #left{ #frac{2}{1 - #Delta#alpha} #chi(s) \
00013    #[]{#hat{g}_{#nu}^{e}#hat{g}_{#nu}^{f} \
00014 (1 + cos^{2}#theta) + 2 #hat{g}_{a}^{e}#hat{g}_{a}^{f} cos#theta) } #right}");
00015 
00016    pt->AddText("+ 16#left|#chi(s)#right|^{2}\
00017  #left[(#hat{g}_{a}^{e}^{2} + #hat{g}_{v}^{e}^{2})\
00018  (#hat{g}_{a}^{f}^{2} + #hat{g}_{v}^{f}^{2})(1+cos^{2}#theta)\
00019  + 8 #hat{g}_{a}^{e} #hat{g}_{a}^{f} #hat{g}_{v}^{e} \
00020  #hat{g}_{v}^{f}cos#theta#right] ");
00021 
00022    pt->SetLabel("Born equation");
00023    pt->Draw();
00024 }

Generated on Tue Jul 5 15:44:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1