Allow for combination of blancs and commas in SetFriendChainName
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Jun 2013 12:18:50 +0000 (12:18 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Jun 2013 12:18:50 +0000 (12:18 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index b622dc2..2f39e09 100644 (file)
@@ -2588,8 +2588,12 @@ void AliAnalysisAlien::SetFriendChainName(const char *name, const char *libnames
    // Libs should be separated by blancs.
    fFriendChainName = name;
    fFriendLibs = libnames;
-   if (fFriendLibs.Length() && !fFriendLibs.Contains(".so")) {
-      Fatal("SetFriendChainName()", "You should provide explicit library names (with extension)");
+   if (fFriendLibs.Length()) {
+     if(!fFriendLibs.Contains(".so"))
+       Fatal("SetFriendChainName()", "You should provide explicit library names (with extension)");
+     fFriendLibs.ReplaceAll(",", " ");
+     fFriendLibs.Strip();
+     fFriendLibs.ReplaceAll("  ", " ");
    }
 }