swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Raw File
Tip revision: 678133136fc214f5da9695c362eaf02a4bdff99e authored by Axel Naumann on 10 June 2020, 06:09:26 UTC
"Update ROOT version files to v6.20/06."
Tip revision: 6781331
geom_alice_tpc.C
/// \file
/// \ingroup tutorial_eve
/// Shows geometry of ALICE TPC.
///
/// \image html eve_geom_alice_tpc.png
/// \macro_code
///
/// \author Matevz Tadel

void geom_alice_tpc()
{
   TEveManager::Create();

   gGeoManager = gEve->GetGeometry("http://root.cern.ch/files/alice.root");

   auto node = gGeoManager->GetTopVolume()->FindNode("TPC_M_1");
   auto tpc  = new TEveGeoTopNode(gGeoManager, node);
   gEve->AddGlobalElement(tpc);

   gEve->Redraw3D(kTRUE);
}
back to top