/************************************************************************** * Copyright(c) 2007-2009, 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. * **************************************************************************/ /* $Id$ */ // ***************************************** // Checks the quality assurance // by comparing with reference data // W.Ferrarese P.Cerello Mag 2008 // INFN Torino // --- ROOT system --- #include "TH1.h" #include // --- AliRoot header files --- #include "AliITSQAChecker.h" #include "AliITSQASPDChecker.h" #include "AliITSQASDDChecker.h" #include "AliITSQASSDChecker.h" ClassImp(AliITSQAChecker) //____________________________________________________________________________ AliITSQAChecker::AliITSQAChecker(Bool_t kMode, Short_t subDet, Short_t ldc) : AliQACheckerBase("ITS","SDD Quality Assurance Checker"), fkOnline(0), fDet(0), fLDC(0), fSPDOffset(0), fSDDOffset(0), fSSDOffset(0), fSPDChecker(0), // SPD Checker fSDDChecker(0), // SDD Checker fSSDChecker(0) // SSD Checker { // Standard constructor fkOnline = kMode; fDet = subDet; fLDC = ldc; if(fDet == 0 || fDet == 1) { AliDebug(1,"AliITSQAChecker::Create SPD Checker\n"); } if(fDet == 0 || fDet == 2) { AliDebug(1,"AliITSQAChecker::Create SDD Checker\n"); } if(fDet == 0 || fDet == 3) { AliDebug(1,"AliITSQAChecker::Create SSD Checker\n"); } } //____________________________________________________________________________ AliITSQAChecker::AliITSQAChecker(const AliITSQAChecker& qac): AliQACheckerBase(qac.GetName(), qac.GetTitle()), fkOnline(qac.fkOnline), fDet(qac.fDet), fLDC(qac.fLDC), fSPDOffset(qac.fSPDOffset), fSDDOffset(qac.fSDDOffset), fSSDOffset(qac.fSSDOffset), fSPDChecker(0), fSDDChecker(0), fSSDChecker(0) { // copy constructor AliError("Copy should not be used with this class\n"); } //____________________________________________________________________________ AliITSQAChecker& AliITSQAChecker::operator=(const AliITSQAChecker& qac){ // assignment operator this->~AliITSQAChecker(); new(this)AliITSQAChecker(qac); return *this; } //____________________________________________________________________________ const Double_t AliITSQAChecker::Check(AliQA::ALITASK_t index, TObjArray * list) { // Super-basic check on the QA histograms on the input list: // look whether they are empty! Double_t spdCheck, sddCheck, ssdCheck; Double_t retval = 1.; if(fDet == 0 || fDet == 1) { AliDebug(1,"AliITSQAChecker::Create SPD Checker\n"); if(!fSPDChecker) { fSPDChecker = new AliITSQASPDChecker(); } fSPDChecker->SetTaskOffset(fSPDOffset); spdCheck = fSPDChecker->Check(index, list); if(spdCheckSetTaskOffset(fSDDOffset); sddCheck = fSDDChecker->Check(index, list); if(sddCheckGetEntries())); } fSSDChecker->SetTaskOffset(fSSDOffset); ssdCheck = fSSDChecker->Check(index, list); if(ssdCheck