]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0QAChecker.h
readable GetStatus implemented
[u/mrichter/AliRoot.git] / T0 / AliT0QAChecker.h
1 #ifndef ALIT0QACHECKER_H
2 #define ALIT0QACHECKER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6
7 /* $Id$ */
8
9 //
10 //  Checks the quality assurance. 
11 //  By comparing with reference data
12 //  Skeleton for T0
13 //
14
15
16 // --- ROOT system ---
17 class TFile ; 
18 class TH1F ; 
19
20 // --- Standard library ---
21
22 // --- AliRoot header files ---
23 #include "AliQACheckerBase.h"
24 class AliT0QAChecker: public AliQACheckerBase {
25
26 public:
27   AliT0QAChecker();    
28   AliT0QAChecker(const AliT0QAChecker& qac);
29   AliT0QAChecker& operator=(const AliT0QAChecker& qac);  
30   // dtor
31   virtual ~AliT0QAChecker();
32   Double_t CheckLaser(TObjArray *listrec ) const ;
33   Double_t CheckBCID(TObjArray *listrec ) const ;
34   Double_t CheckRaw(TObjArray *listrec ) const ;
35   Double_t CheckESD(TObjArray *listrec ) const ;
36    
37  
38 private:
39
40   enum{
41     kT0Fatal=-1,  ///< error is really serious
42     kT0Error=0,   ///< normal error, i.e. something is wrong
43     kT0Warning=1, ///< warning, i.e. might become an error later on
44     kT0Info=2     ///< just so you know...
45   };
46
47   virtual void Check(Double_t * test, AliQAv1::ALITASK_t, TObjArray ** list, const AliDetectorRecoParam * recoParam) ;
48   void EraseOldMessages(TH1* h) const;
49   Double_t ConvertQualityFlagToDouble(int qualityFlag) const;
50   Float_t GetMeanAboveThreshold(TH1F* hV, Float_t thr) const;
51  
52   ClassDef(AliT0QAChecker,1)  // description 
53
54 };
55
56 #endif // AliT0QAChecker_H