Added possibility of using * wildcard in histo names to clone (Diego)
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Sep 2011 15:20:40 +0000 (15:20 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Sep 2011 15:20:40 +0000 (15:20 +0000)
STEER/STEER/AliQADataMaker.cxx

index e886d85..bf607c7 100644 (file)
@@ -251,6 +251,11 @@ Int_t AliQADataMaker::ClonePerTrigClassA(TObjArray * list, const char* hnm, cons
       histPatt.Prepend('^'); histPatt += "$";
       cloneMany = kTRUE;
     }
+    else if ( histPatt.Contains("*") ) {
+      histPatt.ReplaceAll("*",".*");
+      histPatt.Prepend('^'); histPatt += "$";
+      cloneMany = kTRUE;
+    }
   }
   //
   int nCloned = 0;
@@ -264,7 +269,7 @@ Int_t AliQADataMaker::ClonePerTrigClassA(TObjArray * list, const char* hnm, cons
        if ( !hname.Contains(patPR) ) continue;
       }
       else {
-       if ( !hname.Contains(histPatt) ) continue;
+       if ( hname.CompareTo(histPatt) ) continue;
       }
     }
     //