]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSQAChecker.h
Adding the array of the recosntruction parameters (Marian)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQAChecker.h
index 2df6c2238ec729eacd1727145e6f38687171b276..eb2a3b76154489439b97827703415ebc34b27a79 100644 (file)
@@ -3,70 +3,38 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+
 /* $Id$ */
 
-//_________________________________________________________________________
-//  Base class of a checker, to be instanciated as a task container  
-//                  
-//*-- Author: Yves Schutz (SUBATECH)
+/*
+  Checks the quality assurance. 
+  By comparing with reference data
+  Y. Schutz CERN July 2007
+*/
 
 
 // --- ROOT system ---
-
-class TString ; 
-#include "TTask.h"
+class TFile ; 
+class TH1F ; 
+class TH1I ; 
 
 // --- Standard library ---
 
-#include <assert.h>
-
 // --- AliRoot header files ---
+#include "AliQACheckerBase.h"
+class AliPHOSLoader ; 
 
-#include "AliPHOSQAVirtualCheckable.h"
-
-class AliPHOSQAChecker : public TTask {
+class AliPHOSQAChecker: public AliQACheckerBase {
 
 public:
+  AliPHOSQAChecker() : AliQACheckerBase("PHOS","PHOS Quality Assurance Data Maker") {;}          // ctor
+  AliPHOSQAChecker(const AliPHOSQAChecker& qac) : AliQACheckerBase(qac.GetName(), qac.GetTitle()) {;} // cpy ctor   
+  virtual ~AliPHOSQAChecker() {;} // dtor
 
-  AliPHOSQAChecker(){
-    fCheckablesList = 0;
-    fCheckable = 0;
-  } ;          // default ctor (not to be used)
-  AliPHOSQAChecker(const char * name, const char * title) ; // ctor
-  AliPHOSQAChecker(AliPHOSQAChecker& obj) {assert(0==1);}
-  virtual ~AliPHOSQAChecker() ; // dtor
-
-  void Alarms() { ExecuteTask("A") ; }  
-  virtual TString CheckingOperation(){ return TString(""); } // where the checking operation must be implemented
-  void CheckIt() ; 
-  void CheckIt(AliPHOSQAVirtualCheckable *ca)  ;
-  void Delete() { delete this ; } // Hara-Kiri
-  TList * GetListOfCheckables() const { return fCheckablesList ; } 
-  virtual void  Exec(Option_t *option) ;   
-  virtual void Print() ;
-  void PrintAlarms() ; 
-  void PrintAll() { ExecuteTask("P") ; } 
-  void Remove(AliPHOSQAChecker * ch) {GetListOfTasks()->Remove(ch); }  
-  void Status() ; 
-  void StatusAll() { ExecuteTask("S") ; } 
-
-  friend void AliPHOSQAVirtualCheckable::AddChecker(AliPHOSQAChecker * ch) ;
-  friend AliPHOSQAVirtualCheckable::AliPHOSQAVirtualCheckable(const char * name) ;
-
-
- private:
-
-  void SetCheckable(AliPHOSQAVirtualCheckable * ca) { fCheckable = ca ; } 
-
- protected:
-
-  void AddCheckable(AliPHOSQAVirtualCheckable *ca) {fCheckablesList->Add(ca) ;}
-    
-  AliPHOSQAVirtualCheckable * fCheckable ; // current checkable 
-  TList * fCheckablesList ;     // list of checkable objects to be checked 
-
+private:
+  
   ClassDef(AliPHOSQAChecker,1)  // description 
 
 };
 
-#endif // ALIPHOSQAChecker_H
+#endif // AliPHOSQAChecker_H