X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDQAChecker.cxx;h=57845f6d8787729757ec142af034bb7e9c61426f;hb=cc4e3d818bd6639a1dc7e7a42ca92353dcd90bbf;hp=8d6792d0d6523671de0877f518e200ef1332326b;hpb=eedcd663bfa09b5b2f8da4e2a25291e5e18cc899;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDQAChecker.cxx b/TRD/AliTRDQAChecker.cxx index 8d6792d0d65..57845f6d878 100644 --- a/TRD/AliTRDQAChecker.cxx +++ b/TRD/AliTRDQAChecker.cxx @@ -43,24 +43,26 @@ ClassImp(AliTRDQAChecker) //__________________________________________________________________ -Double_t * AliTRDQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list, AliDetectorRecoParam* /*param*/) +void AliTRDQAChecker::Check(Double_t * test, AliQAv1::ALITASK_t index, TObjArray ** list, const AliDetectorRecoParam* /*param*/) { // Super-basic check on the QA histograms on the input list: - Double_t * test = new Double_t[AliRecoParam::kNSpecies]; + if (!list) return; for(Int_t i=0; iAt(12); + + TObjArray * arr = list[specie]; + if (!arr) continue; + TH1D *hist = (TH1D*) arr->At(12); if (!hist) continue; Double_t value = hist->Integral(hist->FindBin(lowAmp), hist->FindBin(highAmp)); @@ -68,7 +70,6 @@ Double_t * AliTRDQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list, A test[specie] = value / hist->GetSum(); } - return test ; } //____________________________________________________________________________