]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliQA.h
Moved a methof from private to public
[u/mrichter/AliRoot.git] / STEER / AliQA.h
index 851380455d01f8aba04304250adc90090de30e3a..b63971ccfdd45675993897a2a2a0a5601af67207 100644 (file)
@@ -19,7 +19,7 @@ public:
 
        enum DETECTORINDEX_t {
     kNULLDET=-1, kITS, kTPC, kTRD, kTOF, kPHOS, kHMPID, kEMCAL, kMUON, kFMD,
-    kZDC, kPMD, kT0, kVZERO, kACORDE, kHLT, kGLOBAL, kNDET };
+    kZDC, kPMD, kT0, kVZERO, kACORDE, kHLT, kGLOBAL, kCORR, kNDET};
        enum ALITASK_t {
     kNULLTASK=-1, kRAW, kSIM, kREC, kESD, kANA, kNTASK };
        enum QABIT_t {
@@ -33,7 +33,7 @@ public:
                        kSTANDALONE_SEMICENTRAL, kSTANDALONE_PULSER, kNTYPE};
        
        enum TASKINDEX_t {
-    kRAWS, kHITS, kSDIGITS, kDIGITS, kRECPOINTS, kTRACKSEGMENTS, kRECPARTICLES, kESDS, kNTASKINDEX };
+    kNULLTASKINDEX=-1, kRAWS, kHITS, kSDIGITS, kDIGITS, kRECPOINTS, kTRACKSEGMENTS, kRECPARTICLES, kESDS, kNTASKINDEX };
   
        // Creators - destructors
        AliQA(); // beware singleton, not to be used
@@ -50,6 +50,8 @@ public:
        const Bool_t           CheckFatal() const ;
        static void            Close() ; 
        static const char *    GetAliTaskName(ALITASK_t tsk) ;
+  static const TString   GetExpert() { return fkgExpert ; }
+  static const UInt_t    GetExpertBit() { return fkgExpertBit ; }
        static const TString   GetLabLocalFile() { return fkgLabLocalFile ; } 
        static const TString   GetLabLocalOCDB() { return fkgLabLocalOCDB ; } 
        static const TString   GetLabAliEnOCDB() { return fkgLabAliEnOCDB ; } 
@@ -57,12 +59,14 @@ public:
        static const TString   GetDetName(DETECTORINDEX_t det) { return fgDetNames[det] ; }
        static const char *    GetDetName(Int_t det) ;
        static const TString   GetGRPPath() { return fgGRPPath ; }  
-       static TFile *         GetQADataFile(const char * name, const Int_t run, const Int_t cycle) ; 
+  static const UInt_t    GetQABit() { return fkgQABit ; }
+       static TFile *         GetQADataFile(const char * name, const Int_t run) ; 
        static TFile *         GetQADataFile(const char * fileName) ;
