{ "cells": [ { "cell_type": "markdown", "id": "7bd126ab", "metadata": {}, "source": [ "# tree502_staff\n", "Create a plot of the data in `cernstaff.root`\n", "To create `cernstaff.root`, execute tutorial `$ROOTSYS/tutorials/io/tree/tree500_cernbuild.C`\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:20 PM." ] }, { "cell_type": "code", "execution_count": 1, "id": "7b1f732d", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:20:10.985271Z", "iopub.status.busy": "2026-05-19T20:20:10.985162Z", "iopub.status.idle": "2026-05-19T20:20:11.521403Z", "shell.execute_reply": "2026-05-19T20:20:11.520800Z" } }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Info in : Number of selected rows: 3354\n", "Info in : png file staff.C.png has been created\n" ] } ], "source": [ "auto f = TFile::Open(\"cernstaff.root\");\n", "auto T = f->Get(\"T\");\n", "T->Draw(\"Grade:Age:Cost:Division:Nation\", \"\", \"gl5d\");\n", "if (gPad)\n", " gPad->Print(\"staff.C.png\");" ] } ], "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 }