]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/sim/AOD.C
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / sim / AOD.C
index c85cb93d6666a25325ad44e866b535fd8e4acedc..a76500a983a05eb037b2a4bf166a117137452217 100644 (file)
@@ -158,7 +158,7 @@ Bool_t LoadLibrary(const char *module)
   // If a library is specified, just load it
   if (mod.EndsWith(".so")) {
     mod.Remove(mod.Index(".so"));
-    ::Info("LoadLibrary", "Loading .so: %s", mod.Data()); 
+    ::Info("LoadLibrary", "Loading library: %s", mod.Data()); 
     result = gSystem->Load(mod);
     if (result < 0) {
       ::Error("AnalysisTrainNew.C::LoadLibrary", 
@@ -168,14 +168,14 @@ Bool_t LoadLibrary(const char *module)
     return (result >= 0);
   }
   // Check if the library is already loaded
-  if (strlen(gSystem->GetLibraries(Form("%s.so", module), "", kFALSE)) > 0) {
-    ::Info("LoadLibrary", "Module %s.so already loaded", module);
+  if (strlen(gSystem->GetLibraries(module, "", kFALSE)) > 0) {
+    ::Info("LoadLibrary", "Module %s already loaded", module);
     gROOT->DecreaseDirLevel();      
     return kTRUE;
   }
 
-  ::Info("LoadLibrary", "Trying to load lib%s.so", module);
-  result = gSystem->Load(Form("lib%s.so", module));
+  ::Info("LoadLibrary", "Trying to load lib%s", module);
+  result = gSystem->Load(Form("lib%s", module));
   if (result < 0)
     ::Error("AnalysisTrainNew.C::LoadLibrary", 
            "Could not load module %s", module);