Revision 022486c0898d6a1f04c0ef2d13c0218422ef0b04 authored by Rene Brun on 01 October 2006, 16:53:42 UTC, committed by Rene Brun on 01 October 2006, 16:53:42 UTC
   // if the box has no fill style (ie fill style=0), the box contour is drawn
   // if the box has a fill style, the box contour is not drawn by default.
   // to force the contour to be drawn, specify option "l"


git-svn-id: http://root.cern.ch/svn/root/trunk@16391 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 3d66a9c
Raw File
geomAlice_itsv.C
//script drawing a detector geometry (here ITSV from 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_itsv() {
   const char *fname = "alice.root";
   if (!gSystem->AccessPathName(fname)) {
      TGeoManager::Import(fname);
   } else {
      printf("accessing %s file from http://root.cern.ch/files\n",fname);
      TGeoManager::Import(Form("http://root.cern.ch/files/%s",fname));
   }
   //gGeoManager->DefaultColors();
   gGeoManager->GetVolume("IT56")->InvisibleAll();
   gGeoManager->GetVolume("I018")->InvisibleAll();
   gGeoManager->GetVolume("I090")->InvisibleAll();
   gGeoManager->GetVolume("I093")->InvisibleAll();
   gGeoManager->GetVolume("I099")->InvisibleAll();
   gGeoManager->GetVolume("I200")->InvisibleAll();
   gGeoManager->GetVolume("IC01")->InvisibleAll();
   gGeoManager->GetVolume("IC02")->InvisibleAll();
   gGeoManager->GetVolume("I651")->InvisibleAll();
   gGeoManager->GetVolume("ICY1")->SetTransparency(90);
   gGeoManager->GetVolume("ICY2")->SetTransparency(90);
   gGeoManager->GetVolume("I215")->SetTransparency(50);
   gGeoManager->GetVolume("I212")->SetTransparency(50);
   gGeoManager->GetVolume("ITSV")->Draw("ogl");
   new TBrowser;
}
back to top