20 #include <phgeom/PHGeomUtility.h>
22 #include <TEveManager.h>
23 #include <TGLViewer.h>
26 #include <TGeoManager.h>
28 #include <TGeoManager.h>
29 #include <TEveGeoNode.h>
47 TEveManager::Create();
65 if (!gROOT->GetListOfGeometries()->FindObject(gGeoManager))
66 gROOT->GetListOfGeometries()->Add(gGeoManager);
67 if (!gROOT->GetListOfBrowsables()->FindObject(gGeoManager))
68 gROOT->GetListOfBrowsables()->Add(gGeoManager);
71 TGeoNode *current = gGeoManager->GetCurrentNode();
76 for (
int igeom = 0; igeom < current->GetNdaughters(); igeom++)
78 TGeoNode *geo_node = (TGeoNode*) current->GetNodes()->UncheckedAt(igeom);
79 geo_node->GetVolume()->VisibleDaughters(kFALSE);
80 geo_node->GetVolume()->SetTransparency(2);
82 if (
string(geo_node->GetName()).find(
"PIPE") != string::npos)
83 geo_node->GetVolume()->SetTransparency(0);
85 TEveGeoTopNode* eve_node =
new TEveGeoTopNode(gGeoManager, current);
86 eve_node->SetVisLevel(6);
87 gEve->AddGlobalElement(eve_node);
88 gEve->FullRedraw3D(kTRUE);
92 TGLViewer *
v = gEve->GetDefaultGLViewer();
95 v->GetClipSet()->SetClipType( TGLClip::kClipPlane );
98 v->SetGuideState(TGLUtil::kAxesEdge, kTRUE, kFALSE, 0);
99 v->RefreshPadEditor(v);
101 v->CurrentCamera().RotateRad(-1.6,0.);