]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSQAChecker.cxx
PWGPP-69 - initialize additional dEdx information diring tracking itteration 0 -...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQAChecker.cxx
index 381769a64486c32c51d33c201603997a7ef8565b..2380b2e8120534815a2dfc0b722b59f0152e84b1 100644 (file)
@@ -48,3 +48,38 @@ AliPHOSQAChecker & AliPHOSQAChecker::operator = (const AliPHOSQAChecker &)
   return *this;
 }
 
+//____________________________________________________________________________
+void AliPHOSQAChecker::Check(Double_t * test, AliQAv1::ALITASK_t task, TObjArray ** list, const AliDetectorRecoParam * /* recoParam */) 
+{
+  // Performs a basic checking
+  // Compares all the histograms in the list
+
+  for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
+    test[specie] = 1.0;
+    if ( !AliQAv1::Instance()->IsEventSpecieSet(specie) ) 
+      continue ; 
+    // checking for empty histograms
+    // if (CheckEntries(list[specie]) == 0)  {
+    //   AliWarning("histograms are empty");
+    //   test[specie] = 0.4;//-> Corresponds to kWARNING see AliQACheckerBase::Run
+    // }
+  
+    // checking raw data
+    if(task == AliQAv1::kRAW){
+      if(AliRecoParam::ConvertIndex(specie) == AliRecoParam::kCalib    ||
+         AliRecoParam::ConvertIndex(specie) == AliRecoParam::kHighMult ||
+         AliRecoParam::ConvertIndex(specie) == AliRecoParam::kLowMult  ||
+        AliRecoParam::ConvertIndex(specie) == AliRecoParam::kDefault) {
+       // list[specie]->Print();
+       TH1F *hHighNtot = (TH1F*)list[specie]->At(13);
+       if (hHighNtot!=0) {
+         if (hHighNtot->GetMean() < 1000) test[specie]=1;
+       }
+       else test[specie]=0.1;
+      }
+    }
+
+    //default check response. It will be changed when reasonable checks will be considered
+    else test[specie] = 0.7 ; // /-> Corresponds to kINFO see AliQACheckerBase::Run 
+  } // species loop
+}