Bug corrected.
[u/mrichter/AliRoot.git] / STEER / AliQAChecker.h
CommitLineData
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>
57acd2d2 19class TNtupleD ;
421ab0fb 20
4e25ac79 21#include "AliQAv1.h"
57acd2d2 22#include "AliRecoParam.h"
4edbc5bc 23class AliCDBEntry ;
7e88424f 24class AliRunInfo ;
2e42b4d4 25class AliQACheckerBase ;
9c980fe5 26class AliDetectorRecoParam ;
421ab0fb 27
2e42b4d4 28class AliQAChecker: public TNamed {
421ab0fb 29public:
2e42b4d4 30 AliQAChecker(const char* name = "AliQAChecker",
a4976ef3 31 const char* title = "Quality Assurance checker for Raws, Hits, Digits and ESDs");
2e42b4d4 32 AliQAChecker(const AliQAChecker& qac);
33 AliQAChecker& operator = (const AliQAChecker& qac);
634696f5 34 virtual ~AliQAChecker();
421ab0fb 35
634696f5 36 static AliQAChecker * Instance() ;
37 AliQACheckerBase * GetDetQAChecker(Int_t det) ;
9c980fe5 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);
634696f5 41 void SetRunInfo(AliRunInfo * ei) {fRunInfo = ei;}
42 Int_t GetRunNumber() { return fRun ; }
43 void SetRunNumber(Int_t run) { fRun = run ; }
a4976ef3 44
421ab0fb 45private:
a5fa6165 46
7e88424f 47 void LoadRunInfoFromGRP() ;
cbae8032 48
57acd2d2 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
4e25ac79 55 AliQACheckerBase * fCheckers[AliQAv1::kNDET] ; //! list of detectors checkers
57acd2d2 56 AliRecoParam::EventSpecie_t fEventSpecie ; //! event specie deduced from the GRP data
634696f5 57 Int_t fRun ; //! run number
2e42b4d4 58 ClassDef(AliQAChecker, 1) // class for running generation, simulation and digitization
421ab0fb 59};
421ab0fb 60#endif