]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_gentle_transparentlight.C
Coverity
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_gentle_transparentlight.C
index e1732c881427e1c770df8810739721788a92e455..44d32473c9fbcdd94d5e5f7dd98a93043cfdf9e8 100644 (file)
@@ -72,7 +72,7 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
   m++;
 
   TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
-  tpc2->SetMainColor(kGray);
+  tpc2->SetRnrSelf(kTRUE);
   tpc2->SetMainColor(1);
   tpc2->SetMainTransparency(80);
   m++;
@@ -89,15 +89,18 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
 
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
+  TEveElement::List_i j = lvl1->BeginChildren();
 
-  for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
-    {
-      TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
-      lvl2->SetRnrSelf(kTRUE);
-      lvl2->SetMainColor(1);
-      lvl2->SetMainTransparency(80);
+  TEveGeoShape* trd1 = (TEveGeoShape*) *j;
+  trd1->SetRnrSelf(kTRUE);
+  trd1->SetMainColor(1);
+  trd1->SetMainTransparency(80);
+  j++;
 
-    }
+  TEveGeoShape* tof1 = (TEveGeoShape*) *j;
+  tof1->SetRnrSelf(kTRUE);
+  tof1->SetMainColor(1);
+  tof1->SetMainTransparency(80);
 
 //PHOS
 
@@ -170,7 +173,6 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
 //TPC
 
   i++;
-  i++;
 
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
@@ -186,6 +188,7 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
 //PHOS
 
   i++;
+  i++;
 
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
@@ -251,7 +254,6 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
 //TPC
 
   i++;
-  i++;
 
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);
@@ -268,7 +270,8 @@ void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
 //PHOS
 
   i++;
-
+  i++;
   TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
   lvl1->SetRnrSelf(kFALSE);