{ "cells": [ { "cell_type": "markdown", "id": "c62acddc", "metadata": {}, "source": [ "# event\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:36 PM." ] }, { "cell_type": "code", "execution_count": 1, "id": "8ef0dd3a", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:00.005582Z", "iopub.status.busy": "2026-05-19T20:37:00.005463Z", "iopub.status.idle": "2026-05-19T20:37:00.489562Z", "shell.execute_reply": "2026-05-19T20:37:00.488863Z" } }, "outputs": [], "source": [ "TCanvas *c1 = new TCanvas(\"c1\", \"ROOT Event description\", 700, 500);\n", "c1->Range(0, 0, 14, 15.5);\n", "TPaveText *event = new TPaveText(1, 13, 3, 15);\n", "event->SetFillColor(11);\n", "event->Draw();\n", "event->AddText(\"Event\");\n", "TLine *line = new TLine(1.1, 13, 1.1, 1.5);\n", "line->SetLineWidth(2);\n", "line->Draw();\n", "line->DrawLine(1.3, 13, 1.3, 3.5);\n", "line->DrawLine(1.5, 13, 1.5, 5.5);\n", "line->DrawLine(1.7, 13, 1.7, 7.5);\n", "line->DrawLine(1.9, 13, 1.9, 9.5);\n", "line->DrawLine(2.1, 13, 2.1, 11.5);\n", "TArrow *arrow = new TArrow(1.1, 1.5, 3.9, 1.5, 0.02, \"|>\");\n", "arrow->SetFillStyle(1001);\n", "arrow->SetFillColor(1);\n", "arrow->Draw();\n", "arrow->DrawArrow(1.3, 3.5, 3.9, 3.5, 0.02, \"|>\");\n", "arrow->DrawArrow(1.5, 5.5, 3.9, 5.5, 0.02, \"|>\");\n", "arrow->DrawArrow(1.7, 7.5, 3.9, 7.5, 0.02, \"|>\");\n", "arrow->DrawArrow(1.9, 9.5, 3.9, 9.5, 0.02, \"|>\");\n", "arrow->DrawArrow(2.1, 11.5, 3.9, 11.5, 0.02, \"|>\");\n", "TPaveText *p1 = new TPaveText(4, 1, 11, 2);\n", "p1->SetTextAlign(12);\n", "p1->SetFillColor(42);\n", "p1->AddText(\"1 Mbyte\");\n", "p1->Draw();\n", "TPaveText *p2 = new TPaveText(4, 3, 10, 4);\n", "p2->SetTextAlign(12);\n", "p2->SetFillColor(42);\n", "p2->AddText(\"100 Kbytes\");\n", "p2->Draw();\n", "TPaveText *p3 = new TPaveText(4, 5, 9, 6);\n", "p3->SetTextAlign(12);\n", "p3->SetFillColor(42);\n", "p3->AddText(\"10 Kbytes\");\n", "p3->Draw();\n", "TPaveText *p4 = new TPaveText(4, 7, 8, 8);\n", "p4->SetTextAlign(12);\n", "p4->SetFillColor(42);\n", "p4->AddText(\"1 Kbytes\");\n", "p4->Draw();\n", "TPaveText *p5 = new TPaveText(4, 9, 7, 10);\n", "p5->SetTextAlign(12);\n", "p5->SetFillColor(42);\n", "p5->AddText(\"100 bytes\");\n", "p5->Draw();\n", "TPaveText *p6 = new TPaveText(4, 11, 6, 12);\n", "p6->SetTextAlign(12);\n", "p6->SetFillColor(42);\n", "p6->AddText(\"10 bytes\");\n", "p6->Draw();\n", "TText text;\n", "text.SetTextAlign(12);\n", "text.SetTextSize(0.04);\n", "text.SetTextFont(72);\n", "text.DrawText(6.2, 11.5, \"Header:Event_flag\");\n", "text.DrawText(7.2, 9.5, \"Trigger_Info\");\n", "text.DrawText(8.2, 7.5, \"Muon_Detector: TOF\");\n", "text.DrawText(9.2, 5.5, \"Calorimeters\");\n", "text.DrawText(10.2, 3.5, \"Forward_Detectors\");\n", "text.DrawText(11.2, 1.5, \"TPCs\");" ] }, { "cell_type": "markdown", "id": "9df8cd6c", "metadata": {}, "source": [ "Draw all canvases " ] }, { "cell_type": "code", "execution_count": 2, "id": "ee43bcf4", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:00.491242Z", "iopub.status.busy": "2026-05-19T20:37:00.491117Z", "iopub.status.idle": "2026-05-19T20:37:00.761773Z", "shell.execute_reply": "2026-05-19T20:37:00.751351Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "
\n", "
\n", "\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%jsroot on\n", "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 }