ROOT
6.08/07
Reference Guide
tutorials
eve
geom_lhcb.C File Reference
Tutorials
»
Event display tutorials
Detailed Description
Shows CMS geometry.
void
geom_lhcb()
{
TEveManager::Create
();
TFile::SetCacheFileDir
(
"."
);
gGeoManager
=
gEve
->
GetGeometry
(
"http://root.cern.ch/files/lhcbfull.root"
);
gGeoManager
->
DefaultColors
();
TEveGeoTopNode
* tn =
new
TEveGeoTopNode
(
gGeoManager
,
gGeoManager
->
GetTopNode
());
tn->
SetVisLevel
(4);
gEve
->
AddGlobalElement
(tn);
gEve
->
FullRedraw3D
(
kTRUE
);
// EClipType not exported to CINT (see TGLUtil.h):
// 0 - no clip, 1 - clip plane, 2 - clip box
TGLViewer
*v =
gEve
->
GetDefaultGLViewer
();
v->
GetClipSet
()->
SetClipType
(
TGLClip::EType
(1));
v->
ColorSet
().
Background
().
SetColor
(
kMagenta
+4);
v->
SetGuideState
(
TGLUtil::kAxesEdge
,
kTRUE
,
kFALSE
, 0);
v->
RefreshPadEditor
(v);
v->
CurrentCamera
().
RotateRad
(-1.2, 0.5);
v->
DoDraw
();
}
Author
Matevz Tadel
Definition in file
geom_lhcb.C
.