Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 {
12  TEveManager::Create();
13 
14  gGeoManager = gEve->GetGeometry("http://root.cern.ch/files/alice.root");
15 
16  auto node = gGeoManager->GetTopVolume()->FindNode("TPC_M_1");
17  auto tpc = new TEveGeoTopNode(gGeoManager, node);
18  gEve->AddGlobalElement(tpc);
19 
20  gEve->Redraw3D(kTRUE);
21 }