1 /**************************************************************************
2 * Copyright(c) 2004, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15 //__________________________________________________________________
25 //__________________________________________________________________
27 // --- ROOT system ---
31 #include <TIterator.h>
36 // --- AliRoot header files ---
39 #include "AliQAChecker.h"
40 #include "AliFMDQAChecker.h"
41 #include "AliRecoParam.h"
43 ClassImp(AliFMDQAChecker)
45 ; // This is for Emacs! - do not delete
47 //__________________________________________________________________
48 Double_t* AliFMDQAChecker::Check(AliQAv1::ALITASK_t what, TObjArray ** list, const AliDetectorRecoParam* /*t*/) {
50 Double_t* rv = new Double_t[AliRecoParam::kNSpecies] ;
51 for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
53 if ( !AliQAv1::Instance()->IsEventSpecieSet(specie) )
56 if(!list[specie]) continue;
58 TIter next1(list[specie]);
61 for(Int_t i= 0; i<list[specie]->GetEntriesFast(); i++) {
63 hist = (TH1F*)list[specie]->At(i);
66 if(what == AliQAv1::kESD) {
67 if(hist->GetMean() > 0)
71 if(what == AliQAv1::kRAW) {
72 if(hist->GetMean() > 0)
76 if(what == AliQAv1::kSIM) {
77 if(hist->GetMean() > 0)
81 if(what == AliQAv1::kREC) {
82 if(hist->GetMean() > 0)
96 //__________________________________________________________________