]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliQAv1.h
For embedding: use AliESDEvent instead of AliESD (obsolete)
[u/mrichter/AliRoot.git] / STEER / AliQAv1.h
index 1404407a9fe488e510b9872515150472fefabce9..4cc9d6b8b8a8472371663053bfd943226b9df6d1 100644 (file)
@@ -27,7 +27,7 @@ public:
   enum QABIT_t {
     kNULLBit=-1, kINFO, kWARNING, kERROR, kFATAL, kNBIT };
   enum TASKINDEX_t {
-    kNULLTASKINDEX=-1, kRAWS, kHITS, kSDIGITS, kDIGITS, kRECPOINTS, kTRACKSEGMENTS, kRECPARTICLES, kESDS, kNTASKINDEX };
+    kNULLTASKINDEX=-1, kRAWS, kHITS, kSDIGITS, kDIGITS, kDIGITSR, kRECPOINTS, kTRACKSEGMENTS, kRECPARTICLES, kESDS, kNTASKINDEX };
   
   // Creators - destructors
   AliQAv1(); // beware singleton, not to be used
@@ -38,17 +38,20 @@ public:
   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) ;
+  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 char *    GetImageFileName() { return fImageFileName.Data() ; }
+  static const char *    GetImageFileFormat() { return fImageFileFormat.Data() ; }
   static const TString   GetLabLocalFile() { return fgkLabLocalFile ; } 
   static const TString   GetLabLocalOCDB() { return fgkLabLocalOCDB ; } 
   static const TString   GetLabAliEnOCDB() { return fgkLabAliEnOCDB ; } 
@@ -63,8 +66,10 @@ public:
   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  UShort_t       GetMaxQAObj() { return fgkMaxQAObjects ; }
   static TFile *         GetQAResultFile() ; 
   static const char  *   GetQAResultFileName() { return (fgQAResultDirName + fgQAResultFileName).Data() ; }
   static const char  *   GetQARefDefaultStorage() { return fgkQARefOCDBDefault.Data() ; }
@@ -85,7 +90,8 @@ public:
   void                   Set(QABIT_t bit, AliRecoParam::EventSpecie_t es) ;
   void                   Set(QABIT_t bit, Int_t es) ;
   void                   SetEventSpecie(AliRecoParam::EventSpecie_t es) 
-  {Int_t ibit=0; while(es!=1<<ibit) ++ibit; fEventSpecies[ibit] = kTRUE ; }
+  {if(es==AliRecoParam::kDefault) return; Int_t ibit=0; while(es!=1<<ibit) ++ibit; fEventSpecies[ibit] = kTRUE ; }
+  static void            SetQADebug() { AliLog::SetGlobalDebugLevel(GetQADebugLevel()); }
   static void            SetQAResultDirName(const char * name) ; 
   static void            SetQARefStorage(const char * name) ; 
   static void            SetQARefDataDirName(AliRecoParam::EventSpecie_t es) { fgRefDataDirName = AliRecoParam::GetEventSpecieName(es) ; }
@@ -109,45 +115,50 @@ private:
   void                  ShowASCIIStatus(AliRecoParam::EventSpecie_t es, DETECTORINDEX_t det, ALITASK_t tsk, ULong_t status) const ; 
   void                  ResetStatus(DETECTORINDEX_t det) ; 
   void                  Set(DETECTORINDEX_t det) { fDet = det ;}
-  void                  Set(ALITASK_t tsk) { fTask = tsk ; AliDebug(1, Form("Ready to set QA status in %s", GetAliTaskName(tsk) )) ; }
+  void                  Set(ALITASK_t tsk) { fTask = tsk ; AliDebug(GetQADebugLevel(), Form("Ready to set QA status in %s", GetAliTaskName(tsk) )) ; }
   void                  SetStatus(DETECTORINDEX_t det, AliRecoParam::EventSpecie_t es, ULong_t status) { fQA[det*fNEventSpecies+(Int_t)TMath::Log2(es)] = status ; }
   void                  SetStatusBit(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit) ;
   void                  UnSetStatusBit(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit) ;
   
