]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_gentle_trd.C
remove ntuples
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_gentle_trd.C
index efbe1bfcc2e313e1d328628f7aac2c4c82a0fa4f..b4f3b3e910d4cc249513dfbcf0c9a5de2ce61386 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: geom_gentle.C 24242 2008-03-02 02:23:52Z mtadel $
+// $Id$
 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
 
 /**************************************************************************
@@ -9,12 +9,14 @@
 
 TEveGeoShape* geom_gentle_trd()
 {
-  TFile f("$REVESYS/alice-data/gentle_geo_trd.root");
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo_trd.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle TRD");
   TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse);
   gEve->AddGlobalElement(gsre);
   f.Close();
 
+  Int_t sm = 0;
+
   // Fix visibility, color and transparency
   gsre->SetRnrSelf(kFALSE);
   for (TEveElement::List_i i = gsre->BeginChildren(); i != gsre->EndChildren(); ++i)
@@ -24,9 +26,15 @@ TEveGeoShape* geom_gentle_trd()
     for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
     {
       TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
+      if ( sm == 0 || sm == 1 || sm == 7 || sm == 8 || sm == 9 || sm == 10 || sm == 17 )
+       lvl2->SetRnrSelf(kTRUE);
+      else 
+       lvl2->SetRnrSelf(kFALSE);       
+
       lvl2->SetMainColor(3);
       lvl2->SetMainTransparency(80);
+
+      ++sm;
     }
     
   }