]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0QAChecker.h
Removing useless flag.
[u/mrichter/AliRoot.git] / T0 / AliT0QAChecker.h
index ebffe6948ab49f7b0b343dab5d467781e0a37d02..94dd2a3917c8c7e8646831364fd542beac4a03d7 100644 (file)
@@ -21,18 +21,50 @@ class TH1F ;
 
 // --- AliRoot header files ---
 #include "AliQACheckerBase.h"
-
 class AliT0QAChecker: public AliQACheckerBase {
 
 public:
-  AliT0QAChecker() : AliQACheckerBase("T0","T0 Quality Assurance Data Checker") {;}          // ctor
-  AliT0QAChecker(const AliT0QAChecker& qac) : AliQACheckerBase(qac.GetName(), qac.GetTitle()) {;} // cpy ctor   
- // dtor
- virtual ~AliT0QAChecker() {;}
- Double_t CheckRaw(TObjArray *listrec , TObjArray *listref) const ;
+  AliT0QAChecker();    
+  AliT0QAChecker(const AliT0QAChecker& qac);
+  AliT0QAChecker& operator=(const AliT0QAChecker& qac);  
+  // dtor
+  virtual ~AliT0QAChecker();
+  //Double_t CheckLaser(TObjArray *listrec ) const ;
+  Double_t CheckRaw(TObjArray *listrec ) const ;
+  Double_t CheckESD(TObjArray *listrec ) const ;
+   
 private:
-  virtual Double_t * Check(AliQAv1::ALITASK_t, TObjArray ** list) ;
-  
+
+  enum{
+    kT0Fatal=-1,  ///< error is really serious
+    kT0Error=0,   ///< normal error, i.e. something is wrong
+    kT0Warning=1, ///< warning, i.e. might become an error later on
+    kT0Info=2     ///< just so you know...
+  };
+
+  virtual void Check(Double_t * test, AliQAv1::ALITASK_t, TObjArray ** list, const AliDetectorRecoParam * recoParam) ;
+  void EraseOldMessages(TH1* h) const;
+  Double_t ConvertQualityFlagToDouble(int qualityFlag) const;
+  Float_t GetMeanAboveThreshold(TH1F* hV, Float_t thr) const;
+  void GetMeanAndRmsAroundMainMaximum(Float_t &meanHisto,Float_t &rmsHisto, TH1F *histo, int type) const;
+
+  Float_t fMeanCFDFromGoodRunParam[24]; //mean CFD for each PMT from a good run
+  Float_t fMeanLEDFromGoodRunParam[24]; //mean LED for each PMT from a good run
+  Float_t fMeanQTCFromGoodRunParam[24]; //mean QTC for each PMT from a good run
+  Float_t fCFDErrorThreshold; //CFD error threshold instead of the yellow band 
+  Float_t fLEDErrorThreshold; //LED error threshold 
+  Float_t fQTCErrorThreshold; //QTC error threshold 
+  Float_t fRatioCFDEffLEDEffErrorThreshold; //ratio CFD to LED efficiency error threshold 
+  Float_t fQTCEfficiencyErrorThreshold; //QTC efficiency error threshold 
+  Int_t   fBCIDPeriodParam; // period 
+  Int_t   fBCIDOffsetParam;//offset of TRM BCID 
+  Int_t   fBCIDBandWidthParam; // tollerated deviation of BCID from diagonal 
+  Float_t fTZeroAPlusCErrorThreshold; // constraint on the tzero vertex displacement in ps
+  Float_t fTZeroAMinusCErrorThreshold; // constraint on the tzero time shift in ps 
+
+
   ClassDef(AliT0QAChecker,1)  // description 
 
 };