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");
auto node1 =
gGeoManager->GetTopVolume()->FindNode(
"ITSV_1");
gEve->AddGlobalElement(its);
auto node2 =
gGeoManager->GetTopVolume()->FindNode(
"OUTE_1");
gEve->AddGlobalElement(atlas);
auto v =
gEve->GetDefaultGLViewer();
v->CurrentCamera().RotateRad(-0.5, -2.4);
}
externTGeoManager * gGeoManager
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement.
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.