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 **************************************************************************/
18 ////////////////////////////////////////////////////////////////////////////
20 // Checks the quality assurance. //
21 // By comparing with reference data //
22 // S.Radomski Uni-Heidelberg October 2007 //
24 ////////////////////////////////////////////////////////////////////////////
26 // --- ROOT system ---
30 #include <TIterator.h>
34 // --- Standard library ---
36 // --- AliRoot header files ---
39 #include "AliQAChecker.h"
40 #include "AliTRDQAChecker.h"
42 ClassImp(AliTRDQAChecker)
44 //__________________________________________________________________
46 Double_t * AliTRDQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list, const AliDetectorRecoParam* /*param*/)
49 // Super-basic check on the QA histograms on the input list:
51 Double_t * test = new Double_t[AliRecoParam::kNSpecies];
52 for(Int_t i=0; i<AliRecoParam::kNSpecies; i++) test[i] = 0.5;
54 //Int_t count[AliRecoParam::kNSpecies] = { 0 };
56 if (index != AliQAv1::kREC) return test;
58 const Double_t lowAmp = 30;
59 const Double_t highAmp = 50;
61 for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
63 TH1D *hist = (TH1D*) list[specie]->At(12);
66 Double_t value = hist->Integral(hist->FindBin(lowAmp), hist->FindBin(highAmp));
68 test[specie] = value / hist->GetSum();
74 //____________________________________________________________________________