/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
- * full copyright notice. *
+ * full copyright notice. *
**************************************************************************/
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TGeoManager.h>
+#include <TGeoNode.h>
+#include <TEveManager.h>
+#include <TEveGeoNode.h>
+
+#include <AliEveEventManager.h>
+#endif
+
void geom_emcal()
{
- gGeoManager = gEve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
- TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("XEN1_1");
+ AliEveEventManager::AssertGeometry();
+ TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("XEN1_1");
+ if (!node) {
+ Warning("geom_emcal()", "Node XEN1_1 not found.");
+ return;
+ }
+
TEveGeoTopNode* emcal_re = new TEveGeoTopNode(gGeoManager, node);
gEve->AddGlobalElement(emcal_re);
gEve->Redraw3D();