15 Int_t quarkColor = 50;
16 Int_t leptonColor = 16;
17 Int_t forceColor = 38;
21 TLatex *texf =
new TLatex(0.90, 0.455,
"Force Carriers");
43 tex.SetTextColor(titleColor);
46 tex.SetTextSize(0.14);
47 tex.DrawLatex(0.5, 0.93,
"Elementary");
48 tex.SetTextSize(0.12);
49 tex.DrawLatex(0.5, 0.84,
"Particles");
50 tex.SetTextSize(0.05);
51 tex.DrawLatex(0.5, 0.067,
"Three Generations of Matter");
57 TPad *pad =
new TPad(
"pad",
"pad", 0.15, 0.11, 0.85, 0.79);
60 pad->
Divide(4, 4, 0.0003, 0.0003);
64 gPad->SetBorderSize(border);
65 tex.DrawLatex(.5, .5,
"u");
69 gPad->SetBorderSize(border);
70 tex.DrawLatex(.5, .5,
"c");
74 gPad->SetBorderSize(border);
75 tex.DrawLatex(.5, .5,
"t");
79 gPad->SetBorderSize(border);
80 tex.DrawLatex(.5, .55,
"#gamma");
84 gPad->SetBorderSize(border);
85 tex.DrawLatex(.5, .5,
"d");
89 gPad->SetBorderSize(border);
90 tex.DrawLatex(.5, .5,
"s");
94 gPad->SetBorderSize(border);
95 tex.DrawLatex(.5, .5,
"b");
99 gPad->SetBorderSize(border);
100 tex.DrawLatex(.5, .55,
"g");
104 gPad->SetBorderSize(border);
105 tex.DrawLatex(.5, .5,
"#nu_{e}");
109 gPad->SetBorderSize(border);
110 tex.DrawLatex(.5, .5,
"#nu_{#mu}");
114 gPad->SetBorderSize(border);
115 tex.DrawLatex(.5, .5,
"#nu_{#tau}");
119 gPad->SetBorderSize(border);
120 tex.DrawLatex(.5, .5,
"Z");
124 gPad->SetBorderSize(border);
125 tex.DrawLatex(.5, .5,
"e");
129 gPad->SetBorderSize(border);
130 tex.DrawLatex(.5, .56,
"#mu");
134 gPad->SetBorderSize(border);
135 tex.DrawLatex(.5, .5,
"#tau");
139 gPad->SetBorderSize(border);
140 tex.DrawLatex(.5, .5,
"W");
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
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.
void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override
Automatic pad generation by division.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).