]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDQAChecker.h
Adding histos
[u/mrichter/AliRoot.git] / FMD / AliFMDQAChecker.h
CommitLineData
c9dd1c4d 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 */
ffa78f64 8#include "AliQACheckerBase.h"
c9dd1c4d 9class TFile;
10class TH1F;
11class TH1I;
12
ffa78f64 13/** @class AliFMDQAChecker
14 @brief Quality assurance checker for the FMD */
c9dd1c4d 15class AliFMDQAChecker : public AliQACheckerBase
16{
17public:
ffa78f64 18 /** Constructor */
c9dd1c4d 19 AliFMDQAChecker()
9558fc76 20 : AliQACheckerBase("FMD","FMD Quality Assurance Checker") ,
21 fDoScale(false)
c9dd1c4d 22 {}
ffa78f64 23 /** Destructor */
c9dd1c4d 24 virtual ~AliFMDQAChecker() {}
f26f970e 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 */
1706c710 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);
9558fc76 48 void SetDoScale(Bool_t on=true) { fDoScale = on; }
1706c710 49
05e5e0c1 50protected:
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
9558fc76 71 Bool_t fDoScale;
f4f8d21b 72private:
73 AliFMDQAChecker(const AliFMDQAChecker& qac); // cpy ctor
74 AliFMDQAChecker &operator=(const AliFMDQAChecker& qac); // assignment operator
75
c9dd1c4d 76 ClassDef(AliFMDQAChecker,0) // Yves? what to do?
77};
78
79#endif // AliFMDQAChecker_H
80// Local Variables:
81// mode: c++
82// End: