]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_acorde.C
SetSeed dummy implementations
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_acorde.C
index 8ef2977994206778b635648cec180850ddeb6651..76148135b0bee2874866261743fad8615cfede3d 100644 (file)
@@ -7,22 +7,32 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveElement.h>
+#include <TEveGeoNode.h>
+
+#include <AliEveEventManager.h>
+#endif
+
 void geom_acorde()
 {
-  gGeoManager = gEve->GetGeometry("geometry.root");
+  AliEveEventManager::AssertGeometry();
+
+  TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("ACORDE_1");
+  if (!node) {
+    Warning("geom_acorde()", "Node ACORDE_1 not found.");
+    return;
+  }
 
   TEveElementList* list = new TEveElementList("ACORDE");
   gEve->AddGlobalElement(list);
 
-  for (Int_t i=1; i<61; ++i)
-  {
-    char form[1000];
-    sprintf(form, "ACORDE1_%d", i);
-    TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(form);
-    TEveGeoTopNode* re = new TEveGeoTopNode(gGeoManager, node);
-    re->UseNodeTrans();
-    gEve->AddGlobalElement(re, list);
-  }
+  TEveGeoTopNode* re = new TEveGeoTopNode(gGeoManager, node);
+  re->UseNodeTrans();
+  gEve->AddGlobalElement(re, list);
 
   gEve->Redraw3D();
 }