From 1a3f255ca91294f06b377cc9e88e2a459c9ec882 Mon Sep 17 00:00:00 2001 From: agheata Date: Fri, 21 Jun 2013 12:18:50 +0000 Subject: [PATCH] Allow for combination of blancs and commas in SetFriendChainName --- ANALYSIS/AliAnalysisAlien.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ANALYSIS/AliAnalysisAlien.cxx b/ANALYSIS/AliAnalysisAlien.cxx index b622dc2de36..2f39e095aa9 100644 --- a/ANALYSIS/AliAnalysisAlien.cxx +++ b/ANALYSIS/AliAnalysisAlien.cxx @@ -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(" ", " "); } } -- 2.43.0