geodemo.C: GUI to draw the geometry shapes | Geometry package | geomAlice_itsv.C: script drawing a detector geometry (here ITSV from Alice) |
//script drawing a detector geometry (here ALICE) //by default the geometry is drawn using the GL viewer //Using the TBrowser, you can select other components //if the file containing the geometry is not found in the local //directory, it is automatically read from the ROOT web site. // Author: Rene Brun void geomAlice() { TGeoManager::Import("http://root.cern.ch/files/alice.root"); //gGeoManager->DefaultColors(); gGeoManager->GetVolume("HUFL")->InvisibleAll(); gGeoManager->GetVolume("HUWA")->InvisibleAll(); gGeoManager->GetVolume("ITSV")->InvisibleAll(); gGeoManager->GetVolume("ZDC")->InvisibleAll(); gGeoManager->GetVolume("ZEM")->InvisibleAll(); gGeoManager->GetVolume("XEN1")->InvisibleAll(); gGeoManager->GetVolume("HBW1")->InvisibleAll(); gGeoManager->GetVolume("HHW1")->InvisibleAll(); gGeoManager->GetVolume("HHW3")->InvisibleAll(); gGeoManager->GetVolume("HHW2")->InvisibleAll(); gGeoManager->GetVolume("HHF1")->InvisibleAll(); gGeoManager->GetVolume("HHF2")->InvisibleAll(); gGeoManager->GetVolume("HPIL")->InvisibleAll(); gGeoManager->GetVolume("HMBS")->InvisibleAll(); gGeoManager->GetVolume("HHC1")->InvisibleAll(); gGeoManager->GetVolume("L3MO")->InvisibleAll(); gGeoManager->GetVolume("DY1")->SetTransparency(90); gGeoManager->GetVolume("DY2")->SetTransparency(90); gGeoManager->GetVolume("DY11")->SetTransparency(70); gGeoManager->GetVolume("DY22")->SetTransparency(70); gGeoManager->GetVolume("ALIC")->Draw("ogl"); new TBrowser; } geomAlice.C:1 geomAlice.C:2 geomAlice.C:3 geomAlice.C:4 geomAlice.C:5 geomAlice.C:6 geomAlice.C:7 geomAlice.C:8 geomAlice.C:9 geomAlice.C:10 geomAlice.C:11 geomAlice.C:12 geomAlice.C:13 geomAlice.C:14 geomAlice.C:15 geomAlice.C:16 geomAlice.C:17 geomAlice.C:18 geomAlice.C:19 geomAlice.C:20 geomAlice.C:21 geomAlice.C:22 geomAlice.C:23 geomAlice.C:24 geomAlice.C:25 geomAlice.C:26 geomAlice.C:27 geomAlice.C:28 geomAlice.C:29 geomAlice.C:30 geomAlice.C:31 geomAlice.C:32 geomAlice.C:33 geomAlice.C:34 geomAlice.C:35 |
|