1 /**************************************************************************
2 * Copyright(c) 1998-1999, 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 **************************************************************************/
20 Checks the quality assurance.
21 By comparing with reference data
22 Y. Schutz CERN July 2007
25 // --- ROOT system ---
29 #include <TIterator.h>
33 // --- Standard library ---
35 // --- AliRoot header files ---
38 #include "AliQAChecker.h"
39 #include "AliPHOSQAChecker.h"
41 ClassImp(AliPHOSQAChecker)
43 //__________________________________________________________________
45 AliPHOSQAChecker & AliPHOSQAChecker::operator = (const AliPHOSQAChecker &)
47 Fatal("operator =", "not implemented");
51 //____________________________________________________________________________
52 void AliPHOSQAChecker::Check(Double_t * test, AliQAv1::ALITASK_t task, TObjArray ** list, const AliDetectorRecoParam * /* recoParam */)
54 // Performs a basic checking
55 // Compares all the histograms in the list
57 for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
59 if ( !AliQAv1::Instance()->IsEventSpecieSet(specie) )
61 // checking for empty histograms
62 // if (CheckEntries(list[specie]) == 0) {
63 // AliWarning("histograms are empty");
64 // test[specie] = 0.4;//-> Corresponds to kWARNING see AliQACheckerBase::Run
68 if(task == AliQAv1::kRAW){
69 if(AliRecoParam::ConvertIndex(specie) == AliRecoParam::kCalib ||
70 AliRecoParam::ConvertIndex(specie) == AliRecoParam::kHighMult ||
71 AliRecoParam::ConvertIndex(specie) == AliRecoParam::kLowMult ||
72 AliRecoParam::ConvertIndex(specie) == AliRecoParam::kDefault) {
73 // list[specie]->Print();
74 TH1F *hHighNtot = (TH1F*)list[specie]->At(13);
76 if (hHighNtot->GetMean() < 1000) test[specie]=1;
78 else test[specie]=0.1;
82 //default check response. It will be changed when reasonable checks will be considered
83 else test[specie] = 0.7 ; // /-> Corresponds to kINFO see AliQACheckerBase::Run