]>
Commit | Line | Data |
---|---|---|
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 | 19 | class TFile ; |
a5fa6165 | 20 | class TH1 ; |
a4976ef3 | 21 | class TList ; |
4b2b2b55 | 22 | class TDirectory ; |
421ab0fb | 23 | |
24 | // --- Standard library --- | |
25 | ||
26 | // --- AliRoot header files --- | |
27 | ||
2e42b4d4 | 28 | class AliQACheckerBase: public TNamed { |
421ab0fb | 29 | |
30 | public: | |
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) ; | |
37 | void Run(AliQA::ALITASK tsk, TList * list=0x0); | |
a4976ef3 | 38 | void SetRefandData(TDirectory * ref, TDirectory * data=NULL) { fRefSubDir = ref ; fDataSubDir = data ; } |
421ab0fb | 39 | |
40 | protected: | |
a5fa6165 | 41 | virtual const Double_t Check() ; |
a4976ef3 | 42 | virtual const Double_t Check(TList * 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 | ||
a5fa6165 | 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 | |
421ab0fb | 49 | |
2e42b4d4 | 50 | ClassDef(AliQACheckerBase,1) // description |
421ab0fb | 51 | |
52 | }; | |
53 | ||
54 | #endif // AliQUALASSCHECKERBASE_H |