]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_gentle.C
From Pawel Debski.
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_gentle.C
index 9203a5e073868df69e05233dcac196748f3d6774..1a2ecec8c6a529d2d06103a40aca5c9bd18622d3 100644 (file)
@@ -7,11 +7,40 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
-TEveGeoShape* geom_gentle()
+TEveGeoShape* geom_gentle(Bool_t register_as_global=kTRUE)
 {
-  TFile f("$REVESYS/alice-data/gentle_geo.root");
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
-  TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse, 0);
+  TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  if (register_as_global)
+  {
+    gEve->AddGlobalElement(gsre);
+  }
+
+  return gsre;
+}
+
+TEveGeoShape* geom_gentle_rphi()
+{
+  // The resulting geometry is NOT added into the global scene!
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse);
+  f.Close();
+
+  return gsre;
+}
+
+TEveGeoShape* geom_gentle_rhoz()
+{
+  // The resulting geometry is NOT added into the global scene!
+
+  TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
+  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
+  TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse);
   f.Close();
 
   return gsre;