{ "cells": [ { "cell_type": "markdown", "id": "585beddb", "metadata": {}, "source": [ "# quarks\n", "\n", "\n", "\n", "\n", "**Author:** Rene Brun \n", "This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Tuesday, May 19, 2026 at 08:37 PM." ] }, { "cell_type": "code", "execution_count": 1, "id": "852606a2", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:27.669321Z", "iopub.status.busy": "2026-05-19T20:37:27.669194Z", "iopub.status.idle": "2026-05-19T20:37:28.038902Z", "shell.execute_reply": "2026-05-19T20:37:28.037818Z" } }, "outputs": [], "source": [ "TCanvas *c1 = new TCanvas(\"c1\", \"c1\", 10, 10, 630, 760);\n", "c1->SetFillColor(kBlack);\n", "Int_t quarkColor = 50;\n", "Int_t leptonColor = 16;\n", "Int_t forceColor = 38;\n", "Int_t titleColor = kYellow;\n", "Int_t border = 8;\n", "\n", "TLatex *texf = new TLatex(0.90, 0.455, \"Force Carriers\");\n", "texf->SetTextColor(forceColor);\n", "texf->SetTextAlign(22);\n", "texf->SetTextSize(0.07);\n", "texf->SetTextAngle(90);\n", "texf->Draw();\n", "\n", "TLatex *texl = new TLatex(0.11, 0.288, \"Leptons\");\n", "texl->SetTextColor(leptonColor);\n", "texl->SetTextAlign(22);\n", "texl->SetTextSize(0.07);\n", "texl->SetTextAngle(90);\n", "texl->Draw();\n", "\n", "TLatex *texq = new TLatex(0.11, 0.624, \"Quarks\");\n", "texq->SetTextColor(quarkColor);\n", "texq->SetTextAlign(22);\n", "texq->SetTextSize(0.07);\n", "texq->SetTextAngle(90);\n", "texq->Draw();\n", "\n", "TLatex tex(0.5, 0.5, \"u\");\n", "tex.SetTextColor(titleColor);\n", "tex.SetTextFont(32);\n", "tex.SetTextAlign(22);\n", "tex.SetTextSize(0.14);\n", "tex.DrawLatex(0.5, 0.93, \"Elementary\");\n", "tex.SetTextSize(0.12);\n", "tex.DrawLatex(0.5, 0.84, \"Particles\");\n", "tex.SetTextSize(0.05);\n", "tex.DrawLatex(0.5, 0.067, \"Three Generations of Matter\");\n", "\n", "tex.SetTextColor(kBlack);\n", "tex.SetTextSize(0.8);" ] }, { "cell_type": "markdown", "id": "f2cbc880", "metadata": {}, "source": [ "Create main pad and its subdivisions" ] }, { "cell_type": "code", "execution_count": 2, "id": "b3a0fcae", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:28.040577Z", "iopub.status.busy": "2026-05-19T20:37:28.040453Z", "iopub.status.idle": "2026-05-19T20:37:28.274381Z", "shell.execute_reply": "2026-05-19T20:37:28.273695Z" } }, "outputs": [], "source": [ "TPad *pad = new TPad(\"pad\", \"pad\", 0.15, 0.11, 0.85, 0.79);\n", "pad->Draw();\n", "pad->cd();\n", "pad->Divide(4, 4, 0.0003, 0.0003);\n", "\n", "pad->cd(1);\n", "gPad->SetFillColor(quarkColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"u\");\n", "\n", "pad->cd(2);\n", "gPad->SetFillColor(quarkColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"c\");\n", "\n", "pad->cd(3);\n", "gPad->SetFillColor(quarkColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"t\");\n", "\n", "pad->cd(4);\n", "gPad->SetFillColor(forceColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .55, \"#gamma\");\n", "\n", "pad->cd(5);\n", "gPad->SetFillColor(quarkColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"d\");\n", "\n", "pad->cd(6);\n", "gPad->SetFillColor(quarkColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"s\");\n", "\n", "pad->cd(7);\n", "gPad->SetFillColor(quarkColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"b\");\n", "\n", "pad->cd(8);\n", "gPad->SetFillColor(forceColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .55, \"g\");\n", "\n", "pad->cd(9);\n", "gPad->SetFillColor(leptonColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"#nu_{e}\");\n", "\n", "pad->cd(10);\n", "gPad->SetFillColor(leptonColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"#nu_{#mu}\");\n", "\n", "pad->cd(11);\n", "gPad->SetFillColor(leptonColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"#nu_{#tau}\");\n", "\n", "pad->cd(12);\n", "gPad->SetFillColor(forceColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"Z\");\n", "\n", "pad->cd(13);\n", "gPad->SetFillColor(leptonColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"e\");\n", "\n", "pad->cd(14);\n", "gPad->SetFillColor(leptonColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .56, \"#mu\");\n", "\n", "pad->cd(15);\n", "gPad->SetFillColor(leptonColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"#tau\");\n", "\n", "pad->cd(16);\n", "gPad->SetFillColor(forceColor);\n", "gPad->SetBorderSize(border);\n", "tex.DrawLatex(.5, .5, \"W\");\n", "\n", "c1->cd();" ] }, { "cell_type": "markdown", "id": "14199328", "metadata": {}, "source": [ "Draw all canvases " ] }, { "cell_type": "code", "execution_count": 3, "id": "92cf5ba4", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:28.291401Z", "iopub.status.busy": "2026-05-19T20:37:28.291258Z", "iopub.status.idle": "2026-05-19T20:37:28.514136Z", "shell.execute_reply": "2026-05-19T20:37:28.510237Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "
\n", "
\n", "\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "gROOT->GetListOfCanvases()->Draw()" ] } ], "metadata": { "kernelspec": { "display_name": "ROOT C++", "language": "c++", "name": "root" }, "language_info": { "codemirror_mode": "text/x-c++src", "file_extension": ".C", "mimetype": " text/x-c++src", "name": "c++" } }, "nbformat": 4, "nbformat_minor": 5 }