AliRoot Core  3dc7879 (3dc7879)
AliEMCALQAChecker.h
Go to the documentation of this file.
1 #ifndef ALIEMCALQACHECKER_H
2 #define ALIEMCALQACHECKER_H
3 
4 //===============================================================
20 //===============================================================
21 
22 // --- ROOT system ---
23 class TFile ;
24 class TH1F ;
25 class TH1I ;
26 class TH1 ;
27 class TLine ;
28 class TText ;
29 class TObjArray;
30 class TPaveText ;
31 
32 // --- AliRoot header files ---
33 #include "AliQACheckerBase.h"
35 class AliEMCALLoader ;
36 
38 
39 public:
40 
41  // Histograms for Raw data control
42  enum HRawType_t {
43  // first normal Low Gain and High Gain info
48  // then TRU info
53  // and also LED Mon info
57  // and STU info
60  } ;
61 
62  // Histograms for RecPoints control
64 
65  // Histograms for ESDs control
67 
68  AliEMCALQAChecker() ; // ctor
69 
70  virtual ~AliEMCALQAChecker() ; // dtor
71 
72  virtual void Init(const AliQAv1::DETECTORINDEX_t det) ;
73 
74 protected:
75 
76  virtual void Check( Double_t * test, AliQAv1::ALITASK_t index, TObjArray ** list,
77  const AliDetectorRecoParam * /*recoParam*/) ;
78  //virtual void SetQA(AliQAv1::ALITASK_t index, Double_t * value) const ;
79 
80  void CheckRaws(Double_t* test, TObjArray ** list);
81 
82  void CheckRecPoints(Double_t* /*test*/, TObjArray** /*list*/) const {;}
83 
84  void CheckESD(Double_t* /*test*/, TObjArray** /*list*/) const {;}
85 
86  void CleanListOfFunctions(TList *list);
87 
88  TH1* GetHisto(TObjArray* list, const char* hname, Int_t specie) const;
89 
90  Double_t MarkHisto(TH1& histo, Double_t value) const;
91 
92 private:
93 
96 
97 //TH1F * htemp; //a tempory histrogram for getting the mean and sigma
98 //Double_t fMean; //mean value
99 //Double_t fWidth; //sigma of the distribution
100 
101  static const Int_t fgknSM = 20;
102  static const Int_t fgknSectLines = 9;
103 
104 //TLine ** fLine ; //!<! line to distinguish the different SM
105 //TLine ** fHref ; //!<! Line marking the average value for each SM
106  TText ** fTextSM ;
107  TLine * fLineCol ;
109  TPaveText * fText ;
110  TPaveText * fTextL1[3] ;
111 
113  ClassDef(AliEMCALQAChecker,5) ;
115 };
116 
117 #endif
Double_t MarkHisto(TH1 &histo, Double_t value) const
TPaveText * fText
! Information text for the quality of each SM
virtual void Init(const AliQAv1::DETECTORINDEX_t det)
void CheckRaws(Double_t *test, TObjArray **list)
#define TObjArray
ALITASK_t
Definition: AliQAv1.h:26
static const Int_t fgknSectLines
! lines between SM sectors
TPaveText * fTextL1[3]
! Information text for the quality of L1 plots (3 plots in total)
virtual void Check(Double_t *test, AliQAv1::ALITASK_t index, TObjArray **list, const AliDetectorRecoParam *)
QA checker class.
static const Int_t fgknSM
! number of current SM; EMCal + DCal
TText ** fTextSM
! Text info for each SM
AliEMCALQAChecker & operator=(const AliEMCALQAChecker &qac)
void CheckRecPoints(Double_t *, TObjArray **) const
Give access to hits, digits, recpoints arrays and OCDB.
void CheckESD(Double_t *, TObjArray **) const
TH1 * GetHisto(TObjArray *list, const char *hname, Int_t specie) const
TLine * fLineCol
! line to distinguish the different SM side: A side and C side
void test()
Definition: interpolTest.C:100
DETECTORINDEX_t
Definition: AliQAv1.h:23
void CleanListOfFunctions(TList *list)
TLine * fLineRow[fgknSectLines]
! line to distinguish the different SM sectors (0-5, 9-12)