#ifndef ALIQAv1_H #define ALIQAv1_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id: AliQAv1.h 31503 2009-03-16 11:01:16Z schutz $ */ // // Quality Assurance Object // #include #include class TFile ; #include "AliLog.h" #include "AliRecoParam.h" class AliQAv1 : public TNamed { public: enum DETECTORINDEX_t { kNULLDET=-1, kITS, kTPC, kTRD, kTOF, kPHOS, kHMPID, kEMCAL, kMUON, kFMD, kZDC, kPMD, kT0, kVZERO, kACORDE, kHLT, kGLOBAL, kCORR, kNDET}; enum ALITASK_t { kNULLTASK=-1, kRAW, kSIM, kREC, kESD, kANA, kNTASK }; enum QABIT_t { kNULLBit=-1, kINFO, kWARNING, kERROR, kFATAL, kNBIT }; enum TASKINDEX_t { kNULLTASKINDEX=-1, kRAWS, kHITS, kSDIGITS, kDIGITS, kRECPOINTS, kTRACKSEGMENTS, kRECPARTICLES, kESDS, kNTASKINDEX }; // Creators - destructors AliQAv1(); // beware singleton, not to be used AliQAv1(const Int_t qalength, ULong_t * qa, const Int_t eslength, Bool_t * es) ; AliQAv1(const ALITASK_t tsk) ; AliQAv1(const DETECTORINDEX_t det) ; AliQAv1(const AliQAv1& qa) ; AliQAv1& operator = (const AliQAv1& qa) ; virtual ~AliQAv1(); static AliQAv1 * Instance() ; static AliQAv1 * Instance(const Int_t qalength, ULong_t * qa, const Int_t eslength, Bool_t * es) ; static AliQAv1 * Instance(const DETECTORINDEX_t det) ; static AliQAv1 * Instance(const ALITASK_t tsk) ; static AliQAv1 * Instance(const TASKINDEX_t tsk) ; Bool_t CheckFatal() const ; static void Close() ; static const char * GetAliTaskName(ALITASK_t tsk) ; Bool_t * GetEventSpecies() { return fEventSpecies ; } static const TString GetExpert() { return fgkExpert ; } static UInt_t GetExpertBit() { return fgkExpertBit ; } static UInt_t GetImageBit() { return fgkImageBit ; } static const TString GetLabLocalFile() { return fgkLabLocalFile ; } static const TString GetLabLocalOCDB() { return fgkLabLocalOCDB ; } static const TString GetLabAliEnOCDB() { return fgkLabAliEnOCDB ; } static DETECTORINDEX_t GetDetIndex(const char * name) ; static const TString GetDetName(DETECTORINDEX_t det) { return fgDetNames[det] ; } static const char * GetDetName(Int_t det) ; static const TString GetGRPPath() { return fgGRPPath ; } ULong_t * GetQA() { return fQA ; } static UInt_t GetQABit() { return fgkQABit ; } static TFile * GetQADataFile(const char * name, Int_t run) ; static TFile * GetQADataFile(const char * fileName) ; static const char * GetQADataFileName(const char * name, Int_t run) {return Form("%s.%s.%d.root", name, fgQADataFileName.Data(), run) ; } static const char * GetQADataFileName() { return fgQADataFileName.Data() ; } static Int_t GetQADebugLevel() { return fgkQADebugLevel ; } static const char * GetQAName() { return fgkQAName ; } static const char * GetQACorrName() { return fgkQACorrNtName ; } static TFile * GetQAResultFile() ; static const char * GetQAResultFileName() { return (fgQAResultDirName + fgQAResultFileName).Data() ; } static const char * GetQARefDefaultStorage() { return fgkQARefOCDBDefault.Data() ; } static const char * GetQARefFileName() { return fgQARefFileName ; } static const char * GetQARefStorage() { return fgQARefDirName.Data() ; } static const char * GetRefOCDBDirName() { return fgkRefOCDBDirName.Data() ; } static const char * GetRefDataDirName() { return fgRefDataDirName.Data() ; } static TASKINDEX_t GetTaskIndex(const char * name) ; static TString GetTaskName(UInt_t tsk) { return fgTaskNames[tsk] ; } Bool_t IsEventSpecieSet(AliRecoParam::EventSpecie_t es) const {Int_t ibit=0; while(es!=1<