1 /**************************************************************************
2 * Copyright(c) 2007-2009, 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 // *****************************************
19 // Checks the quality assurance
20 // by comparing with reference data
21 // W. Ferrarese Oct 2007
24 // --- ROOT system ---
27 // --- AliRoot header files ---
28 #include "AliITSQAChecker.h"
29 #include "AliITSQASPDChecker.h"
30 #include "AliITSQASDDChecker.h"
31 #include "AliITSQASSDChecker.h"
33 ClassImp(AliITSQAChecker)
35 //____________________________________________________________________________
36 AliITSQAChecker::AliITSQAChecker(Bool_t kMode, Short_t subDet, Short_t ldc) :
37 AliQACheckerBase("ITS","SDD Quality Assurance Checker")
39 fkOnline = kMode; fDet = subDet; fLDC = ldc;
40 if(fDet == 0 || fDet == 1) {
41 AliDebug(1,"AliITSQAChecker::Create SPD Checker\n");
43 if(fDet == 0 || fDet == 2) {
44 AliDebug(1,"AliITSQAChecker::Create SDD Checker\n");
46 if(fDet == 0 || fDet == 3) {
47 AliDebug(1,"AliITSQAChecker::Create SSD Checker\n");
52 //__________________________________________________________________
53 AliITSQAChecker& AliITSQAChecker::operator = (const AliITSQAChecker& qac )
56 this->~AliITSQAChecker();
57 new(this) AliITSQAChecker(qac);
61 //____________________________________________________________________________
62 const Double_t AliITSQAChecker::Check(AliQA::ALITASK_t index, TObjArray * list)
65 // Super-basic check on the QA histograms on the input list:
66 // look whether they are empty!
67 if(fDet == 0 || fDet == 1) {
68 AliDebug(1,"AliITSQAChecker::Create SPD Checker\n");
69 if(!fSPDChecker) fSPDChecker = new AliITSQASPDChecker();
70 Double_t SPDcheck = fSPDChecker->Check(index);
72 if(fDet == 0 || fDet == 2) {
73 AliDebug(1,"AliITSQAChecker::Create SDD Checker\n");
74 if(!fSDDChecker) fSDDChecker = new AliITSQASDDChecker();
75 Double_t SDDcheck = fSDDChecker->Check(index);
77 if(fDet == 0 || fDet == 3) {
78 AliDebug(1,"AliITSQAChecker::Create SSD Checker\n");
79 if(!fSSDChecker) fSSDChecker = new AliITSQASSDChecker();
80 Double_t SSDcheck = fSSDChecker->Check(index);
82 // here merging part for common ITS QA result