Logo ROOT  
Reference Guide
geom_default.C File Reference

Detailed Description

Demonstrates usage of "Default" geometry alias.

void geom_default()
{
gEve->RegisterGeometryAlias("Default", "http://root.cern.ch/files/alice.root");
TGeoNode* node1 = gGeoManager->GetTopVolume()->FindNode("ITSV_1");
TGeoNode* node2 = gGeoManager->GetTopVolume()->FindNode("TPC_M_1");
}
const Bool_t kTRUE
Definition: RtypesCore.h:87
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
R__EXTERN TGeoManager * gGeoManager
Definition: TGeoManager.h:601
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement.
Definition: TEveGeoNode.h:93
TGeoManager * GetDefaultGeometry()
Get the default geometry.
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
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 Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Definition: TEveManager.h:168
TGeoVolume * GetTopVolume() const
Definition: TGeoManager.h:531
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
Definition: TGeoNode.h:41
TGeoNode * FindNode(const char *name) const
search a daughter inside the list of nodes
Author
Matevz Tadel

Definition in file geom_default.C.