]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliQualAssCheckerBase.h
Updated QA classes (Yves)
[u/mrichter/AliRoot.git] / STEER / AliQualAssCheckerBase.h
1 #ifndef ALIQUALASSCHECKERBASE_H
2 #define ALIQUALASSCHECKERBASE_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 QualAssDataMakers with reference data
12   Y. Schutz CERN August 2007
13 */
14
15
16 // --- ROOT system ---
17 #include <TNamed.h>
18 #include "AliQualAss.h"
19 class TFile ; 
20 class TH1 ; 
21
22 // --- Standard library ---
23
24 // --- AliRoot header files ---
25
26 class AliQualAssCheckerBase: public TNamed {
27
28 public:
29   AliQualAssCheckerBase(const char * name = "", const char * title = "") ;          // ctor
30   AliQualAssCheckerBase(const AliQualAssCheckerBase& qac) ;   
31   AliQualAssCheckerBase& operator = (const AliQualAssCheckerBase& qac) ;
32   virtual ~AliQualAssCheckerBase() {;} // dtor
33
34   void   Run(AliQualAss::ALITASK tsk); 
35   void   Init(const AliQualAss::DETECTORINDEX det) ; 
36   void   SetRefandData(TDirectory * ref, TDirectory * data) { fRefSubDir = ref ;  fDataSubDir = data ; }
37
38 protected:
39   virtual const Double_t Check() ;
40   const Double_t DiffC(const TH1 * href, const TH1 * hin) const ;   
41   const Double_t DiffK(const TH1 * href, const TH1 * hin) const ;   
42   void           Finish() const ; 
43
44   TDirectory * fDataSubDir ; //! directory for the current task directory in the current detector directory in the data file
45   TDirectory * fRefSubDir  ; //! directory for the current task directory in the current detector directory in the reference file
46
47   ClassDef(AliQualAssCheckerBase,1)  // description 
48
49 };
50
51 #endif // AliQUALASSCHECKERBASE_H