AliRoot Core  edcc906 (edcc906)
AliFMDQAChecker.h
Go to the documentation of this file.
1 #ifndef ALIFMDQACHECKER_H
2 #define ALIFMDQACHECKER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved.
5  *
6  * See cxx source for full Copyright notice
7  */
8 #include "AliQACheckerBase.h"
9 class TFile;
10 class TH1F;
11 class TH1I;
12 class TFitResultPtr;
13 
19 {
20 public:
24  virtual ~AliFMDQAChecker() {}
34  void Check(Double_t* rv, AliQAv1::ALITASK_t what,
35  TObjArray** list, const AliDetectorRecoParam* t);
45  void MakeImage(TObjArray** list,
47  AliQAv1::MODE_t mode);
54  void SetDoScale(Bool_t on=true) { fDoScale = on; }
55 protected:
56  // Return values
57  enum {
58  kOK,
60  kBad,
62  };
73  void AddStatusPave(TH1* hist, Int_t qual,
74  Double_t xl=-1, Double_t yl=-1,
75  Double_t xh=-1, Double_t yh=-1) const;
85  UShort_t CheckOne(AliQAv1::ALITASK_t what,
87  TH1* hist) const;
109  UShort_t CheckRaw(AliRecoParam::EventSpecie_t specie,
110  TH1* hist) const;
121  UShort_t CheckSim(AliRecoParam::EventSpecie_t specie,
122  TH1* hist) const;
133  UShort_t CheckESD(AliRecoParam::EventSpecie_t specie,
134  TH1* hist) const;
145  UShort_t CheckRec(AliRecoParam::EventSpecie_t specie,
146  TH1* hist) const;
155  void SetQA(AliQAv1::ALITASK_t index, Double_t* values) const;
160  void ProcessExternalParams();
167  void ProcessExternalParam(const char* name, Double_t& v);
172  void GetThresholds();
180  UShort_t BasicCheck(TH1* hist) const;
188  AliQAv1::QABIT_t Quality2Bit(UShort_t qual) const;
198  UShort_t CheckFit(TH1* hist, const TFitResultPtr& res,
199  Double_t low, Double_t high, Int_t& color) const;
200  Bool_t fDoScale; // Whether to scale all histograms
201  Bool_t fDidExternal; // Whether we've processed the external params
202  Bool_t fShowFitResults; // Whether to put the fit result on the plots
203  Double_t fELossLowCut; // Low cut on ELoss fits
204  Double_t fELossNRMS; // Number of RMS to fit upward
205  Double_t fELossBadChi2Nu; // Cut on bad chi2/nu
206  Double_t fELossFkupChi2Nu; // Cut on F**ked up chi2/nu
207  Int_t fELossMinEntries; // Least number of entries before fitting
208  Int_t fELossMaxEntries; // Maximum number of entries before clear
209  Double_t fELossGoodParError; // Least relative error
210  Double_t fELossMinSharing; // Least to consider for sharing fit
211  Double_t fROErrorsBad; // Cut on read-out errors
212  Double_t fROErrorsFkup; // Cut on read-out errors
213  Int_t fMaxNProblem; // Maximum number of problematic fits
214  Int_t fMaxNBad; // Maximum number of bad fits
215  Double_t fMinMPV; // Least MPV
216  Double_t fMaxXi; // Largest Landau width
217  Double_t fMaxSigma; // Largest gaussian width
218  Bool_t fNoFits; // If true, do not fit at all
219 private:
225  AliFMDQAChecker(const AliFMDQAChecker& qac);
234 
235  ClassDef(AliFMDQAChecker,0) // Checker of FMD data quality
236 };
237 
238 #endif // AliFMDQAChecker_H
239 // Local Variables:
240 // mode: c++
241 // End:
AliFMDQAChecker & operator=(const AliFMDQAChecker &qac)
UShort_t CheckRaw(AliRecoParam::EventSpecie_t specie, TH1 *hist) const
AliQAv1::QABIT_t Quality2Bit(UShort_t qual) const
#define TObjArray
UShort_t BasicCheck(TH1 *hist) const
UShort_t CheckSim(AliRecoParam::EventSpecie_t specie, TH1 *hist) const
UShort_t CheckESD(AliRecoParam::EventSpecie_t specie, TH1 *hist) const
ALITASK_t
Definition: AliQAv1.h:26
QABIT_t
Definition: AliQAv1.h:28
MODE_t
Definition: AliQAv1.h:32
void MakeImage(TObjArray **list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode)
Quality assurance checker for the FMD.
void SetDoScale(Bool_t on=true)
Double_t fELossFkupChi2Nu
void Check(Double_t *rv, AliQAv1::ALITASK_t what, TObjArray **list, const AliDetectorRecoParam *t)
Double_t fELossBadChi2Nu
UShort_t CheckRec(AliRecoParam::EventSpecie_t specie, TH1 *hist) const
Double_t fROErrorsFkup
Double_t fELossMinSharing
virtual ~AliFMDQAChecker()
void ProcessExternalParam(const char *name, Double_t &v)
UShort_t CheckOne(AliQAv1::ALITASK_t what, AliRecoParam::EventSpecie_t specie, TH1 *hist) const
void SetQA(AliQAv1::ALITASK_t index, Double_t *values) const
TASKINDEX_t
Definition: AliQAv1.h:30
void AddStatusPave(TH1 *hist, Int_t qual, Double_t xl=-1, Double_t yl=-1, Double_t xh=-1, Double_t yh=-1) const
void res(Char_t i)
Definition: Resolution.C:2
Double_t fELossGoodParError
UShort_t CheckFit(TH1 *hist, const TFitResultPtr &res, Double_t low, Double_t high, Int_t &color) const