]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/primary_vertex.C
First pass of changes required for visualization of event-embedding.
[u/mrichter/AliRoot.git] / EVE / alice-macros / primary_vertex.C
index d22a820321276aa99d70b21d0c4e19e1bd5f80fb..99fe06a6f4dcb910ccef6d192d840a7f110edce2 100644 (file)
@@ -17,13 +17,14 @@ TEveCompound* assert_vertex_parent(const TString& name, Color_t col)
   // !!! TEveCompound should have viz-db support ... add in root, then fix here,
   // that is, remove the color var and pass viz-db tag.
 
-  TEveCompound* parent = dynamic_cast<TEveCompound*>(gAliEveEvent->FindChild(name));
+  TEveCompound* parent = dynamic_cast<TEveCompound*>
+    (AliEveEventManager::GetCurrent()->FindChild(name));
   if (parent == 0)
   {
     parent = new TEveCompound(name);
     parent->OpenCompound();
     parent->SetMainColor(col);
-    gAliEveEvent->AddElement(parent);
+    AliEveEventManager::GetMaster()->AddElement(parent);
   }
   return parent;
 }