]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROQAChecker.h
include added
[u/mrichter/AliRoot.git] / VZERO / AliVZEROQAChecker.h
index 62e28c49b44c020fa3a4cf843c0f442703f3a731..92dafdc85a895cfe23cef59cc02080196fc5e18a 100644 (file)
@@ -5,15 +5,16 @@
 
 
 /*
-  Checks the quality assurance. 
-  By comparing with reference data
+  Checks the quality of the data
+  by comparing with reference data
+  which should be loaded from QA ref DB
 */
 
-
 // --- ROOT system ---
 class TFile ; 
 class TH1F ; 
 class TH1I ; 
+class TObjArray ; 
 
 // --- Standard library ---
 
@@ -25,12 +26,29 @@ class AliVZEROLoader ;
 class AliVZEROQAChecker: public AliQACheckerBase {
 
 public:
-  AliVZEROQAChecker() : AliQACheckerBase("VZERO","VZERO Quality Assurance Data Maker") {;}          // ctor
-  AliVZEROQAChecker(const AliVZEROQAChecker& qac) : AliQACheckerBase(qac.GetName(), qac.GetTitle()) {;} // cpy ctor   
-  AliVZEROQAChecker& operator = (const AliVZEROQAChecker& qac) ;
-  virtual ~AliVZEROQAChecker() {;} // dtor
+  AliVZEROQAChecker();
+  virtual ~AliVZEROQAChecker() {;} // destructor
+  
+  virtual void   Init(const AliQAv1::DETECTORINDEX_t det);
+
+  void SetLowEventCut(Int_t nEvents) {fLowEventCut = nEvents;}
+  void SetORvsANDCut(Double_t cut) {fORvsANDCut = cut;}
+  void SetBGvsBBCut(Double_t cut) {fBGvsBBCut = cut;}
 
+protected:  
+  virtual void Check( Double_t * test, AliQAv1::ALITASK_t index, TObjArray ** list, const AliDetectorRecoParam * recoParam);
+  Double_t CheckRaws(TObjArray * list) const ;
+  Double_t CheckEsds(TObjArray * list) const;
+  
+  virtual void SetQA(AliQAv1::ALITASK_t index, Double_t * value) const ;
+  
 private:
+  AliVZEROQAChecker(const AliVZEROQAChecker& qac); // cpy ctor   
+  AliVZEROQAChecker &operator=(const AliVZEROQAChecker& qac); // assignment operator
+
+  Int_t    fLowEventCut; // Minimum number of events required by the QA checker
+  Double_t fORvsANDCut; // VZERO OR vs VZERO AND counters cut
+  Double_t fBGvsBBCut; // VZERO beam-gas vs beam-beam counters cut
   
   ClassDef(AliVZEROQAChecker,1)  // description