14 Int_t quarkColor = 50;
15 Int_t leptonColor = 16;
16 Int_t forceColor = 38;
39 tex.SetTextColor(titleColor); tex.SetTextFont(32);
41 tex.SetTextSize(0.14);
42 tex.DrawLatex(0.5,0.93,
"Elementary");
43 tex.SetTextSize(0.12);
44 tex.DrawLatex(0.5,0.84,
"Particles");
45 tex.SetTextSize(0.05);
46 tex.DrawLatex(0.5,0.067,
"Three Generations of Matter");
48 tex.SetTextColor(
kBlack); tex.SetTextSize(0.8);
51 TPad *pad =
new TPad(
"pad",
"pad",0.15,0.11,0.85,0.79);
54 pad->
Divide(4,4,0.0003,0.0003);
56 pad->
cd(1);
gPad->SetFillColor(quarkColor);
57 gPad->SetBorderSize(border);
58 tex.DrawLatex(.5,.5,
"u");
60 pad->
cd(2);
gPad->SetFillColor(quarkColor);
61 gPad->SetBorderSize(border);
62 tex.DrawLatex(.5,.5,
"c");
64 pad->
cd(3);
gPad->SetFillColor(quarkColor);
65 gPad->SetBorderSize(border);
66 tex.DrawLatex(.5,.5,
"t");
68 pad->
cd(4);
gPad->SetFillColor(forceColor);
69 gPad->SetBorderSize(border);
70 tex.DrawLatex(.5,.55,
"#gamma");
72 pad->
cd(5);
gPad->SetFillColor(quarkColor);
73 gPad->SetBorderSize(border);
74 tex.DrawLatex(.5,.5,
"d");
76 pad->
cd(6);
gPad->SetFillColor(quarkColor);
77 gPad->SetBorderSize(border);
78 tex.DrawLatex(.5,.5,
"s");
80 pad->
cd(7);
gPad->SetFillColor(quarkColor);
81 gPad->SetBorderSize(border);
82 tex.DrawLatex(.5,.5,
"b");
84 pad->
cd(8);
gPad->SetFillColor(forceColor);
85 gPad->SetBorderSize(border);
86 tex.DrawLatex(.5,.55,
"g");
88 pad->
cd(9);
gPad->SetFillColor(leptonColor);
89 gPad->SetBorderSize(border);
90 tex.DrawLatex(.5,.5,
"#nu_{e}");
92 pad->
cd(10);
gPad->SetFillColor(leptonColor);
93 gPad->SetBorderSize(border);
94 tex.DrawLatex(.5,.5,
"#nu_{#mu}");
96 pad->
cd(11);
gPad->SetFillColor(leptonColor);
97 gPad->SetBorderSize(border);
98 tex.DrawLatex(.5,.5,
"#nu_{#tau}");
100 pad->
cd(12);
gPad->SetFillColor(forceColor);
101 gPad->SetBorderSize(border);
102 tex.DrawLatex(.5,.5,
"Z");
104 pad->
cd(13);
gPad->SetFillColor(leptonColor);
105 gPad->SetBorderSize(border);
106 tex.DrawLatex(.5,.5,
"e");
108 pad->
cd(14);
gPad->SetFillColor(leptonColor);
109 gPad->SetBorderSize(border);
110 tex.DrawLatex(.5,.56,
"#mu");
112 pad->
cd(15);
gPad->SetFillColor(leptonColor);
113 gPad->SetBorderSize(border);
114 tex.DrawLatex(.5,.5,
"#tau");
116 pad->
cd(16);
gPad->SetFillColor(forceColor);
117 gPad->SetBorderSize(border);
118 tex.DrawLatex(.5,.5,
"W");
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetTextAngle(Float_t tangle=0)
Set the text angle.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
To draw Mathematical Formula.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
The most important graphics class in the ROOT system.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.