]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - STEER/AliQACheckerBase.h
Update MC pt shape syst
[u/mrichter/AliRoot.git] / STEER / AliQACheckerBase.h
... / ...
CommitLineData
1#ifndef ALIQACHECKERBASE_H
2#define ALIQACHECKERBASE_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7/* $Id$ */
8
9//
10// Base class for detectors quality assurance checkers
11// Compares Data made by QADataMakers with reference data
12// Y. Schutz CERN August 2007
13//
14
15
16// --- ROOT system ---
17#include <TNamed.h>
18#include "AliQAv1.h"
19class TCanvas ;
20class TFile ;
21class TH1 ;
22class TObjArray ;
23class TDirectory ;
24class TNtupleD ;
25class AliDetectorRecoParam ;
26class TList ;
27
28// --- Standard library ---
29
30// --- AliRoot header files ---
31
32class AliQACheckerBase: public TNamed {
33
34public:
35 AliQACheckerBase(const char * name = "", const char * title = "") ; // ctor
36 AliQACheckerBase(const AliQACheckerBase& qac) ;
37 AliQACheckerBase& operator = (const AliQACheckerBase& qac) ;
38 virtual ~AliQACheckerBase() ; // dtor
39
40 TList * GetExternParamlist() { return fExternParamList ;}
41 TCanvas ** GetImage() { return fImage ; }
42 TCanvas * GetImage(AliRecoParam::EventSpecie_t es) { return fImage[AliRecoParam::AConvert(es)] ; }
43 virtual void Init(const AliQAv1::DETECTORINDEX_t det) { AliQAv1::Instance(det) ; }
44 virtual void MakeImage( TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode) ;
45 void PrintExternParam() ;
46 void Run(AliQAv1::ALITASK_t tsk, AliDetectorRecoParam * recoParam = NULL);
47 void Run(AliQAv1::ALITASK_t tsk, TObjArray ** list, AliDetectorRecoParam * recoParam = NULL);
48 void Run(AliQAv1::ALITASK_t /*tsk*/, TNtupleD ** /*nt*/, AliDetectorRecoParam * /*recoParam*/) {;}
49 void SetExternParamlist(TList * list) { fExternParamList = list ;}
50 void SetHiLo(Float_t * hiValue, Float_t * lowValue) ;
51 void SetPrintImage(Bool_t opt = kTRUE) { fPrintImage = opt ; }
52
53protected:
54 virtual void Check(Double_t *rv, AliQAv1::ALITASK_t, TObjArray **, const AliDetectorRecoParam * recoParam) ;
55
56 Double_t DiffC(const TH1 * href, const TH1 * hin) const ;
57 Double_t DiffK(const TH1 * href, const TH1 * hin) const ;
58 void Finish() const ;
59 void GetRefSubDir(const char * det, const char * task, TDirectory *& dirFile, TObjArray **& dirOCDB) ;
60 virtual void SetQA(AliQAv1::ALITASK_t index, Double_t * value) const ;
61
62 TDirectory * fDataSubDir ; //! directory for the current task directory in the current detector directory in the data file
63 TDirectory * fRefSubDir ; //! directory for the current task directory in the current detector directory in the reference file
64 TObjArray ** fRefOCDBSubDir ; //! Entry in OCDB for the current detector
65 Float_t * fLowTestValue ; // array of lower bounds for INFO, WARNING, ERROR, FATAL
66 Float_t * fUpTestValue ; // array of upper bounds for INFO, WARNING, ERROR, FATAL
67 TCanvas ** fImage ; //[AliRecoParam::kNSpecies]
68 Bool_t fPrintImage ; //! flag to print the images or not
69 TList * fExternParamList; //List of external parameters (TParameter<double>)
70
71private:
72 void Check(Double_t * rv, AliQAv1::ALITASK_t index, const AliDetectorRecoParam * recoParam) ;
73
74 ClassDef(AliQACheckerBase,3) // description
75
76};
77
78#endif // AliQUALASSCHECKERBASE_H