+ Float_t counter = 0 ;
+ TIter next(listsim) ;
+ TH1* histo;
+ while ( (histo = dynamic_cast<TH1 *>(next())) ) {
+ //PH The histogram should have at least 10 bins with at least 5 entries
+ Int_t nbinsabove = 0;
+ for (Int_t ibin=histo->FindBin(1); ibin<=histo->FindBin(50); ibin++) {
+ if (histo->GetBinContent(ibin)>5) nbinsabove++;
+ }
+
+ if( nbinsabove < 10 ) counter++;
+ else {
+ TString h = histo->GetTitle();
+ if(h.Contains("Zoom")){
+ histo->Fit("expo","LQ0","",5,50);
+ if(histo->GetFunction("expo")->GetParameter(1) !=0 ) if(TMath::Abs((-1./(histo->GetFunction("expo"))->GetParameter(1)) - 35 ) > 5) counter++;
+ }
+ if(h.Contains("size MIP")) if(TMath::Abs(histo->GetMean()-5) > 2) counter++;
+ if(h.Contains("size Phots")) if(TMath::Abs(histo->GetMean()-2) > 2) counter++;
+ if(h.Contains("distribution")) if(histo->KolmogorovTest((TH1F *)listref->At(0))<0.8) counter++;
+ AliDebug(AliQAv1::GetQADebugLevel(),Form(" Kolm. test : %f ",histo->KolmogorovTest((TH1F *)listref->At(0))));
+ }
+ }
+ Float_t response = counter/(7.+7.+42.+42.); // 7.+7.+42 +42 = N checked histograms (-> To be replaced by listsim->GetEntries())
+
+ if(response < 0.1) checkresponse = 0.7; // <10% of the check histograms show a failing check -> Corresponds to kINFO see AliQACheckerBase::Run
+ else if(response < 0.5) checkresponse = 0.4; // 50% of the check histograms show a failing check -> Corresponds to kWARNING see AliQACheckerBase::Run
+ else checkresponse = 0.001; // > 50% of the check histograms show a failing check -> Corresponds to kERROR see AliQACheckerBase::Run
+ return checkresponse;
+}
+
+//___________________________________________________________________________________________________
+Double_t AliHMPIDQAChecker::CheckRec(TObjArray *listrec, TObjArray *listref) const