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"),
44 fSPDChecker(0), // SPD Checker
45 fSDDChecker(0), // SDD Checker
46 fSSDChecker(0) // SSD Checker
48 fkOnline = kMode; fDet = subDet; fLDC = ldc;
49 if(fDet == 0 || fDet == 1) {
50 AliDebug(1,"AliITSQAChecker::Create SPD Checker\n");
52 if(fDet == 0 || fDet == 2) {
53 AliDebug(1,"AliITSQAChecker::Create SDD Checker\n");
55 if(fDet == 0 || fDet == 3) {
56 AliDebug(1,"AliITSQAChecker::Create SSD Checker\n");
61 //__________________________________________________________________
62 AliITSQAChecker& AliITSQAChecker::operator = (const AliITSQAChecker& qac )
65 this->~AliITSQAChecker();
66 new(this) AliITSQAChecker(qac);
70 //____________________________________________________________________________
71 const Double_t AliITSQAChecker::Check(AliQA::ALITASK_t index, TObjArray * list)
74 // Super-basic check on the QA histograms on the input list:
75 // look whether they are empty!
76 Double_t spdCheck, sddCheck, ssdCheck;
78 if(fDet == 0 || fDet == 1) {
79 AliDebug(1,"AliITSQAChecker::Create SPD Checker\n");
80 if(!fSPDChecker) fSPDChecker = new AliITSQASPDChecker();
81 spdCheck = fSPDChecker->Check(index, list, fSPDOffset);
82 if(spdCheck>retval)retval = spdCheck;
84 if(fDet == 0 || fDet == 2) {
85 AliDebug(1,"AliITSQAChecker::Create SDD Checker\n");
86 if(!fSDDChecker) fSDDChecker = new AliITSQASDDChecker();
87 sddCheck = fSDDChecker->Check(index, list, fSDDOffset);
88 if(sddCheck>retval)retval = sddCheck;
90 if(fDet == 0 || fDet == 3) {
91 AliDebug(1,"AliITSQAChecker::Create SSD Checker\n");
92 if(!fSSDChecker) fSSDChecker = new AliITSQASSDChecker();
93 //AliInfo(Form("Number of monitored objects SSD: %d", list->GetEntries()));
94 ssdCheck = fSSDChecker->Check(index, list, fSSDOffset);
95 if(ssdCheck>retval)retval = ssdCheck;
97 // here merging part for common ITS QA result
103 //____________________________________________________________________________
104 void AliITSQAChecker::SetTaskOffset(Int_t SPDOffset, Int_t SDDOffset, Int_t SSDOffset)
106 //Setting the 3 offsets for each task called
107 fSPDOffset = SPDOffset;
108 fSDDOffset = SDDOffset;
109 fSSDOffset = SSDOffset;