-  static AliQAv1 *       fgQA                          ; // pointer to the instance of the singleton
-  Int_t                fNdet                       ; // number of detectors
-  Int_t                fNEventSpecies         ; // number of Event Species (see AliRecoParam)
-  Int_t                fLengthQA              ; // Auxiliary length of fQA
-  ULong_t    *         fQA                             ; //[fLengthQA]  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)
-  AliRecoParam::EventSpecie_t fEventSpecie    ; //! the current event specie
-  static TString       fgDetNames[]              ; //! list of detector names   
-  static TString       fgGRPPath              ; //! path of the GRP object in OCDB
-  static TFile *       fgQADataFile              ; //! the output file where the quality assurance maker store their results
-  static TString       fgQADataFileName       ; //! the name of the file where the quality assurance maker store their results
-  static TFile *       fgQARefFile               ; //! the output file where the quality assurance maker store their results
-  static TString       fgQARefDirName          ; //! name of directory where to find the reference data file
-  static TString       fgQARefFileName        ; //! file name where to find the reference data
-  static TFile *       fgQAResultFile         ; //! File where to find the QA result
-  static TString       fgQAResultDirName      ; //! the location of the output file where the QA results are stored  
-  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 fgkExpert              ; //! name for the expert directory
-  static const UInt_t  fgkExpertBit           ; //! TObject bit identifing the object as "expert"
-  static const TString fgkLabLocalFile        ; //! label to identify a file as local 
-  static const TString fgkLabLocalOCDB        ; //! label to identify a file as local OCDB 
-  static const TString fgkLabAliEnOCDB        ; //! label to identify a file as AliEn OCDB 
-  static const TString fgkRefFileName         ; //! name of Reference File Name 
-  static const UInt_t  fgkQABit               ; //! bit in the QA data object which is set when Checker does not return 0
-  static const TString fgkQAName              ; //! name of QA object 
-  static const TString fgkQACorrNtName        ; //! name of QA Correlation Ntuple
-  static const TString fgkRefOCDBDirName      ; //! name of Reference directory name in OCDB   
-  static       TString fgRefDataDirName       ; //! name of Reference directory name in OCDB for data          
-  static const TString fgkQARefOCDBDefault    ; //! default storage for QA in OCDB 
-  Bool_t *             fEventSpecies          ; //[fNEventSpecies] list of event species encountered in a run
+  static AliQAv1 *      fgQA                          ; // pointer to the instance of the singleton
+  Int_t                 fNdet                     ; // number of detectors
+  Int_t                 fNEventSpecies         ; // number of Event Species (see AliRecoParam)
+  Int_t                 fLengthQA              ; // Auxiliary length of fQA
+  ULong_t    *          fQA                             ; //[fLengthQA]  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)
+  AliRecoParam::EventSpecie_t fEventSpecie     ; //! the current event specie
+  static TString        fgDetNames[]            ; //! list of detector names   
+  static TString        fgGRPPath              ; //! path of the GRP object in OCDB
+  static TFile *        fgQADataFile            ; //! the output file where the quality assurance maker store their results
+  static TString        fgQADataFileName       ; //! the name of the file where the quality assurance maker store their results
+  static TFile *        fgQARefFile               ; //! the output file where the quality assurance maker store their results
+  static TString        fgQARefDirName        ; //! name of directory where to find the reference data file
+  static TString        fgQARefFileName        ; //! file name where to find the reference data
+  static TFile *        fgQAResultFile         ; //! File where to find the QA result
+  static TString        fgQAResultDirName      ; //! the location of the output file where the QA results are stored  
+  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  fgkExpert              ; //! name for the expert directory
+  static const UInt_t   fgkExpertBit           ; //! TObject bit identifing the object as "expert"
+  static const UInt_t   fgkImageBit            ; //! TObject bit identifing the object to be plotted on the QA image
+  static const TString  fgkLabLocalFile        ; //! label to identify a file as local 
+  static const TString  fgkLabLocalOCDB        ; //! label to identify a file as local OCDB 
+  static const TString  fgkLabAliEnOCDB        ; //! label to identify a file as AliEn OCDB 
+  static const TString  fgkRefFileName         ; //! name of Reference File Name 
+  static const UInt_t   fgkQABit               ; //! bit in the QA data object which is set when Checker does not return 0
+  static const Int_t    fgkQADebugLevel        ; //! debug level used for QA verbosity
+  static const TString  fgkQAName              ; //! name of QA object 
+  static const TString  fgkQACorrNtName        ; //! name of QA Correlation Ntuple
+  static const TString  fgkRefOCDBDirName      ; //! name of Reference directory name in OCDB          
+  static       TString  fgRefDataDirName       ; //! name of Reference directory name in OCDB for data         
+  static const TString  fgkQARefOCDBDefault    ; //! default storage for QA in OCDB 
+  Bool_t *              fEventSpecies          ; //[fNEventSpecies] list of event species encountered in a run
+  static const TString  fImageFileName         ; //! name of the file that contains all the QA images
+  static const TString  fImageFileFormat       ; //! format of the file that contains all the QA images
+  static const UShort_t fgkMaxQAObjects        ;//! maximum number of QA objects allowed dor each task (Raws, digits,....) 
 
- ClassDef(AliQAv1,2)  //ALICE Quality Assurance Object
+ ClassDef(AliQAv1,3)  //ALICE Quality Assurance Object
 };
 #endif