Replace the default geometry for geometry visualization with the
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Dec 2008 13:05:50 +0000 (13:05 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Dec 2008 13:05:50 +0000 (13:05 +0000)
latest one as produced by test/ppbench/Config.C - this also includes ZDC.

Add macro for showing ZDC geometry

EVE/alice-data/alice_fullgeo.root
EVE/alice-macros/geom_zdc.C [new file with mode: 0644]

index 8103766..ef9b26d 100644 (file)
Binary files a/EVE/alice-data/alice_fullgeo.root and b/EVE/alice-data/alice_fullgeo.root differ
diff --git a/EVE/alice-macros/geom_zdc.C b/EVE/alice-macros/geom_zdc.C
new file mode 100644 (file)
index 0000000..aca7e5a
--- /dev/null
@@ -0,0 +1,31 @@
+// $Id: geom_t0.C 27052 2008-07-02 17:56:46Z mtadel $
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
+
+void geom_zdc()
+{
+  gGeoManager = gEve->GetDefaultGeometry();
+
+  TEveElementList* list = new TEveElementList("ZDC");
+  gEve->AddGlobalElement(list);
+
+  TGeoNode* node;
+  TEveGeoTopNode* re;
+
+  node = gGeoManager->GetTopVolume()->FindNode("ZDCA_1");
+  re = new TEveGeoTopNode(gGeoManager, node);
+  re->UseNodeTrans();
+  gEve->AddGlobalElement(re, list);
+
+  node = gGeoManager->GetTopVolume()->FindNode("ZDCC_1");
+  re = new TEveGeoTopNode(gGeoManager, node);
+  re->UseNodeTrans();
+  gEve->AddGlobalElement(re, list);
+
+  gEve->Redraw3D();
+}