]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliQACheckerBase.h
TList replaced by TObjArray as QA data container. Introducing OCDB for the reference...
[u/mrichter/AliRoot.git] / STEER / AliQACheckerBase.h
CommitLineData
2e42b4d4 1#ifndef ALIQACHECKERBASE_H
2#define ALIQACHECKERBASE_H
421ab0fb 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
2e42b4d4 11 Compares Data made by QADataMakers with reference data
421ab0fb 12 Y. Schutz CERN August 2007
13*/
14
15
16// --- ROOT system ---
17#include <TNamed.h>
2e42b4d4 18#include "AliQA.h"
421ab0fb 19class TFile ;
a5fa6165 20class TH1 ;
4edbc5bc 21class TObjArray ;
4b2b2b55 22class TDirectory ;
421ab0fb 23
24// --- Standard library ---
25
26// --- AliRoot header files ---
27
2e42b4d4 28class AliQACheckerBase: public TNamed {
421ab0fb 29
30public:
2e42b4d4 31 AliQACheckerBase(const char * name = "", const char * title = "") ; // ctor
32 AliQACheckerBase(const AliQACheckerBase& qac) ;
33 AliQACheckerBase& operator = (const AliQACheckerBase& qac) ;
34 virtual ~AliQACheckerBase() {;} // dtor
35
36 void Init(const AliQA::DETECTORINDEX det) ;
4edbc5bc 37 void Run(AliQA::ALITASK tsk, TObjArray * list=0x0);
38 void SetRefandData(TDirectory * ref, TList * refOCDB, TDirectory * data=NULL) { fRefSubDir = ref ; fRefOCDBSubDir = refOCDB, fDataSubDir = data ; }
421ab0fb 39
40protected:
a5fa6165 41 virtual const Double_t Check() ;
4edbc5bc 42 virtual const Double_t Check(TObjArray * list) ;
421ab0fb 43 const Double_t DiffC(const TH1 * href, const TH1 * hin) const ;
44 const Double_t DiffK(const TH1 * href, const TH1 * hin) const ;
45 void Finish() const ;
46
4edbc5bc 47 TDirectory * fDataSubDir ; //! directory for the current task directory in the current detector directory in the data file
48 TDirectory * fRefSubDir ; //! directory for the current task directory in the current detector directory in the reference file
49 TList * fRefOCDBSubDir ; //! Entry in OCDB for the current detector
421ab0fb 50
2e42b4d4 51 ClassDef(AliQACheckerBase,1) // description
421ab0fb 52
53};
54
55#endif // AliQUALASSCHECKERBASE_H