Line data Source code
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 CheckRaw(TObjArray *listrec ) const ;
34 : Double_t CheckESD(TObjArray *listrec ) const ;
35 :
36 :
37 : private:
38 :
39 : enum{
40 : kT0Fatal=-1, ///< error is really serious
41 : kT0Error=0, ///< normal error, i.e. something is wrong
42 : kT0Warning=1, ///< warning, i.e. might become an error later on
43 : kT0Info=2 ///< just so you know...
44 : };
45 :
46 : virtual void Check(Double_t * test, AliQAv1::ALITASK_t, TObjArray ** list, const AliDetectorRecoParam * recoParam) ;
47 : void EraseOldMessages(TH1* h) const;
48 : Double_t ConvertQualityFlagToDouble(int qualityFlag) const;
49 : Float_t GetMeanAboveThreshold(TH1F* hV, Float_t thr) const;
50 : void GetMeanAndRmsAroundMainMaximum(Float_t &meanHisto,Float_t &rmsHisto, TH1F *histo, int type) const;
51 :
52 : Float_t fMeanCFDFromGoodRunParam[24]; //mean CFD for each PMT from a good run
53 : Float_t fMeanLEDFromGoodRunParam[24]; //mean LED for each PMT from a good run
54 : Float_t fMeanQTCFromGoodRunParam[24]; //mean QTC for each PMT from a good run
55 : Float_t fCFDErrorThreshold; //CFD error threshold instead of the yellow band
56 : Float_t fLEDErrorThreshold; //LED error threshold
57 : Float_t fQTCErrorThreshold; //QTC error threshold
58 : Float_t fRatioCFDEffLEDEffErrorThreshold; //ratio CFD to LED efficiency error threshold
59 : Float_t fQTCEfficiencyErrorThreshold; //QTC efficiency error threshold
60 : Int_t fBCIDPeriodParam; // period
61 : Int_t fBCIDOffsetParam;//offset of TRM BCID
62 : Int_t fBCIDBandWidthParam; // tollerated deviation of BCID from diagonal
63 : Float_t fTZeroAPlusCErrorThreshold; // constraint on the tzero vertex displacement in ps
64 : Float_t fTZeroAMinusCErrorThreshold; // constraint on the tzero time shift in ps
65 :
66 :
67 :
68 56 : ClassDef(AliT0QAChecker,1) // description
69 :
70 : };
71 :
72 : #endif // AliT0QAChecker_H
|