X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSQAChecker.h;h=36dbc6ed96160d4fa0877c947a638e3ff25860b9;hb=5bb4b9cd64cb9f0d9d28db7d721356384efd5bad;hp=c6d9671fc4e9104caf1fa545dccd31e534ed5067;hpb=66f72ab46e8d22fb9276deb84611c97153947fae;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSQAChecker.h b/PHOS/AliPHOSQAChecker.h index c6d9671fc4e..36dbc6ed961 100644 --- a/PHOS/AliPHOSQAChecker.h +++ b/PHOS/AliPHOSQAChecker.h @@ -3,67 +3,40 @@ /* 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 - // --- AliRoot header files --- +#include "AliQACheckerBase.h" +class AliPHOSLoader ; -#include "AliPHOSQAVirtualCheckable.h" - -class AliPHOSQAChecker : public TTask { +class AliPHOSQAChecker: public AliQACheckerBase { public: - - AliPHOSQAChecker(){} ; // 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 - + 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