]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - STEER/STEER/AliQAChecker.h
Merge branch 'master' into TPCdev
[u/mrichter/AliRoot.git] / STEER / STEER / AliQAChecker.h
... / ...
CommitLineData
1#ifndef ALIQACHECKER_H
2#define ALIQACHECKER_H
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:
11// AliQAChecker qac;
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>
19class TNtupleD ;
20
21#include "AliQAv1.h"
22#include "AliRecoParam.h"
23class AliCDBEntry ;
24class AliRunInfo ;
25class AliQACheckerBase ;
26class AliDetectorRecoParam ;
27
28class AliQAChecker: public TNamed {
29public:
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();
35
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() const { return fRun ; }
43 void SetRunNumber(Int_t run) { fRun = run ; }
44
45private:
46
47 void LoadRunInfoFromGRP() ;
48
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
59};
60#endif