]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCQAChecker.cxx
Obsolete data member removed.
[u/mrichter/AliRoot.git] / ZDC / AliZDCQAChecker.cxx
index 0c18b3d07a4d0bb1761ab2b8fa760ef4f2fc42fa..6662a9a9f2d7ef9c8879c13d73100335b1104d46 100644 (file)
@@ -43,45 +43,44 @@ AliZDCQAChecker& AliZDCQAChecker::operator = (const AliZDCQAChecker& qac )
 
 
 //____________________________________________________________________________
-const Double_t AliZDCQAChecker::Check(TObjArray * list) 
+const Double_t AliZDCQAChecker::Check(AliQA::ALITASK_t /*index*/, TObjArray * list) 
 {
-
-  // Super-basic check on the QA histograms on the input list: 
-  // look whether they are empty!
-
-  Double_t test = 0.0  ;
-  Int_t count = 0 ; 
+  // Checks the QA histograms on the input list: 
+  //
+  Double_t test = 0.;
+  Int_t count = 0; 
   
   if(list->GetEntries() == 0){  
-    test = 1. ; // nothing to check
+    AliWarning("The list to be checked is empty!");
+    test = 1.; // nothing to check
   }
-  else {
-    TIter next(list) 
-    TH1 * hdata ;
-    count = 0 
+  else{
+    TIter next(list); 
+    TH1 * hdata;
+    count = 0; 
     while((hdata = dynamic_cast<TH1 *>(next()))){
       if(hdata){ 
        Double_t rv = 0.;
-       if(hdata->GetEntries()>0)rv=1; 
-       AliInfo(Form("%s -> %f", hdata->GetName(), rv)) 
-       count++ 
-       test += rv 
+       if(hdata->GetEntries()>0) rv=1; 
+       AliInfo(Form("%s -> %f", hdata->GetName(), rv)); 
+       count++; 
+       test += rv; 
       }
       else{
-       AliError("Data type cannot be processed") ;
+       AliError("Data type cannot be processed");
       }
     }
-    if (count != 0) 
-      if (test==0) {
-       AliWarning("Histograms are there, but they are all empty: setting flag to kWARNING");
+    if(count!=0)
+      if(test==0){
+       AliWarning("Histograms to be checked are empty!!!");
        test = 0.5;  //upper limit value to set kWARNING flag for a task
       }
       else {
-       test /= count ;
+       test /= count;
       }
     }
   }
 
-  AliInfo(Form("Test Result = %f", test)) 
-  return test 
+  AliInfo(Form("Test Result = %f", test)); 
+  return test; 
 }