]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliQualAssChecker.h
Updated QA classes (Yves)
[u/mrichter/AliRoot.git] / STEER / AliQualAssChecker.h
1 #ifndef ALIQUALASSChecker_H
2 #define ALIQUALASSChecker_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //
9 // class for running the Quality Assurance Checker
10 // to run type:
11 //   AliQualAssChecker qac;
12 //   qac.Run();
13 //   qac.SelectDetectors("list of detectors") ; 
14 //   qac.SelectTargets("list of targets among Hits, Digits, ESD") ; 
15 //
16
17 #include <TNamed.h>
18 #include <TFile.h>  
19
20 #include "AliQualAss.h"
21 class AliQualAssCheckerBase ; 
22
23 class AliQualAssChecker: public TNamed {
24 public:
25   AliQualAssChecker(const char* name = "AliQualAssChecker", 
26                     const char* title = "Quality Assurance checker for Hits, Digits and ESDs");
27   AliQualAssChecker(const AliQualAssChecker& qac);
28   AliQualAssChecker& operator = (const AliQualAssChecker& qac);
29   virtual ~AliQualAssChecker();
30
31   AliQualAssCheckerBase * GetDetQualAssChecker(Int_t det) ; 
32   TDirectory *            GetRefSubDir(const char * det, const char * task) ;
33   static TFile *          GetQAResultFile() ;
34   static const char *     GetQAResultFileName() { return fgQAResultFileName.Data() ; }
35   void                    SetQAResultDirName(const char * name) ; 
36   void                    SetRefDirName(const char * name) ; 
37
38   virtual Bool_t Run();
39   
40 private:
41 //   AliRunLoader*  LoadRun(const char* mode = "UPDATE") const;
42   TFile *      GetDataFile() ; 
43
44   TFile * fDataFile ;                //! Data file to check
45   static TFile * fgQAResultFile ;    //! File where to find the QA result
46   static TString fgQAResultDirName ; //! directory where to find the QA result
47   static TString fgQAResultFileName ;//! file name where to find the QA result
48   TString fRefDirName ;              //! name of directory where to find the reference data file
49   TString fRefName ;                 //! file name where to find the reference data
50   TString fFoundDetectors ;          //! detectors for which the Quality assurance could be done
51   AliQualAssCheckerBase * fCheckers[AliQualAss::kNDET] ; //! list of detectors checkers
52   ClassDef(AliQualAssChecker, 1)  // class for running generation, simulation and digitization
53 };
54
55 #endif