Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
geom_default.C File Reference

Detailed Description

Demonstrates usage of "Default" geometry alias.

void geom_default()
{
gEve->RegisterGeometryAlias("Default", "http://root.cern/files/alice.root");
gGeoManager = gEve->GetDefaultGeometry();
TGeoNode *node1 = gGeoManager->GetTopVolume()->FindNode("ITSV_1");
gEve->AddGlobalElement(its);
TGeoNode *node2 = gGeoManager->GetTopVolume()->FindNode("TPC_M_1");
gEve->AddGlobalElement(tpc);
gEve->Redraw3D(kTRUE);
}
constexpr Bool_t kTRUE
Definition RtypesCore.h:107
externTEveManager * gEve
externTGeoManager * gGeoManager
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement.
Definition TEveGeoNode.h:90
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
Definition TGeoNode.h:39
Author
Matevz Tadel

Definition in file geom_default.C.