Logo ROOT  
Reference Guide
geom_alice_tpc.C File Reference

Detailed Description

Shows geometry of ALICE TPC.

void geom_alice_tpc()
{
gGeoManager = gEve->GetGeometry("http://root.cern.ch/files/alice.root");
auto node = gGeoManager->GetTopVolume()->FindNode("TPC_M_1");
auto tpc = new TEveGeoTopNode(gGeoManager, node);
}
const Bool_t kTRUE
Definition: RtypesCore.h:89
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
R__EXTERN TGeoManager * gGeoManager
Definition: TGeoManager.h:600
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement.
Definition: TEveGeoNode.h:93
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
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
TGeoManager * GetGeometry(const TString &filename)
Get geometry with given filename.
TGeoVolume * GetTopVolume() const
Definition: TGeoManager.h:530
TGeoNode * FindNode(const char *name) const
search a daughter inside the list of nodes
Author
Matevz Tadel

Definition in file geom_alice_tpc.C.