1 #ifndef ALIPHOSQACHECKER_H
2 #define ALIPHOSQACHECKER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
9 // Base class of a checker, to be instanciated as a task container
11 //*-- Author: Yves Schutz (SUBATECH)
14 // --- ROOT system ---
19 // --- Standard library ---
23 // --- AliRoot header files ---
25 #include "AliPHOSQAVirtualCheckable.h"
27 class AliPHOSQAChecker : public TTask {
34 } ; // default ctor (not to be used)
35 AliPHOSQAChecker(const char * name, const char * title) ; // ctor
36 AliPHOSQAChecker(AliPHOSQAChecker& obj) {assert(0==1);}
37 virtual ~AliPHOSQAChecker() ; // dtor
39 void Alarms() { ExecuteTask("A") ; }
40 virtual TString CheckingOperation(){ return TString(""); } // where the checking operation must be implemented
42 void CheckIt(AliPHOSQAVirtualCheckable *ca) ;
43 void Delete() { delete this ; } // Hara-Kiri
44 TList * GetListOfCheckables() const { return fCheckablesList ; }
45 virtual void Exec(Option_t *option) ;
46 virtual void Print() ;
48 void PrintAll() { ExecuteTask("P") ; }
49 void Remove(AliPHOSQAChecker * ch) {GetListOfTasks()->Remove(ch); }
51 void StatusAll() { ExecuteTask("S") ; }
53 friend void AliPHOSQAVirtualCheckable::AddChecker(AliPHOSQAChecker * ch) ;
54 friend AliPHOSQAVirtualCheckable::AliPHOSQAVirtualCheckable(const char * name) ;
59 void SetCheckable(AliPHOSQAVirtualCheckable * ca) { fCheckable = ca ; }
63 void AddCheckable(AliPHOSQAVirtualCheckable *ca) {fCheckablesList->Add(ca) ;}
65 AliPHOSQAVirtualCheckable * fCheckable ; // current checkable
66 TList * fCheckablesList ; // list of checkable objects to be checked
68 ClassDef(AliPHOSQAChecker,1) // description
72 #endif // ALIPHOSQAChecker_H