00001 //script drawing a detector geometry (here ALICE) 00002 //by default the geometry is drawn using the GL viewer 00003 //Using the TBrowser, you can select other components 00004 //if the file containing the geometry is not found in the local 00005 //directory, it is automatically read from the ROOT web site. 00006 // Author: Rene Brun 00007 00008 void geomAlice() 00009 { 00010 TGeoManager::Import("http://root.cern.ch/files/alice.root"); 00011 //gGeoManager->DefaultColors(); 00012 gGeoManager->GetVolume("HUFL")->InvisibleAll(); 00013 gGeoManager->GetVolume("HUWA")->InvisibleAll(); 00014 gGeoManager->GetVolume("ITSV")->InvisibleAll(); 00015 gGeoManager->GetVolume("ZDC")->InvisibleAll(); 00016 gGeoManager->GetVolume("ZEM")->InvisibleAll(); 00017 gGeoManager->GetVolume("XEN1")->InvisibleAll(); 00018 gGeoManager->GetVolume("HBW1")->InvisibleAll(); 00019 gGeoManager->GetVolume("HHW1")->InvisibleAll(); 00020 gGeoManager->GetVolume("HHW3")->InvisibleAll(); 00021 gGeoManager->GetVolume("HHW2")->InvisibleAll(); 00022 gGeoManager->GetVolume("HHF1")->InvisibleAll(); 00023 gGeoManager->GetVolume("HHF2")->InvisibleAll(); 00024 gGeoManager->GetVolume("HPIL")->InvisibleAll(); 00025 gGeoManager->GetVolume("HMBS")->InvisibleAll(); 00026 gGeoManager->GetVolume("HHC1")->InvisibleAll(); 00027 gGeoManager->GetVolume("L3MO")->InvisibleAll(); 00028 gGeoManager->GetVolume("DY1")->SetTransparency(90); 00029 gGeoManager->GetVolume("DY2")->SetTransparency(90); 00030 gGeoManager->GetVolume("DY11")->SetTransparency(70); 00031 gGeoManager->GetVolume("DY22")->SetTransparency(70); 00032 gGeoManager->GetVolume("ALIC")->Draw("ogl"); 00033 new TBrowser; 00034 }