EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vc-viewer.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file vc-viewer.C
1 
2 void vc_viewer(const char *fname)
3 {
4  TEveManager::Create();
5 
6  gGeoManager = gEve->GetGeometry(fname);
7 
8  TEveGeoTopNode *world = new TEveGeoTopNode(gGeoManager, gGeoManager->GetTopNode());
9  // This is essential: want to see the top level objects only;
10  //world->SetVisLevel(1);
11  world->SetVisLevel(2);
12  gEve->AddGlobalElement(world);
13 
14  gEve->FullRedraw3D(kTRUE);
15 } // vc_viewer()