/* 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(){
- fCheckablesList = 0;
- fCheckable = 0;
- } ; // default ctor (not to be used)
- AliPHOSQAChecker(const char * name, const char * title) ; // ctor
- AliPHOSQAChecker(AliPHOSQAChecker& obj) : TTask(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
-
+ AliPHOSQAChecker() : AliQACheckerBase("PHOS","PHOS Quality Assurance Data Maker") {;} // ctor
+ AliPHOSQAChecker(const AliPHOSQAChecker& qac) : AliQACheckerBase(qac.GetName(), qac.GetTitle()) {;} // cpy ctor
+ virtual ~AliPHOSQAChecker() {;} // dtor
+
+private:
+ virtual void Check(Double_t *rv, AliQAv1::ALITASK_t, TObjArray ** list, const AliDetectorRecoParam * recoParam=0) ;
+ AliPHOSQAChecker & operator = (const AliPHOSQAChecker & /*qac*/);
+
ClassDef(AliPHOSQAChecker,1) // description
};
-#endif // ALIPHOSQAChecker_H
+#endif // AliPHOSQAChecker_H