]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliQAChecker.h
bug fix when grid connection is down
[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>
19
2e42b4d4 20#include "AliQA.h"
4edbc5bc 21class AliCDBEntry ;
2e42b4d4 22class AliQACheckerBase ;
421ab0fb 23
2e42b4d4 24class AliQAChecker: public TNamed {
421ab0fb 25public:
2e42b4d4 26 AliQAChecker(const char* name = "AliQAChecker",
a4976ef3 27 const char* title = "Quality Assurance checker for Raws, Hits, Digits and ESDs");
2e42b4d4 28 AliQAChecker(const AliQAChecker& qac);
29 AliQAChecker& operator = (const AliQAChecker& qac);
30 virtual ~AliQAChecker();
421ab0fb 31
2e42b4d4 32 static AliQAChecker * Instance() ;
33 AliQACheckerBase * GetDetQAChecker(Int_t det) ;
f73f556a 34 void GetRefSubDir(const char * det, const char * task, TDirectory *& dirFile, TObjArray *& dirOCDB) ;
8bea2de0 35// static TFile * GetQAResultFile() ;
4ecde5fc 36// static const char * GetQAResultFileName() { return fgQAResultFileName.Data() ; }
37// void SetQAResultDirName(const char * name) ;
94faf3be 38// void SetRefDirName(const char * name) ;
421ab0fb 39
808b7099 40 virtual Bool_t Run(const char * fileName = NULL) ;
4edbc5bc 41 virtual Bool_t Run(AliQA::DETECTORINDEX det, AliQA::TASKINDEX task, TObjArray * list);
a4976ef3 42
421ab0fb 43private:
a5fa6165 44
2e42b4d4 45 static AliQAChecker *fgQAChecker ; // pointer to the instance of the singleton
a4976ef3 46 TFile * fDataFile ; //! Data file to check
4edbc5bc 47 TFile * fRefFile ; //! Reference Data file
a4976ef3 48 TString fFoundDetectors ; //! detectors for which the Quality assurance could be done
2e42b4d4 49 AliQACheckerBase * fCheckers[AliQA::kNDET] ; //! list of detectors checkers
50 ClassDef(AliQAChecker, 1) // class for running generation, simulation and digitization
421ab0fb 51};
421ab0fb 52#endif