Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches

Detailed Description

Demonstrates usage of geometry aliases - merge ALICE ITS with ATLAS MUON.

void geom_alias()
{
gEve->RegisterGeometryAlias("ALICE", "http://root.cern/files/alice.root");
gEve->RegisterGeometryAlias("ATLAS", "http://root.cern/files/atlas.root");
gGeoManager = gEve->GetGeometryByAlias("ALICE");
auto node1 = gGeoManager->GetTopVolume()->FindNode("ITSV_1");
auto its = new TEveGeoTopNode(gGeoManager, node1);
gEve->AddGlobalElement(its);
gGeoManager = gEve->GetGeometryByAlias("ATLAS");
auto node2 = gGeoManager->GetTopVolume()->FindNode("OUTE_1");
auto atlas = new TEveGeoTopNode(gGeoManager, node2);
gEve->AddGlobalElement(atlas);
gEve->FullRedraw3D(kTRUE);
// EClipType not exported to CINT (see TGLUtil.h):
// 0 - no clip, 1 - clip plane, 2 - clip box
auto v = gEve->GetDefaultGLViewer();
v->GetClipSet()->SetClipType(TGLClip::EType(2));
v->RefreshPadEditor(v);
v->CurrentCamera().RotateRad(-0.5, -2.4);
v->DoDraw();
}
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.
Author
Matevz Tadel

Definition in file geom_alias.C.