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>
37 R__LOAD_LIBRARY(libphgeom.so)
38 R__LOAD_LIBRARY(libg4dst.so)
39 R__LOAD_LIBRARY(libfun4all.so)
48 TEveManager::Create();
66 if (!gROOT->GetListOfGeometries()->FindObject(gGeoManager))
67 gROOT->GetListOfGeometries()->Add(gGeoManager);
68 if (!gROOT->GetListOfBrowsables()->FindObject(gGeoManager))
69 gROOT->GetListOfBrowsables()->Add(gGeoManager);
72 TGeoNode *current = gGeoManager->GetCurrentNode();
77 for (
int igeom = 0; igeom < current->GetNdaughters(); igeom++)
79 TGeoNode *geo_node = (TGeoNode*) current->GetNodes()->UncheckedAt(igeom);
80 geo_node->GetVolume()->VisibleDaughters(kFALSE);
81 geo_node->GetVolume()->SetTransparency(2);
83 if (
string(geo_node->GetName()).find(
"PIPE") != string::npos)
84 geo_node->GetVolume()->SetTransparency(0);
86 TEveGeoTopNode* eve_node =
new TEveGeoTopNode(gGeoManager, current);
87 eve_node->SetVisLevel(6);
88 gEve->AddGlobalElement(eve_node);
89 gEve->FullRedraw3D(kTRUE);
93 TGLViewer *
v = gEve->GetDefaultGLViewer();
96 v->GetClipSet()->SetClipType( TGLClip::kClipPlane );
99 v->SetGuideState(TGLUtil::kAxesEdge, kTRUE, kFALSE, 0);
100 v->RefreshPadEditor(v);
102 v->CurrentCamera().RotateRad(-1.6,0.);