]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDQAChecker.h
overwrite select collision cand
[u/mrichter/AliRoot.git] / FMD / AliFMDQAChecker.h
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
13 /** @class AliFMDQAChecker 
14     @brief Quality assurance checker for the FMD */
15 class AliFMDQAChecker : public AliQACheckerBase 
16 {
17 public:
18   /** Constructor */
19   AliFMDQAChecker() 
20     : AliQACheckerBase("FMD","FMD Quality Assurance Checker") ,
21       fDoScale(false)
22   {}          
23   /** Destructor */
24   virtual ~AliFMDQAChecker() {}
25   /** 
26    * Member function called to do the actual checking
27    * 
28    * @param rv   Array of return values. 
29    * @param what What to check 
30    * @param list Array of arrays of histograms.  There's one arrat for
31    *             each 'specie'
32    * @param t    Reconstruction parameters - not used. 
33    */
34   void Check(Double_t* rv, AliQAv1::ALITASK_t what, 
35              TObjArray** list, const AliDetectorRecoParam* t);
36   /** 
37    * Make output images.  This is overridden relative to the base
38    * class so that we can set the log(y) scale and put everything on
39    * the same axis. 
40    * 
41    * @param list  List of specie array of histograms 
42    * @param task  What to show 
43    * @param mode  Mode 
44    */
45   void  MakeImage(TObjArray** list, 
46                   AliQAv1::TASKINDEX_t task, 
47                   AliQAv1::MODE_t mode);
48   void SetDoScale(Bool_t on=true) { fDoScale = on; }
49
50 protected:
51   /** 
52    * Check one histogram 
53    * 
54    * @param specie 
55    * @param hist 
56    * 
57    * @return 
58    */
59   Double_t CheckOne(AliQAv1::ALITASK_t          what,
60                     AliRecoParam::EventSpecie_t specie, 
61                     TH1*                        hist) const;
62   Double_t CheckRaw(AliRecoParam::EventSpecie_t specie, 
63                     TH1*                        hist) const;
64   Double_t CheckSim(AliRecoParam::EventSpecie_t specie, 
65                     TH1*                        hist) const;
66   Double_t CheckESD(AliRecoParam::EventSpecie_t specie, 
67                     TH1*                        hist) const;
68   Double_t CheckRec(AliRecoParam::EventSpecie_t specie, 
69                     TH1*                        hist) const;
70
71   Bool_t fDoScale;
72 private:
73   AliFMDQAChecker(const AliFMDQAChecker& qac); // cpy ctor   
74   AliFMDQAChecker &operator=(const AliFMDQAChecker& qac); // assignment operator
75
76   ClassDef(AliFMDQAChecker,0)  // Yves? what to do? 
77 };
78
79 #endif // AliFMDQAChecker_H
80 // Local Variables:
81 //  mode: c++
82 // End: