+++ /dev/null
-#ifndef ALIQACHECKERBASE_H
-#define ALIQACHECKERBASE_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice */
-
-
-/* $Id$ */
-
-//
-// Base class for detectors quality assurance checkers
-// Compares Data made by QADataMakers with reference data
-// Y. Schutz CERN August 2007
-//
-
-
-// --- ROOT system ---
-#include <TNamed.h>
-#include "AliQAv1.h"
-class TCanvas ;
-class TFile ;
-class TH1 ;
-class TObjArray ;
-class TDirectory ;
-class TNtupleD ;
-class AliDetectorRecoParam ;
-class TList ;
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-class AliQACheckerBase: public TNamed {
-
-public:
- AliQACheckerBase(const char * name = "", const char * title = "") ; // ctor
- AliQACheckerBase(const AliQACheckerBase& qac) ;
- AliQACheckerBase& operator = (const AliQACheckerBase& qac) ;
- virtual ~AliQACheckerBase() ; // dtor
-
- TList * GetExternParamlist() { return fExternParamList ;}
- TCanvas ** GetImage() { return fImage ; }
- TCanvas * GetImage(AliRecoParam::EventSpecie_t es) { return fImage[AliRecoParam::AConvert(es)] ; }
- virtual void Init(const AliQAv1::DETECTORINDEX_t det) { AliQAv1::Instance(det) ; }
- virtual void MakeImage( TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode) ;
- void PrintExternParam() ;
- void Run(AliQAv1::ALITASK_t tsk, AliDetectorRecoParam * recoParam = NULL);
- void Run(AliQAv1::ALITASK_t tsk, TObjArray ** list, AliDetectorRecoParam * recoParam = NULL);
- void Run(AliQAv1::ALITASK_t /*tsk*/, TNtupleD ** /*nt*/, AliDetectorRecoParam * /*recoParam*/) {;}
- void SetExternParamlist(TList * list) { fExternParamList = list ;}
- void SetHiLo(Float_t * hiValue, Float_t * lowValue) ;
- void SetPrintImage(Bool_t opt = kTRUE) { fPrintImage = opt ; }
-
-protected:
- virtual void Check(Double_t *rv, AliQAv1::ALITASK_t, TObjArray **, const AliDetectorRecoParam * recoParam) ;
-
- Double_t DiffC(const TH1 * href, const TH1 * hin) const ;
- Double_t DiffK(const TH1 * href, const TH1 * hin) const ;
- void Finish() const ;
- void GetRefSubDir(const char * det, const char * task, TDirectory *& dirFile, TObjArray **& dirOCDB) ;
- virtual void SetQA(AliQAv1::ALITASK_t index, Double_t * value) const ;
-
- TDirectory * fDataSubDir ; //! directory for the current task directory in the current detector directory in the data file
- TDirectory * fRefSubDir ; //! directory for the current task directory in the current detector directory in the reference file
- TObjArray ** fRefOCDBSubDir ; //! Entry in OCDB for the current detector
- Float_t * fLowTestValue ; // array of lower bounds for INFO, WARNING, ERROR, FATAL
- Float_t * fUpTestValue ; // array of upper bounds for INFO, WARNING, ERROR, FATAL
- TCanvas ** fImage ; //[AliRecoParam::kNSpecies]
- Bool_t fPrintImage ; //! flag to print the images or not
- TList * fExternParamList; //List of external parameters (TParameter<double>)
-
-private:
- void Check(Double_t * rv, AliQAv1::ALITASK_t index, const AliDetectorRecoParam * recoParam) ;
-
- ClassDef(AliQACheckerBase,3) // description
-
-};
-
-#endif // AliQUALASSCHECKERBASE_H