{
"cells": [
{
"cell_type": "markdown",
"id": "a1d24b11",
"metadata": {},
"source": [
"# staff\n",
"Create a plot of the data in `cernstaff.root`\n",
"To create `cernstaff.root`, execute tutorial `$ROOTSYS/tutorials/tree/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, March 19, 2024 at 07:21 PM."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "4d8a8f90",
"metadata": {
"collapsed": false,
"execution": {
"iopub.execute_input": "2024-03-19T19:21:50.835096Z",
"iopub.status.busy": "2024-03-19T19:21:50.834546Z",
"iopub.status.idle": "2024-03-19T19:21:52.384008Z",
"shell.execute_reply": "2024-03-19T19:21:52.383028Z"
}
},
"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",
"TTree *T = nullptr;\n",
"f->GetObject(\"T\",T);\n",
"T->Draw(\"Grade:Age:Cost:Division:Nation\",\"\",\"gl5d\");\n",
"if (gPad) 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
}