]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_gentle_muon.C
Adding explicit linking of GL GLU
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_gentle_muon.C
index a8458a0f83a411e4a9ec6b8828689861e7bebfc5..0118de78d1a250f8fc6b671612c2695ab6d693ad 100644 (file)
@@ -1,3 +1,16 @@
+// $Id$
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
+
+/// \ingroup evemacros
+/// \file geom_gentle_muon.C
+///
+/// \author B. Vulpescu, LPC; M. Tadel, CERN
+
 void DrawDeep(TEveGeoShape *gsre) {
   
   for (TEveElement::List_i i = gsre->BeginChildren(); i != gsre->EndChildren(); ++i) {
@@ -6,14 +19,14 @@ void DrawDeep(TEveGeoShape *gsre) {
     if (!lvl->HasChildren()) {
       lvl->SetRnrSelf(kTRUE);
       lvl->SetMainColor(3);
-      lvl->SetMainTransparency(50);
+      lvl->SetMainTransparency(80);
     }
     DrawDeep(lvl);
   }
 
 }
 
-TEveGeoShape* geom_gentle_muon() {
+TEveGeoShape* geom_gentle_muon(Bool_t updateScene = kTRUE) {
 
   TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo_muon.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle MUON");
@@ -25,6 +38,11 @@ TEveGeoShape* geom_gentle_muon() {
 
   DrawDeep(gsre);
 
+  if ( updateScene ) {
+    TGLViewer* v = gEve->GetDefaultGLViewer();
+    v->UpdateScene();
+  }
+
   return gsre;
 
 }