bug fix
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 13 Feb 2011 23:13:50 +0000 (23:13 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 13 Feb 2011 23:13:50 +0000 (23:13 +0000)
PWG2/FORWARD/analysis2/scripts/MakeChain.C

index 31e99d3..e412dfa 100644 (file)
@@ -8,6 +8,7 @@
  * @param pattern    Pattern that the file name must contain
  * @param recursive  Whether to scan recursively 
  */
+
 void
 ScanDirectory(TSystemDirectory* dir, TChain* chain, 
              const char* pattern, bool recursive)
@@ -30,7 +31,7 @@ ScanDirectory(TSystemDirectory* dir, TChain* chain,
     // Check if this is a directory 
     if (file->IsDirectory()) { 
       if (recursive) 
-       ScanDirectory(static_cast<TSystemDirectory*>(file),chain,recursive);
+       ScanDirectory(static_cast<TSystemDirectory*>(file),chain,pattern,recursive);
       continue;
     }