3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 // class for running the Quality Assurance Checker
13 // qac.SelectDetectors("list of detectors") ;
14 // qac.SelectTargets("list of targets among Hits, Digits, ESD") ;
22 #include "AliRecoParam.h"
25 class AliQACheckerBase ;
26 class AliDetectorRecoParam ;
28 class AliQAChecker: public TNamed {
30 AliQAChecker(const char* name = "AliQAChecker",
31 const char* title = "Quality Assurance checker for Raws, Hits, Digits and ESDs");
32 AliQAChecker(const AliQAChecker& qac);
33 AliQAChecker& operator = (const AliQAChecker& qac);
34 virtual ~AliQAChecker();
36 static AliQAChecker * Instance() ;
37 AliQACheckerBase * GetDetQAChecker(Int_t det) ;
38 Bool_t Run(const char * fileName = NULL, AliDetectorRecoParam * recoParam = NULL) ;
39 Bool_t Run(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, TObjArray ** list, AliDetectorRecoParam * recoParam = NULL);
40 Bool_t Run(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, TNtupleD ** list, AliDetectorRecoParam * recoParam = NULL);
41 void SetRunInfo(AliRunInfo * ei) {fRunInfo = ei;}
42 Int_t GetRunNumber() { return fRun ; }
43 void SetRunNumber(Int_t run) { fRun = run ; }
47 void LoadRunInfoFromGRP() ;
49 static AliQAChecker * fgQAChecker ; // pointer to the instance of the singleton
50 TFile * fDataFile ; //! Data file to check
51 AliRunInfo * fRunInfo ; //! Event info object
52 Bool_t fRunInfoOwner; //! owns fRunInfo or not
53 TFile * fRefFile ; //! Reference Data file
54 TString fFoundDetectors ; //! detectors for which the Quality assurance could be done
55 AliQACheckerBase * fCheckers[AliQAv1::kNDET] ; //! list of detectors checkers
56 AliRecoParam::EventSpecie_t fEventSpecie ; //! event specie deduced from the GRP data
57 Int_t fRun ; //! run number
58 ClassDef(AliQAChecker, 1) // class for running generation, simulation and digitization