]>
Commit | Line | Data |
---|---|---|
421ab0fb | 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" | |
a5fa6165 | 21 | class AliQualAssCheckerBase ; |
421ab0fb | 22 | |
23 | class AliQualAssChecker: public TNamed { | |
24 | public: | |
25 | AliQualAssChecker(const char* name = "AliQualAssChecker", | |
a4976ef3 | 26 | const char* title = "Quality Assurance checker for Raws, Hits, Digits and ESDs"); |
421ab0fb | 27 | AliQualAssChecker(const AliQualAssChecker& qac); |
28 | AliQualAssChecker& operator = (const AliQualAssChecker& qac); | |
29 | virtual ~AliQualAssChecker(); | |
30 | ||
a4976ef3 | 31 | static AliQualAssChecker * Instance() ; |
32 | AliQualAssCheckerBase * GetDetQualAssChecker(Int_t det) ; | |
33 | TDirectory * GetRefSubDir(const char * det, const char * task) ; | |
34 | static TFile * GetQAResultFile() ; | |
35 | static const char * GetQAResultFileName() { return fgQAResultFileName.Data() ; } | |
36 | void SetQAResultDirName(const char * name) ; | |
37 | void SetRefDirName(const char * name) ; | |
421ab0fb | 38 | |
39 | virtual Bool_t Run(); | |
a4976ef3 | 40 | virtual Bool_t Run(AliQualAss::DETECTORINDEX det, AliQualAss::TASKINDEX task, TList * list); |
41 | ||
421ab0fb | 42 | private: |
a5fa6165 | 43 | TFile * GetDataFile() ; |
44 | ||
a4976ef3 | 45 | static AliQualAssChecker *fgQAChecker ; // pointer to the instance of the singleton |
46 | TFile * fDataFile ; //! Data file to check | |
47 | static TFile * fgQAResultFile ; //! File where to find the QA result | |
48 | static TString fgQAResultDirName ; //! directory where to find the QA result | |
49 | static TString fgQAResultFileName ; //! file name where to find the QA result | |
50 | TString fRefDirName ; //! name of directory where to find the reference data file | |
51 | TString fRefName ; //! file name where to find the reference data | |
52 | TString fFoundDetectors ; //! detectors for which the Quality assurance could be done | |
a5fa6165 | 53 | AliQualAssCheckerBase * fCheckers[AliQualAss::kNDET] ; //! list of detectors checkers |
421ab0fb | 54 | ClassDef(AliQualAssChecker, 1) // class for running generation, simulation and digitization |
55 | }; | |
421ab0fb | 56 | #endif |