]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliCorrQAChecker.cxx
Fixes for bug #49914: Compilation breaks in trunk, and bug #48629: Trunk cannot read...
[u/mrichter/AliRoot.git] / STEER / AliCorrQAChecker.cxx
index 09eb5d47e571c4befa7ba2d7db24edafa15f1627..68a82dc7a42bf4890bb675b82abc1c0e0c87c0b5 100644 (file)
 
 // --- AliRoot header files ---
 #include "AliLog.h"
-#include "AliQA.h"
+#include "AliQAv1.h"
 #include "AliQAChecker.h"
 #include "AliCorrQAChecker.h"
 
 ClassImp(AliCorrQAChecker)
 
 //__________________________________________________________________
-const Double_t AliCorrQAChecker::Check(AliQA::ALITASK_t index, TNtupleD * nData) 
+Double_t * AliCorrQAChecker::Check(AliQAv1::ALITASK_t index, TNtupleD ** nData) 
 {
  // check the QA of correlated data stored in a ntuple
-  if ( index != AliQA::kRAW ) {
+  
+  Double_t * test = new Double_t[AliRecoParam::kNSpecies] ; 
+  for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) 
+    test[specie] = 0. ; 
+    
+  if ( index != AliQAv1::kRAW ) {
     AliWarning("Checker not implemented") ; 
-    return 1.0 ; 
+    for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) 
+      test[specie] = 1. ; 
+    return test ; 
   }
-  Double_t test = 0.0  ;
 //     if (!fRefSubDir) {
 //             test = 1. ; // no reference data
 //     } else {
     if ( ! nData ) {
       AliError(Form("nRawCorr not found in %s", fDataSubDir->GetName())) ; 
     } else {
-      TObjArray * bList = nData->GetListOfBranches() ; 
-      for (Int_t b = 0 ; b < bList->GetEntries() ; b++) {
-        AliInfo(Form("Ntuple parameter name %d : %s", b, bList->At(b)->GetName())) ;  
+      for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
+        TObjArray * bList = nData[specie]->GetListOfBranches() ; 
+        for (Int_t b = 0 ; b < bList->GetEntries() ; b++) {
+          AliInfo(Form("Ntuple %s parameter name %d : %s", nData[specie]->GetName(), b, bList->At(b)->GetName())) ;  
+        }
       }
     }
  // }