]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliQAChecker.h
PreReading of MC information on demand.
[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) ;
38 void GetRefSubDir(const char * det, const char * task, TDirectory *& dirFile, TObjArray **& dirOCDB) ;
8bea2de0 39// static TFile * GetQAResultFile() ;
4ecde5fc 40// static const char * GetQAResultFileName() { return fgQAResultFileName.Data() ; }
41// void SetQAResultDirName(const char * name) ;
94faf3be 42// void SetRefDirName(const char * name) ;
9c980fe5 43 Bool_t Run(const char * fileName = NULL, AliDetectorRecoParam * recoParam = NULL) ;
44 Bool_t Run(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, TObjArray ** list, AliDetectorRecoParam * recoParam = NULL);
45 Bool_t Run(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, TNtupleD ** list, AliDetectorRecoParam * recoParam = NULL);
634696f5 46 void SetRunInfo(AliRunInfo * ei) {fRunInfo = ei;}
47 Int_t GetRunNumber() { return fRun ; }
48 void SetRunNumber(Int_t run) { fRun = run ; }
a4976ef3 49
421ab0fb 50private:
a5fa6165 51
7e88424f 52 void LoadRunInfoFromGRP() ;
cbae8032 53
57acd2d2 54 static AliQAChecker * fgQAChecker ; // pointer to the instance of the singleton
55 TFile * fDataFile ; //! Data file to check
56 AliRunInfo * fRunInfo ; //! Event info object
57 Bool_t fRunInfoOwner; //! owns fRunInfo or not
58 TFile * fRefFile ; //! Reference Data file
59 TString fFoundDetectors ; //! detectors for which the Quality assurance could be done
4e25ac79 60 AliQACheckerBase * fCheckers[AliQAv1::kNDET] ; //! list of detectors checkers
57acd2d2 61 AliRecoParam::EventSpecie_t fEventSpecie ; //! event specie deduced from the GRP data
634696f5 62 Int_t fRun ; //! run number
2e42b4d4 63 ClassDef(AliQAChecker, 1) // class for running generation, simulation and digitization
421ab0fb 64};
421ab0fb 65#endif