]>
Commit | Line | Data |
---|---|---|
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 AliRunLoader; | |
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 | static TFile * GetDataFile() { return TFile::Open(AliQualAss::GetOutputName()) ; } | |
32 | static TFile * GetRefFile() { return TFile::Open(GetRefFileName()) ; } | |
33 | static const char * GetRefFileName() { return fgRefName.Data() ; } | |
34 | static TFile * GetOutFile() ; | |
35 | static const char * GetOutFileName() { return fgOutName.Data() ; } | |
36 | void SetOutDir(const char * outDir) ; | |
37 | void SetRefDir(const char * refDir) ; | |
38 | void SetGAliceFile(const char* fileName) ; | |
39 | ||
40 | virtual Bool_t Run(); | |
41 | ||
42 | private: | |
43 | AliRunLoader* LoadRun(const char* mode = "UPDATE") const; | |
44 | ||
45 | TString fGAliceFileName ; // name of the galice file | |
46 | static TFile * fgOutFile ; // File where to find the QA result | |
47 | static TString fgOutDir ; // directory where to find the QA result | |
48 | static TString fgOutName ; // file name where to find the QA result | |
49 | static TString fgRefDir ; // directory where to find the reference data | |
50 | static TString fgRefName ; // file name where to find the reference data | |
51 | Bool_t fStopOnError; // stop or continue on errors | |
52 | ||
53 | ClassDef(AliQualAssChecker, 1) // class for running generation, simulation and digitization | |
54 | }; | |
55 | ||
56 | #endif |