\n",
"With ROOT you can visualize complex geometries, for example the ones of the LHC experiments or the one of a space station.\n",
"In this notebook we will read a geometry from a ROOT file and display it. The possibility to save and resume geometries persisted on disk is a powerful feature as it avoids all the complex calculations behind the construction of a geometry from scratch, e.g. from a CAD or XML file."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Info in : Reading geometry from file: ../data/spaceStation.root\n",
"Info in : Geometry loaded from file...\n",
"Info in : Top volume is top. Master volume is top\n",
"Info in : --- Maximum geometry depth set to 100\n",
"Info in : Voxelizing...\n",
"Info in : max level = 1, max placements = 645\n",
"Info in : 0 nodes/ 645 volume UID's in Space Station\n",
"Info in : ----------------modeler ready----------------\n"
]
}
],
"source": [
"TGeoManager::Import(\"../data/spaceStation.root\");"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We now get the top volume of the geometry to which all volumes are attached and draw it.\n",
"**The visualisation is interactive** Rotate and zoom it with your mouse!"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Info in : created default TCanvas with name c1\n"
]
},
{
"data": {
"text/html": [
"\n",
"