-       static const char *    GetQADataFileName(const char * name, const Int_t run, const Int_t cycle
-                                                                                                               {return Form("%s.%s.%d.%d.root", name, fgQADataFileName.Data(), run, cycle)  ; }
+       static const char *    GetQADataFileName(const char * name, const Int_t run) 
+                                                                                                               {return Form("%s.%s.%d.root", name, fgQADataFileName.Data(), run)  ; }
        static const char *    GetQADataFileName() { return fgQADataFileName.Data() ; }
        static const char *    GetQAName() { return fkgQAName ; } 
+  static const char *    GetQACorrName() { return fkgQACorrNtName ; }
        static TFile *         GetQAResultFile() ; 
        static const char  *   GetQAResultFileName() { return (fgQAResultDirName + fgQAResultFileName).Data() ; }
        static const char  *   GetQARefDefaultStorage() { return fkgQARefOCDBDefault.Data() ; }
@@ -71,16 +75,21 @@ public:
        static const char  *   GetRefOCDBDirName() { return fkgRefOCDBDirName.Data() ; }
        static const char  *   GetRefDataDirName() { return fkgRefDataDirName.Data() ; }
        static const TString   GetRunTypeName(RUNTYPE_t rt = kNULLTYPE) ;
-       static const TString   GetTaskName(TASKINDEX_t tsk) { return fgTaskNames[tsk] ; }
+       static const TASKINDEX_t GetTaskIndex(const char * name) ; 
+       static const TString   GetTaskName(UInt_t tsk) { return fgTaskNames[tsk] ; }
        const Bool_t           IsSet(DETECTORINDEX_t det, ALITASK_t tsk, QABIT_t bit) const ;
+       const Bool_t           IsSetAny(DETECTORINDEX_t det, ALITASK_t tsk) const ;
+       const Bool_t           IsSetAny(DETECTORINDEX_t det) const ;
+       void                   Merge(TCollection * list) ; 
        void                   Set(QABIT_t bit) ;
        static void                            SetQAResultDirName(const char * name) ; 
        static void            SetQARefStorage(const char * name) ; 
        static void            SetQARefDataDirName(RUNTYPE_t rt) { fkgRefDataDirName = GetRunTypeName(rt) ; }
        static void            SetQARefDataDirName(const char * name) ;
-       void                   Show() const { ShowStatus(fDet) ; }
+       void                   Show() const { ShowStatus(fDet, fTask) ; }
        void                   Show(DETECTORINDEX_t det) const { ShowStatus(det) ; }
        void                   ShowAll() const ;
+       void                   ShowStatus(DETECTORINDEX_t det, ALITASK_t tsk=kNULLTASK) const ;
        void                   UnSet(QABIT_t bit) ;
 
 private:      
@@ -92,7 +101,6 @@ private:
        const ULong_t        GetStatus(DETECTORINDEX_t det) const  { return fQA[det] ;}
        void                 Finish() const ;  
        const ULong_t        Offset(ALITASK_t tsk) const ;
-       void                 ShowStatus(DETECTORINDEX_t det) const ;
        void                 ShowASCIIStatus(DETECTORINDEX_t det, ALITASK_t tsk, ULong_t status) const ; 
        void                 ResetStatus(DETECTORINDEX_t det) { fQA[det] = 0 ; }
        void                 Set(DETECTORINDEX_t det) { fDet = det ;}
@@ -102,7 +110,7 @@ private:
        void                 UnSetStatusBit(DETECTORINDEX_t det, ALITASK_t tsk, QABIT_t bit) ;
 
        static AliQA *       fgQA                               ; // pointer to the instance of the singleton
-       Int_t          fNdet                              ; // number of detectors
+       Int_t                fNdet                  ; // number of detectors
        ULong_t    *         fQA                                ; //[fNdet] the status word 4 bits for SIM, REC, ESD, ANA each
        DETECTORINDEX_t      fDet                               ; //!  the current detector (ITS, TPC, ....)
        ALITASK_t            fTask                      ; //!  the current environment (SIM, REC, ESD, ANA)
@@ -118,11 +126,15 @@ private:
        static TString       fgQAResultFileName     ; //! the output file where the QA results are stored  
        static TString       fgRTNames[]                  ; //! list of Run Type names   
        static TString       fgTaskNames[]              ; //! list of tasks names   
+  static const TString fkgExpert              ; //! name for the expert directory
+  static const UInt_t  fkgExpertBit           ; //! TObject bit identifing the object as "expert"
        static const TString fkgLabLocalFile        ; //! label to identify a file as local 
        static const TString fkgLabLocalOCDB        ; //! label to identify a file as local OCDB 
        static const TString fkgLabAliEnOCDB        ; //! label to identify a file as AliEn OCDB 
        static const TString fkgRefFileName         ; //! name of Reference File Name 
+       static const UInt_t  fkgQABit               ; //! bit in the QA data object which is set when Checker does not return 0
        static const TString fkgQAName              ; //! name of QA object 
+       static const TString fkgQACorrNtName        ; //! name of QA Correlation Ntuple
        static const TString fkgRefOCDBDirName      ; //! name of Reference directory name in OCDB      
        static       TString fkgRefDataDirName      ; //! name of Reference directory name in OCDB for data     
        static const TString fkgQARefOCDBDefault    ; //! default storage for QA in OCDB