]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix the way how dependence on esd_tracks.C is handled.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Dec 2009 15:16:09 +0000 (15:16 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Dec 2009 15:16:09 +0000 (15:16 +0000)
EVE/alice-macros/esd_hlt_tracks.C

index 2fef3ea98cfdf0005a87543542c66e48cc31cc3d..36861cb10abf4963ff33984d8540a76eb7df5fc2 100644 (file)
  */
 TEveTrackList* esd_hlt_tracks()
 {
-  TString macroPath=getenv("ALICE_ROOT");
-  macroPath+="/EVE/alice-macros/esd_tracks.C";
-  if (!gROOT->GetInterpreter()->IsLoaded(macroPath)) {
-    if (gSystem->AccessPathName(macroPath)) {
-      Error("hlt_tpc_clusters.C", "can not load %s, please load the esd_tracks.C macro before", macroPath.Data());
-      return NULL;
-    } else {
-      gROOT->GetInterpreter()->LoadMacro(macroPath);
-    }
-  }
-
   if (!TClass::GetClass("AliEveEventManager")) {
     Error("hlt_tpc_clusters.C", "EVE library not loaded, please start alieve correctly");
     return NULL;
@@ -59,6 +48,8 @@ TEveTrackList* esd_hlt_tracks()
     return NULL;
   }
 
+  TEveUtil::LoadMacro("esd_tracks.C");
+
   int eventId=eveManager->GetEventId();
   TFile* esdFile=eveManager->GetESDFile();
   if (!esdFile) {