]>
Commit | Line | Data |
---|---|---|
2e42b4d4 | 1 | #ifndef ALIQAChecker_H |
2 | #define ALIQAChecker_H | |
421ab0fb | 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: | |
2e42b4d4 | 11 | // AliQAChecker qac; |
421ab0fb | 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 | ||
2e42b4d4 | 20 | #include "AliQA.h" |
4edbc5bc | 21 | class AliCDBEntry ; |
7e88424f | 22 | class AliRunInfo ; |
2e42b4d4 | 23 | class AliQACheckerBase ; |
421ab0fb | 24 | |
2e42b4d4 | 25 | class AliQAChecker: public TNamed { |
421ab0fb | 26 | public: |
2e42b4d4 | 27 | AliQAChecker(const char* name = "AliQAChecker", |
a4976ef3 | 28 | const char* title = "Quality Assurance checker for Raws, Hits, Digits and ESDs"); |
2e42b4d4 | 29 | AliQAChecker(const AliQAChecker& qac); |
30 | AliQAChecker& operator = (const AliQAChecker& qac); | |
31 | virtual ~AliQAChecker(); | |
421ab0fb | 32 | |
2e42b4d4 | 33 | static AliQAChecker * Instance() ; |
34 | AliQACheckerBase * GetDetQAChecker(Int_t det) ; | |
f73f556a | 35 | void GetRefSubDir(const char * det, const char * task, TDirectory *& dirFile, TObjArray *& dirOCDB) ; |
8bea2de0 | 36 | // static TFile * GetQAResultFile() ; |
4ecde5fc | 37 | // static const char * GetQAResultFileName() { return fgQAResultFileName.Data() ; } |
38 | // void SetQAResultDirName(const char * name) ; | |
94faf3be | 39 | // void SetRefDirName(const char * name) ; |
421ab0fb | 40 | |
808b7099 | 41 | virtual Bool_t Run(const char * fileName = NULL) ; |
a2b64fbd | 42 | virtual Bool_t Run(AliQA::DETECTORINDEX_t det, AliQA::TASKINDEX_t task, TObject * obj = NULL); |
7e88424f | 43 | void SetRunInfo(AliRunInfo * ei) {fRunInfo = ei;} |
a4976ef3 | 44 | |
421ab0fb | 45 | private: |
a5fa6165 | 46 | |
7e88424f | 47 | void LoadRunInfoFromGRP() ; |
cbae8032 | 48 | |
49 | static AliQAChecker *fgQAChecker ; // pointer to the instance of the singleton | |
50 | TFile * fDataFile ; //! Data file to check | |
7e88424f | 51 | AliRunInfo * fRunInfo ; //! Event info object |
52 | Bool_t fRunInfoOwner; //! owns fRunInfo or not | |
cbae8032 | 53 | TFile * fRefFile ; //! Reference Data file |
54 | TString fFoundDetectors ; //! detectors for which the Quality assurance could be done | |
55 | AliQACheckerBase * fCheckers[AliQA::kNDET] ; //! list of detectors checkers | |
2e42b4d4 | 56 | ClassDef(AliQAChecker, 1) // class for running generation, simulation and digitization |
421ab0fb | 57 | }; |
421ab0fb | 58 | #endif |