From: shahoian Date: Fri, 30 Sep 2011 15:20:40 +0000 (+0000) Subject: Added possibility of using * wildcard in histo names to clone (Diego) X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=b53824c8f19ea76c19db6add0b27e275a59a66d2 Added possibility of using * wildcard in histo names to clone (Diego) --- diff --git a/STEER/STEER/AliQADataMaker.cxx b/STEER/STEER/AliQADataMaker.cxx index e886d85a61f..bf607c71d50 100644 --- a/STEER/STEER/AliQADataMaker.cxx +++ b/STEER/STEER/AliQADataMaker.cxx @@ -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; } } //