]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliQACheckerBase.h
Added AddTrackParams() method for convenience + some comments
[u/mrichter/AliRoot.git] / STEER / AliQACheckerBase.h
index c956b90bf0bc47b8a1bc21793a5eda5c62757898..74686ea0a65c7611d3f409a6caf58249879f9381 100644 (file)
@@ -20,6 +20,7 @@ class TFile ;
 class TH1 ; 
 class TObjArray ; 
 class TDirectory ; 
+class TNtupleD ;
 
 // --- Standard library ---
 
@@ -31,22 +32,28 @@ public:
   AliQACheckerBase(const char * name = "", const char * title = "") ;          // ctor
   AliQACheckerBase(const AliQACheckerBase& qac) ;   
   AliQACheckerBase& operator = (const AliQACheckerBase& qac) ;
-  virtual ~AliQACheckerBase() {;} // dtor
+  virtual ~AliQACheckerBase() ; // dtor
 
-  void   Init(const AliQA::DETECTORINDEX_t det) ; 
-  void   Run(AliQA::ALITASK_t tsk, TObjArray * list=0x0); 
-  void   SetRefandData(TDirectory * ref, TObjArray * refOCDB, TDirectory * data=NULL) { fRefSubDir = ref ;  fRefOCDBSubDir = refOCDB, fDataSubDir = data ; }
+  virtual void   Init(const AliQA::DETECTORINDEX_t det)   { AliQA::Instance(det) ; }
+  void           Run(AliQA::ALITASK_t tsk, TObjArray ** list = NULL); 
+  void           Run(AliQA::ALITASK_t /*tsk*/, TNtupleD ** /*nt*/) {;} 
+  void           SetHiLo(Float_t * hiValue, Float_t * lowValue) ; 
+  void           SetRefandData(TDirectory * ref, TObjArray ** refOCDB, TDirectory * data=NULL) { fRefSubDir = ref ;  fRefOCDBSubDir = refOCDB, fDataSubDir = data ; }
 
 protected:
-  virtual const Double_t Check() ;
-  virtual const Double_t Check(TObjArray * list) ;
-  const Double_t DiffC(const TH1 * href, const TH1 * hin) const ;   
-  const Double_t DiffK(const TH1 * href, const TH1 * hin) const ;   
-  void           Finish() const ; 
-
-  TDirectory  * fDataSubDir    ; //! directory for the current task directory in the current detector directory in the data file
-  TDirectory  * fRefSubDir     ; //! directory for the current task directory in the current detector directory in the reference file
-  TObjArray   * fRefOCDBSubDir ; //! Entry in OCDB for the current detector 
+  virtual      Double_t * Check(AliQA::ALITASK_t index) ;
+  virtual      Double_t * Check(AliQA::ALITASK_t, TObjArray **) ; 
+
+  Double_t     DiffC(const TH1 * href, const TH1 * hin) const ;   
+  Double_t     DiffK(const TH1 * href, const TH1 * hin) const ;   
+  void         Finish() const ; 
+  virtual void SetQA(AliQA::ALITASK_t index, Double_t * value) const ; 
+
+  TDirectory  * fDataSubDir     ; //! directory for the current task directory in the current detector directory in the data file
+  TDirectory  * fRefSubDir      ; //! directory for the current task directory in the current detector directory in the reference file
+  TObjArray   ** fRefOCDBSubDir ; //! Entry in OCDB for the current detector 
+  Float_t     * fLowTestValue   ; // array of lower bounds for INFO, WARNING, ERROR, FATAL   
+  Float_t     * fUpTestValue    ; // array of upper bounds for INFO, WARNING, ERROR, FATAL   
 
   ClassDef(AliQACheckerBase,1)  // description