geomAlice_itsv.C

Go to the documentation of this file.
00001 //script drawing a detector geometry (here ITSV from 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_itsv() {
00009    TGeoManager::Import("http://root.cern.ch/files/alice.root");
00010    //gGeoManager->DefaultColors();
00011    gGeoManager->GetVolume("IT56")->InvisibleAll();
00012    gGeoManager->GetVolume("I018")->InvisibleAll();
00013    gGeoManager->GetVolume("I090")->InvisibleAll();
00014    gGeoManager->GetVolume("I093")->InvisibleAll();
00015    gGeoManager->GetVolume("I099")->InvisibleAll();
00016    gGeoManager->GetVolume("I200")->InvisibleAll();
00017    gGeoManager->GetVolume("IC01")->InvisibleAll();
00018    gGeoManager->GetVolume("IC02")->InvisibleAll();
00019    gGeoManager->GetVolume("I651")->InvisibleAll();
00020    gGeoManager->GetVolume("ICY1")->SetTransparency(90);
00021    gGeoManager->GetVolume("ICY2")->SetTransparency(90);
00022    gGeoManager->GetVolume("I215")->SetTransparency(50);
00023    gGeoManager->GetVolume("I212")->SetTransparency(50);
00024    gGeoManager->GetVolume("ITSV")->Draw("ogl");
00025    new TBrowser;
00026 }

Generated on Tue Jul 5 15:44:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1