checking if the QA data object inherits from TH1 rather than isA during Checking
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Nov 2009 16:31:41 +0000 (16:31 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Nov 2009 16:31:41 +0000 (16:31 +0000)
STEER/AliQACheckerBase.cxx

index 94bdc55..6a9a0e8 100644 (file)
@@ -196,8 +196,7 @@ Double_t * AliQACheckerBase::Check(AliQAv1::ALITASK_t /*index*/, TObjArray ** li
         TH1 * hdata ;
         count[specie] = 0 ; 
         while ( (hdata = static_cast<TH1 *>(next())) ) {
-          TString cln(hdata->ClassName()) ; 
-          if ( cln.Contains("TH1") ) {
+          if ( hdata->IsA()->InheritsFrom("TH1") ) {
             if ( hdata->TestBit(AliQAv1::GetExpertBit()) )  // does not perform the test for expert data
               continue ; 
             TH1 * href = NULL ;