removed unecessary protection
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Oct 2009 22:17:01 +0000 (22:17 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Oct 2009 22:17:01 +0000 (22:17 +0000)
STEER/AliQACheckerBase.cxx

index c73f7d9..e460d12 100644 (file)
@@ -198,22 +198,20 @@ Double_t * AliQACheckerBase::Check(AliQAv1::ALITASK_t /*index*/, TObjArray ** li
         while ( (hdata = static_cast<TH1 *>(next())) ) {
           TString cln(hdata->ClassName()) ; 
           if ( cln.Contains("TH1") ) {
-            if ( hdata) { 
-              if ( hdata->TestBit(AliQAv1::GetExpertBit()) )  // does not perform the test for expert data
-                continue ; 
-              TH1 * href = NULL ; 
-              if (fRefSubDir) 
-                href  = static_cast<TH1*>(fRefSubDir->Get(hdata->GetName())) ;
-              else if (fRefOCDBSubDir[specie])
-                href  = static_cast<TH1*>(fRefOCDBSubDir[specie]->FindObject(hdata->GetName())) ;
-              if (!href) 
-                test[specie] = -1 ; // no reference data ; 
-              else {
-                Double_t rv =  DiffK(hdata, href) ;
-                AliDebug(AliQAv1::GetQADebugLevel(), Form("%s ->Test = %f", hdata->GetName(), rv)) ; 
-                test[specie] += rv ; 
-                count[specie]++ ;
-              }
+            if ( hdata->TestBit(AliQAv1::GetExpertBit()) )  // does not perform the test for expert data
+              continue ; 
+            TH1 * href = NULL ; 
+            if (fRefSubDir) 
+              href  = static_cast<TH1*>(fRefSubDir->Get(hdata->GetName())) ;
+            else if (fRefOCDBSubDir[specie])
+              href  = static_cast<TH1*>(fRefOCDBSubDir[specie]->FindObject(hdata->GetName())) ;
+            if (!href) 
+              test[specie] = -1 ; // no reference data ; 
+            else {
+              Double_t rv =  DiffK(hdata, href) ;
+              AliDebug(AliQAv1::GetQADebugLevel(), Form("%s ->Test = %f", hdata->GetName(), rv)) ; 
+              test[specie] += rv ; 
+              count[specie]++ ;
             }
           } else
             AliError("Data type cannot be processed") ;