{ "cells": [ { "cell_type": "markdown", "id": "48411dbb", "metadata": {}, "source": [ "# crown\n", "\n", "\n", "\n", "\n", "**Author:** Olivier Couet \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:36 PM." ] }, { "cell_type": "code", "execution_count": 1, "id": "7c85fd02", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:36:54.278414Z", "iopub.status.busy": "2026-05-19T20:36:54.278264Z", "iopub.status.idle": "2026-05-19T20:36:54.629044Z", "shell.execute_reply": "2026-05-19T20:36:54.628495Z" } }, "outputs": [], "source": [ "auto c1 = new TCanvas(\"c1\", \"c1\", 400, 400);\n", "auto cr1 = new TCrown(.5, .5, .3, .4);\n", "cr1->SetLineStyle(kDashed);\n", "cr1->SetLineWidth(4);\n", "cr1->Draw();\n", "auto cr2 = new TCrown(.5, .5, .2, .3, 45, 315);\n", "cr2->SetFillColor(38);\n", "cr2->SetFillStyle(3010);\n", "cr2->Draw();\n", "auto cr3 = new TCrown(.5, .5, .2, .3, -45, 45);\n", "cr3->SetFillColor(50);\n", "cr3->SetFillStyle(3025);\n", "cr3->Draw();\n", "auto cr4 = new TCrown(.5, .5, .0, .2);\n", "cr4->SetFillColor(4);\n", "cr4->SetFillStyle(3008);\n", "cr4->Draw();" ] }, { "cell_type": "markdown", "id": "3b688eb6", "metadata": {}, "source": [ "Draw all canvases " ] }, { "cell_type": "code", "execution_count": 2, "id": "9ab38199", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:36:54.638466Z", "iopub.status.busy": "2026-05-19T20:36:54.638324Z", "iopub.status.idle": "2026-05-19T20:36:54.848273Z", "shell.execute_reply": "2026-05-19T20:36:54.847233Z" } }, "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 }