inserted the first calibration task for reconstruction algorithms
[u/mrichter/AliRoot.git] / TRD / qaRec / AliTRDtrackingResolution.h
CommitLineData
77203477 1#ifndef ALITRDTRACKINGRESOLUTION_H
2#define ALITRDTRACKINGRESOLUTION_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id: AliTRDtrackingResolution.h 27496 2008-07-22 08:35:45Z cblume $ */
7
8////////////////////////////////////////////////////////////////////////////
9// //
10// Reconstruction QA //
11// //
12////////////////////////////////////////////////////////////////////////////
13
3d86166d 14#ifndef ALITRDRECOTASK_H
15#include "AliTRDrecoTask.h"
16#endif
77203477 17
3c3d9ff1 18class TH1;
19class TF1;
b718144c 20class TObjArray;
aaf47b30 21class AliTRDReconstructor;
9605ce80 22class AliTRDgeometry;
aaf47b30 23class AliTRDrecoParam;
39779ce6 24class AliTRDseedV1;
25class AliTRDtrackInfo;
3d86166d 26class AliTRDtrackingResolution : public AliTRDrecoTask
874acced 27{
77203477 28public:
874acced 29 enum{
de520d8f 30 kClusterResidual = 0
b718144c 31// ,kTrackletRiemanYResidual = 1 // Riemann track model
32// ,kTrackletRiemanAngleResidual = 2
33// ,kTrackletKalmanYResidual = 3 // Kalman track model
34// ,kTrackletKalmanAngleResidual = 4
de520d8f 35 ,kClusterResolution = 1/*5*/
b718144c 36 ,kTrackletYResolution = 2/*6*/
de520d8f 37 ,kTrackletZResolution = 3/*6*/
38 ,kTrackletAngleResolution = 4/*7*/
b718144c 39// ,kTrackRYResolution = 8 // Riemann track model
40// ,kTrackRZResolution = 9
41// ,kTrackRAngleResolution = 10
42// ,kTrackKYResolution = 11 // Kalman track model
43// ,kTrackKZResolution = 12
44// ,kTrackKAngleResolution = 13
874acced 45 };
017bd6af 46 enum{
47 kVerbose = 0
48 ,kVisual = 1
49 };
874acced 50
3d86166d 51 AliTRDtrackingResolution();
ed383798 52 virtual ~AliTRDtrackingResolution();
77203477 53
39779ce6 54 void CreateOutputObjects();
a391a274 55 void GetRefFigure(Int_t ifig);
cf194b94 56 TObjArray* Histos();
b2dc316d 57 void Exec(Option_t *);
017bd6af 58 Bool_t IsVerbose() const {return TESTBIT(fStatus, kVerbose);}
59 Bool_t IsVisual() const {return TESTBIT(fStatus, kVisual);}
d85cd79c 60 Bool_t PostProcess();
017bd6af 61
de520d8f 62 TH1* PlotClusterResiduals(const AliTRDtrackV1 *t=0x0);
63 TH1* PlotResolution(const AliTRDtrackV1 *t=0x0);
64
017bd6af 65 void SetRecoParam(AliTRDrecoParam *r);
66 void SetVerbose(Bool_t v = kTRUE) {v ? SETBIT(fStatus ,kVerbose): CLRBIT(fStatus ,kVerbose);}
67 void SetVisual(Bool_t v = kTRUE) {v ? SETBIT(fStatus, kVisual) : CLRBIT(fStatus, kVisual);}
68
39779ce6 69 void Terminate(Option_t *);
77203477 70
71private:
72 AliTRDtrackingResolution(const AliTRDtrackingResolution&);
73 AliTRDtrackingResolution& operator=(const AliTRDtrackingResolution&);
017bd6af 74 void AdjustF1(TH1 *h, TF1 *f);
77203477 75
76private:
b2dc316d 77 UChar_t fStatus; // steer parameter of the task
78 AliTRDReconstructor *fReconstructor; //! local reconstructor
79 AliTRDgeometry *fGeo; //! TRD geometry
80 TObjArray *fGraphS; //! result holder - sigma values
81 TObjArray *fGraphM; //! result holder - mean values
82
83 // calibration containers
84 TObjArray *fClResiduals; //!
85 TObjArray *fClResolution; //!
86 TObjArray *fTrkltResolution;//!
87
77203477 88 ClassDef(AliTRDtrackingResolution, 1) // tracking resolution task
89};
90#endif