void quarks()
{
tex.SetTextColor(titleColor);
tex.SetTextFont(32);
tex.SetTextAlign(22);
tex.SetTextSize(0.14);
tex.DrawLatex(0.5, 0.93, "Elementary");
tex.SetTextSize(0.12);
tex.DrawLatex(0.5, 0.84, "Particles");
tex.SetTextSize(0.05);
tex.DrawLatex(0.5, 0.067, "Three Generations of Matter");
tex.SetTextSize(0.8);
TPad *pad =
new TPad(
"pad",
"pad", 0.15, 0.11, 0.85, 0.79);
pad->
Divide(4, 4, 0.0003, 0.0003);
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "u");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "c");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "t");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .55, "#gamma");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "d");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "s");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "b");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .55, "g");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "#nu_{e}");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "#nu_{#mu}");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "#nu_{#tau}");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "Z");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "e");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .56, "#mu");
gPad->SetBorderSize(border);
tex.DrawLatex(.5, .5, "#tau");
gPad->SetBorderSize(border);
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).