/************************************************************************** * Copyright(c) 2004, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ //__________________________________________________________________ // // Yves? // What // is // this // class // supposed // to // do? //__________________________________________________________________ // // --- ROOT system --- #include #include #include #include #include #include #include // --- AliRoot header files --- #include "AliLog.h" #include "AliQAv1.h" #include "AliQAChecker.h" #include "AliFMDQAChecker.h" #include "AliRecoParam.h" ClassImp(AliFMDQAChecker) #if 0 ; // This is for Emacs! - do not delete #endif //__________________________________________________________________ void AliFMDQAChecker::Check(Double_t* rv, AliQAv1::ALITASK_t what, TObjArray** list, const AliDetectorRecoParam* /*t*/) { // // Member function called to do the actual checking // // Parameters: // rv Array of return values. // what What to check // list Array of arrays of histograms. There's one arrat for // each 'specie' // t Reconstruction parameters - not used. // // Double_t* rv = new Double_t[AliRecoParam::kNSpecies] ; for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) { Int_t count = 0; rv[specie] = 0.; if ( !AliQAv1::Instance()->IsEventSpecieSet(specie) ) continue ; if(!list[specie]) continue; TH1F* hist = 0; Int_t nHist = list[specie]->GetEntriesFast(); for(Int_t i= 0; i< nHist; i++) { if (!(hist = static_cast(list[specie]->At(i)))) continue; if(what == AliQAv1::kESD) rv[specie] += (hist->GetMean() > 0 ? 1 : 0); if(what == AliQAv1::kRAW) rv[specie] += (hist->GetMean() > 0 ? 1 : 0); if(what == AliQAv1::kSIM) rv[specie] += (hist->GetMean() > 0 ? 1 : 0); if(what == AliQAv1::kREC) rv[specie] += (hist->GetMean() > 0 ? 1 : 0); } // for (int i ...) if (count != 0) rv[specie] /= count; } // return rv; } //__________________________________________________________________ // // EOF //