ROOT
6.14/05
Reference Guide
tutorials
eve
geom_default.C File Reference
Tutorials
»
Event display tutorials
Detailed Description
Demonstrates usage of "Default" geometry alias.
void
geom_default()
{
TEveManager::Create
();
gEve
->
RegisterGeometryAlias
(
"Default"
,
"http://root.cern.ch/files/alice.root"
);
gGeoManager
=
gEve
->
GetDefaultGeometry
();
TGeoNode
* node1 =
gGeoManager
->
GetTopVolume
()->
FindNode
(
"ITSV_1"
);
TEveGeoTopNode
* its =
new
TEveGeoTopNode
(
gGeoManager
, node1);
gEve
->
AddGlobalElement
(its);
TGeoNode
* node2 =
gGeoManager
->
GetTopVolume
()->
FindNode
(
"TPC_M_1"
);
TEveGeoTopNode
* tpc =
new
TEveGeoTopNode
(
gGeoManager
, node2);
gEve
->
AddGlobalElement
(tpc);
gEve
->
Redraw3D
(
kTRUE
);
}
Author
Matevz Tadel
Definition in file
geom_default.C
.