Changes to compile with Root6 on macosx64
[u/mrichter/AliRoot.git] / MONITOR / client.C
index 5c6f1e7..eb6f640 100644 (file)
@@ -1,8 +1,19 @@
 #if !defined(__CINT__) || defined(__MAKECINT__)
 #include "MONITOR/AliMonitorClient.h"
+#include "TSystem.h"
 #endif
 
 void client()
 {
+  // load libraries
+  if (!gROOT->GetClass("AliLevel3")) {
+    gSystem->Load("libAliHLTSrc.so");
+    gSystem->Load("libAliHLTMisc.so");
+    gSystem->Load("libAliHLTHough.so");
+    gSystem->Load("libAliHLTComp.so");
+  }
+  if (!gROOT->GetClass("AliMonitorClient")) {
+    gSystem->Load("libMONITOR.so");
+  }
   new AliMonitorClient;
 }