]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliQAChecker.h
An update of the primary vertex reconstruction method, and change of the magnetic...
[u/mrichter/AliRoot.git] / STEER / AliQAChecker.h
index 8e72f14199d324d9bb53c878433615caa9a86cc5..c8989f5a1415530767fbaaa6102062fd1f141e17 100644 (file)
 
 #include <TNamed.h>
 #include <TFile.h>  
+class TNtupleD ;
 
-#include "AliQA.h"
+#include "AliQAv1.h"
+#include "AliRecoParam.h"
+class AliCDBEntry ; 
+class AliRunInfo ;
 class AliQACheckerBase ; 
+class AliDetectorRecoParam ; 
 
 class AliQAChecker: public TNamed {
 public:
@@ -26,31 +31,35 @@ public:
                    const char* title = "Quality Assurance checker for Raws, Hits, Digits and ESDs");
   AliQAChecker(const AliQAChecker& qac);
   AliQAChecker& operator = (const AliQAChecker& qac);
-  virtual ~AliQAChecker();
+  virtual  ~AliQAChecker();
 
-  static  AliQAChecker * Instance() ;
-  AliQACheckerBase *     GetDetQAChecker(Int_t det) ; 
-  TDirectory *           GetRefSubDir(const char * det, const char * task) ;
-  static TFile *         GetQAResultFile() ;
+  static  AliQAChecker *     Instance() ;
+  AliQACheckerBase *         GetDetQAChecker(Int_t det) ; 
+  void                       GetRefSubDir(const char * det, const char * task, TDirectory *& dirFile, TObjArray **& dirOCDB) ;
+//  static TFile *         GetQAResultFile() ;
 //  static const char *    GetQAResultFileName() { return fgQAResultFileName.Data() ; }
 //  void                   SetQAResultDirName(const char * name) ; 
 //  void                   SetRefDirName(const char * name) ; 
-
-  virtual Bool_t Run(const char * fileName = NULL) ;
-  virtual Bool_t Run(AliQA::DETECTORINDEX det, AliQA::TASKINDEX task, TList * list);
+  Bool_t Run(const char * fileName = NULL, AliDetectorRecoParam * recoParam = NULL) ;
+  Bool_t Run(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, TObjArray ** list, AliDetectorRecoParam * recoParam = NULL);
+  Bool_t Run(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, TNtupleD ** list, AliDetectorRecoParam * recoParam = NULL);
+  void   SetRunInfo(AliRunInfo * ei) {fRunInfo = ei;}
+  Int_t  GetRunNumber() { return fRun ; } 
+  void   SetRunNumber(Int_t run) { fRun = run ; } 
 
 private:
-  TFile *      GetDataFile(const char * fileName) ; 
-
-  static AliQAChecker *fgQAChecker ; // pointer to the instance of the singleton
-  TFile * fDataFile ;                     //! Data file to check
-  static TFile * fgQAResultFile ;         //! File where to find the QA result
-//  static TString fgQAResultDirName ;      //! directory where to find the QA result
-//  static TString fgQAResultFileName ;     //! file name where to find the QA result
-//  TString fRefDirName ;                   //! name of directory where to find the reference data file
-//  TString fRefName ;                      //! file name where to find the reference data
-  TString fFoundDetectors ;               //! detectors for which the Quality assurance could be done
-  AliQACheckerBase * fCheckers[AliQA::kNDET] ; //! list of detectors checkers
+
+  void LoadRunInfoFromGRP() ; 
+
+  static AliQAChecker *       fgQAChecker ;             // pointer to the instance of the singleton
+  TFile *                     fDataFile ;               //! Data file to check
+  AliRunInfo *                fRunInfo ;                //! Event info object 
+  Bool_t                      fRunInfoOwner;            //! owns fRunInfo or not
+  TFile *                     fRefFile ;                //! Reference Data file 
+  TString                     fFoundDetectors ;         //! detectors for which the Quality assurance could be done
+  AliQACheckerBase *          fCheckers[AliQAv1::kNDET] ; //! list of detectors checkers
+  AliRecoParam::EventSpecie_t fEventSpecie ;            //! event specie deduced from the GRP data
+       Int_t                       fRun ;                    //! run number
   ClassDef(AliQAChecker, 1)  // class for running generation, simulation and digitization
 };
 #endif