Logo ROOT  
Reference Guide
No Matches
geom_alias.C File Reference

Detailed Description

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

void geom_alias()
gEve->RegisterGeometryAlias("ALICE", "http://root.cern.ch/files/alice.root");
gEve->RegisterGeometryAlias("ATLAS", "http://root.cern.ch/files/atlas.root");
auto node1 = gGeoManager->GetTopVolume()->FindNode("ITSV_1");
auto its = new TEveGeoTopNode(gGeoManager, node1);
auto node2 = gGeoManager->GetTopVolume()->FindNode("OUTE_1");
auto atlas = new TEveGeoTopNode(gGeoManager, node2);
// EClipType not exported to CINT (see TGLUtil.h):
// 0 - no clip, 1 - clip plane, 2 - clip box
v->CurrentCamera().RotateRad(-0.5, -2.4);
const Bool_t kTRUE
Definition RtypesCore.h:91
R__EXTERN TEveManager * gEve
R__EXTERN TGeoManager * gGeoManager
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement.
Definition TEveGeoNode.h:90
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
TGeoManager * GetGeometryByAlias(const TString &alias)
Get geometry with given alias.
TGLViewer * GetDefaultGLViewer() const
Get TGLViewer of the default TEveViewer.
void RegisterGeometryAlias(const TString &alias, const TString &filename)
Register 'name' as an alias for geometry file 'filename'.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void FullRedraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Perform 3D redraw of all scenes and viewers.
void SetClipType(TGLClip::EType type)
Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox.
Definition TGLClip.cxx:580
TGLClipSet * GetClipSet() const
Definition TGLViewer.h:262
TGeoVolume * GetTopVolume() const
TGeoNode * FindNode(const char *name) const
search a daughter inside the list of nodes
Matevz Tadel

Definition in file geom_alias.C.