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 void AliFMDQAChecker::Check(Double_t* rv,
49 AliQAv1::ALITASK_t what,
51 const AliDetectorRecoParam* /*t*/)
54 // Member function called to do the actual checking
57 // rv Array of return values.
59 // list Array of arrays of histograms. There's one arrat for
61 // t Reconstruction parameters - not used.
64 // Double_t* rv = new Double_t[AliRecoParam::kNSpecies] ;
65 for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
69 if ( !AliQAv1::Instance()->IsEventSpecieSet(specie) )
72 if(!list[specie]) continue;
75 Int_t nHist = list[specie]->GetEntriesFast();
76 for(Int_t i= 0; i< nHist; i++) {
78 if (!(hist = static_cast<TH1F*>(list[specie]->At(i)))) continue;
80 if(what == AliQAv1::kESD)
81 rv[specie] += (hist->GetMean() > 0 ? 1 : 0);
82 if(what == AliQAv1::kRAW)
83 rv[specie] += (hist->GetMean() > 0 ? 1 : 0);
84 if(what == AliQAv1::kSIM)
85 rv[specie] += (hist->GetMean() > 0 ? 1 : 0);
86 if(what == AliQAv1::kREC)
87 rv[specie] += (hist->GetMean() > 0 ? 1 : 0);
89 if (count != 0) rv[specie] /= count;
96 //__________________________________________________________________