{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "23343b90",
   "metadata": {},
   "source": [
    "# geometry\n",
    "Geometry\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "**Author:** Wim Lavrijsen  \n",
    "<i><small>This notebook tutorial was automatically generated with <a href= \"https://github.com/root-project/root/blob/master/documentation/doxygen/converttonotebook.py\">ROOTBOOK-izer</a> from the macro found in the ROOT repository  on Tuesday, May 19, 2026 at 08:20 PM.</small></i>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "70fd5c0f",
   "metadata": {
    "collapsed": false,
    "execution": {
     "iopub.execute_input": "2026-05-19T20:20:15.347158Z",
     "iopub.status.busy": "2026-05-19T20:20:15.347039Z",
     "iopub.status.idle": "2026-05-19T20:20:16.297169Z",
     "shell.execute_reply": "2026-05-19T20:20:16.296425Z"
    }
   },
   "outputs": [],
   "source": [
    "import os\n",
    "import ROOT\n",
    "\n",
    "macrodir = os.path.join(str(ROOT.gROOT.GetTutorialDir()), 'legacy', 'g3d')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d668a1df",
   "metadata": {},
   "source": [
    "the na49.C file was generated, so no python conversion is provided"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "e439877c",
   "metadata": {
    "collapsed": false,
    "execution": {
     "iopub.execute_input": "2026-05-19T20:20:16.299497Z",
     "iopub.status.busy": "2026-05-19T20:20:16.299233Z",
     "iopub.status.idle": "2026-05-19T20:20:19.914533Z",
     "shell.execute_reply": "2026-05-19T20:20:19.913956Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "na49      : Real Time =   0.00 seconds Cpu Time =   0.00 seconds\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "geometry  : Real Time =   0.04 seconds Cpu Time =   0.04 seconds\n"
     ]
    }
   ],
   "source": [
    "ROOT.gROOT.Macro( ROOT.gSystem.UnixPathName( os.path.join( macrodir, 'na49.C' ) ) )\n",
    "\n",
    "exec(open(os.path.join( macrodir, 'na49visible.py')).read())\n",
    "exec(open(os.path.join( macrodir, 'na49geomfile.py')).read())"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
