Logo ROOT   6.14/05
Reference Guide
geom_cms.C File Reference

Detailed Description

Shows CMS geometry.

eve_geom_cms.png
void geom_cms()
{
gGeoManager = gEve->GetGeometry("http://root.cern.ch/files/cms.root");
TEveGeoTopNode* trk = new TEveGeoTopNode(gGeoManager, top->FindNode("TRAK_1"));
trk->SetVisLevel(6);
TEveGeoTopNode* calo = new TEveGeoTopNode(gGeoManager, top->FindNode("CALO_1"));
calo->SetVisLevel(3);
TEveGeoTopNode* muon = new TEveGeoTopNode(gGeoManager, top->FindNode("MUON_1"));
muon->SetVisLevel(4);
// EClipType not exported to CINT (see TGLUtil.h):
// 0 - no clip, 1 - clip plane, 2 - clip box
v->CurrentCamera().RotateRad(-1.2, 0.5);
v->DoDraw();
}
Author
Matevz Tadel

Definition in file geom_cms.C.