]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_gentle_trd.C
Offline files disabled in online mode comletely. Problem with creation of Multi View...
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_gentle_trd.C
index 9635bfe31be84bf73e996513037b3ed3402c3895..3f7b0062949e299feba13725d381a39e8214661d 100644 (file)
@@ -7,6 +7,15 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TFile.h>
+#include <TGLViewer.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoShape.h>
+#include <TEveGeoShapeExtract.h>
+#endif
+
 TEveGeoShape* geom_gentle_trd()
 {
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo_trd.root");
@@ -15,6 +24,9 @@ TEveGeoShape* geom_gentle_trd()
   gEve->AddGlobalElement(gsre);
   f.Close();
 
+  const Int_t smInstalled[]={0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
+  const Int_t nInstalled = static_cast<Int_t>(sizeof(smInstalled)/sizeof(Int_t));
+  Int_t sm = 0;
   // Fix visibility, color and transparency
   gsre->SetRnrSelf(kFALSE);
   for (TEveElement::List_i i = gsre->BeginChildren(); i != gsre->EndChildren(); ++i)
@@ -24,11 +36,18 @@ TEveGeoShape* geom_gentle_trd()
     for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
     {
       TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(0);
+      lvl2->SetRnrSelf(kFALSE);
+      for(Int_t ism(nInstalled); ism--;){
+        if ( sm == smInstalled[ism] ){
+          lvl2->SetRnrSelf(kTRUE);
+          break; 
+        }
+      }
+      lvl2->SetMainColor(3);
       lvl2->SetMainTransparency(80);
+
+      ++sm;
     }
-    
   }
 
   return gsre;