]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_gentle_default.C
From Pawel Debski.
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_gentle_default.C
diff --git a/EVE/alice-macros/geom_gentle_default.C b/EVE/alice-macros/geom_gentle_default.C
new file mode 100644 (file)
index 0000000..06c82e3
--- /dev/null
@@ -0,0 +1,32 @@
+void geom_gentle_default(Bool_t register_as_global=kTRUE)
+{
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  if (register_as_global)
+  {
+    gEve->AddGlobalElement(gsre1);
+  }
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  TEveElement* top = gEve->GetCurrentEvent();
+
+  AliEveMultiView *mv = AliEveMultiView::Instance();
+
+  mv->InitGeomGentle(gsre1, gsre2, gsre3);
+
+  gEve->FullRedraw3D(kTRUE, kTRUE);
+
+}