]>
Commit | Line | Data |
---|---|---|
66f72ab4 | 1 | #ifndef ALIPHOSQAVIRTUALCHECKABLE_H |
2 | #define ALIPHOSQAVIRTUALCHECKABLE_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //_________________________________________________________________________ | |
9 | // Abstract Class for a QA checkable | |
10 | // | |
11 | //*-- Author: Yves Schutz (SUBATECH) | |
12 | ||
13 | ||
14 | // --- ROOT system --- | |
15 | ||
16 | #include "TFolder.h" | |
17 | #include "TNamed.h" | |
88cb7938 | 18 | #include "TTask.h" |
66f72ab4 | 19 | |
20 | // --- Standard library --- | |
21 | ||
88cb7938 | 22 | #include <assert.h> |
23 | ||
66f72ab4 | 24 | // --- AliRoot header files --- |
25 | ||
26 | class AliPHOSQAChecker ; | |
27 | class AliPHOSQAAlarm ; | |
28 | ||
29 | class AliPHOSQAVirtualCheckable : public TNamed { | |
30 | ||
31 | public: | |
32 | ||
2685bf00 | 33 | AliPHOSQAVirtualCheckable(){ |
34 | fChecker = 0 ; | |
35 | fAlarms = 0; | |
36 | } // default ctor not to be used | |
66f72ab4 | 37 | AliPHOSQAVirtualCheckable(const char * name) ; // ctor |
a8c47ab6 | 38 | AliPHOSQAVirtualCheckable(AliPHOSQAVirtualCheckable& obj) : TNamed(obj) {assert(0==1);} |
66f72ab4 | 39 | virtual ~AliPHOSQAVirtualCheckable() ; // dtor |
40 | ||
41 | void AddChecker(AliPHOSQAChecker * ch) ; | |
42 | void Alarms() const ; | |
43 | void CheckMe() ; | |
44 | virtual Bool_t HasChanged() const { return fChange ; } | |
7b7c1533 | 45 | TObjArray * GetAlarms() const { return (TObjArray*)fAlarms->FindObject(GetName()) ; } |
66f72ab4 | 46 | virtual Float_t GetValue() const = 0 ; |
7b7c1533 | 47 | TString HasA() const { return fType ; } |
66f72ab4 | 48 | virtual void Print() const = 0 ; |
88cb7938 | 49 | void RaiseAlarm(const char * time, const char * checked, const char * checker, const char * message) ; |
66f72ab4 | 50 | void RemoveChecker(AliPHOSQAChecker *ch) ; |
51 | virtual void Reset() = 0 ; | |
52 | void ResetAlarms() ; | |
53 | void Status() const ; | |
54 | ||
55 | protected: | |
56 | ||
57 | AliPHOSQAChecker * fChecker ; // the task(s) that is going to act on the checkable | |
7b7c1533 | 58 | TString fType ; // I, F, or O |
59 | TFolder * fAlarms ; // folder that contains the PHOS alarms | |
60 | Bool_t fChange ; // tells if the checkable has been updated | |
66f72ab4 | 61 | |
62 | ClassDef(AliPHOSQAVirtualCheckable,1) // description | |
63 | ||
64 | }; | |
65 | ||
66 | #endif // ALIPHOSQAVirtualCheckable_H |