]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliQualAssCheckerBase.h
Checking done at the EndOfCycle
[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 class TList ; 
22
23 // --- Standard library ---
24
25 // --- AliRoot header files ---
26
27 class AliQualAssCheckerBase: public TNamed {
28
29 public:
30   AliQualAssCheckerBase(const char * name = "", const char * title = "") ;          // ctor
31   AliQualAssCheckerBase(const AliQualAssCheckerBase& qac) ;   
32   AliQualAssCheckerBase& operator = (const AliQualAssCheckerBase& qac) ;
33   virtual ~AliQualAssCheckerBase() {;} // dtor
34
35   void   Init(const AliQualAss::DETECTORINDEX det) ; 
36   void   Run(AliQualAss::ALITASK tsk); 
37   void   Run(AliQualAss::ALITASK tsk, TList * list); 
38   void   SetRefandData(TDirectory * ref, TDirectory * data=NULL) { fRefSubDir = ref ;  fDataSubDir = data ; }
39
40 protected:
41   virtual const Double_t Check() ;
42   virtual const Double_t Check(TList * list) ;
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
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
50   ClassDef(AliQualAssCheckerBase,1)  // description 
51
52 };
53
54 #endif // AliQUALASSCHECKERBASE_H