]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliQualAssCheckerBase.h
eb3ec064056df5105190123ff9831e597ef522a1
[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 class TFile ; 
19
20 // --- Standard library ---
21
22 // --- AliRoot header files ---
23
24 class AliQualAssCheckerBase: public TNamed {
25
26 public:
27   AliQualAssCheckerBase(const char * name = "", const char * title = "") ;          // ctor
28   AliQualAssCheckerBase(const AliQualAssCheckerBase& qac) ;   
29   AliQualAssCheckerBase& operator = (const AliQualAssCheckerBase& qac) ;
30   virtual ~AliQualAssCheckerBase() {;} // dtor
31
32   void   Exec(const Option_t * = ""); 
33
34 protected:
35   void Init() ; 
36   virtual const Double_t Check(const Option_t *) {AliInfo("To be implemented by detectors") ; } 
37   const Double_t DiffC(const TH1 * href, const TH1 * hin) const ;   
38   const Double_t DiffK(const TH1 * href, const TH1 * hin) const ;   
39   void           Finish() const ; 
40
41   TFile * fData ;                //! data root file produced by the QualAssDataMaker
42   TDirectory * fDetectorDir ;    //! directory for the given detector in the data file
43   TFile * fRef   ;               //! reference root file
44
45   ClassDef(AliQualAssCheckerBase,1)  // description 
46
47 };
48
49 #endif // AliQUALASSCHECKERBASE_H