Logo ROOT   6.07/09
Reference Guide
geom_alice_tpc.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_eve
3 /// Shows geometry of ALICE TPC.
4 ///
5 /// \image html eve_geom_alice_tpc.png
6 /// \macro_code
7 ///
8 /// \author Matevz Tadel
9 
10 void geom_alice_tpc()
11 {
13 
14  gGeoManager = gEve->GetGeometry("http://root.cern.ch/files/alice.root");
15 
16  TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("TPC_M_1");
17  TEveGeoTopNode* tpc = new TEveGeoTopNode(gGeoManager, node);
18  gEve->AddGlobalElement(tpc);
19 
21 }
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Definition: TEveManager.h:168
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
TGeoVolume * GetTopVolume() const
Definition: TGeoManager.h:497
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement...
Definition: TEveGeoNode.h:92
TGeoManager * GetGeometry(const TString &filename)
Get geometry with given filename.
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
R__EXTERN TGeoManager * gGeoManager
Definition: TGeoManager.h:554
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
Definition: TGeoNode.h:51
const Bool_t kTRUE
Definition: Rtypes.h:91
TGeoNode * FindNode(const char *name) const
search a daughter inside the list of nodes