fix coding convention errors
[u/mrichter/AliRoot.git] / TRD / qaRec / AliTRDresolution.h
CommitLineData
e3cf3d02 1#ifndef ALITRDRESOLUTION_H
2#define ALITRDRESOLUTION_H
77203477 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
e3cf3d02 6/* $Id: AliTRDresolution.h 27496 2008-07-22 08:35:45Z cblume $ */
77203477 7
8////////////////////////////////////////////////////////////////////////////
9// //
ddd1a033 10// TRD Resolution performance //
77203477 11// //
ddd1a033 12// Authors: //
13// Alexandru Bercuci <A.Bercuci@gsi.de> //
14// Markus Fasel <M.Fasel@gsi.de> //
15// // ////////////////////////////////////////////////////////////////////////////
77203477 16
3d86166d 17#ifndef ALITRDRECOTASK_H
18#include "AliTRDrecoTask.h"
19#endif
77203477 20
3c3d9ff1 21class TH1;
dad4c5fc 22class TH2;
3c3d9ff1 23class TF1;
dad4c5fc 24class TGraphErrors;
b718144c 25class TObjArray;
aaf47b30 26class AliTRDReconstructor;
9605ce80 27class AliTRDgeometry;
aaf47b30 28class AliTRDrecoParam;
39779ce6 29class AliTRDseedV1;
30class AliTRDtrackInfo;
e3cf3d02 31class AliTRDresolution : public AliTRDrecoTask
874acced 32{
77203477 33public:
e9ecf70f 34 enum ETRDresolutionPlot {
a63b505e 35 kCharge = 0 // charge resolution
36 ,kCluster = 1 // cluster - track
37 ,kTrackTRD = 2 // tracklet - track residuals/pulls
38 ,kTrackTPC = 3 // tracklet - track residuals/pulls at lower TRD entrance
39 ,kMCcluster = 4 // cluster-mc resolution/pulls
40 ,kMCtracklet = 5 // tracklet-mc resolution/pulls
41 ,kMCtrackTPC = 6 // TPC track monitor
42 ,kMCtrackTOF = 7 // TOF/HMPID track monitor
43 ,kMCtrackTRD = 8 // TRD track monitor
44 ,kNhistos = 9
874acced 45 };
e3cf3d02 46 enum ETRDresolutionSteer {
017bd6af 47 kVerbose = 0
48 ,kVisual = 1
49 };
874acced 50
e3cf3d02 51 AliTRDresolution();
52 virtual ~AliTRDresolution();
77203477 53
39779ce6 54 void CreateOutputObjects();
e15179be 55 Bool_t GetRefFigure(Int_t ifig);
cf194b94 56 TObjArray* Histos();
dad4c5fc 57 TObjArray* Results(Int_t i=0) const {return i ? fGraphS : fGraphM;}
b2dc316d 58 void Exec(Option_t *);
017bd6af 59 Bool_t IsVerbose() const {return TESTBIT(fStatus, kVerbose);}
60 Bool_t IsVisual() const {return TESTBIT(fStatus, kVisual);}
d85cd79c 61 Bool_t PostProcess();
017bd6af 62
0b433f72 63 TH1* PlotCharge(const AliTRDtrackV1 *t=0x0);
b1957d3c 64 TH1* PlotCluster(const AliTRDtrackV1 *t=0x0);
65 TH1* PlotTracklet(const AliTRDtrackV1 *t=0x0);
ca309b00 66 TH1* PlotTrackTPC(const AliTRDtrackV1 *t=0x0);
e9ecf70f 67 TH1* PlotMC(const AliTRDtrackV1 *t=0x0);
de520d8f 68
017bd6af 69 void SetRecoParam(AliTRDrecoParam *r);
70 void SetVerbose(Bool_t v = kTRUE) {v ? SETBIT(fStatus ,kVerbose): CLRBIT(fStatus ,kVerbose);}
71 void SetVisual(Bool_t v = kTRUE) {v ? SETBIT(fStatus, kVisual) : CLRBIT(fStatus, kVisual);}
72
39779ce6 73 void Terminate(Option_t *);
27353166 74 Bool_t GetGraphPlot(Float_t *bb, ETRDresolutionPlot ip, Int_t idx=-1);
7ffc00a6 75 Bool_t GetGraphTrack(Float_t *bb, Int_t idx, Int_t ily);
dad4c5fc 76 Bool_t GetGraphTrackTPC(Float_t *bb, Int_t selector);
77203477 77
78private:
e3cf3d02 79 AliTRDresolution(const AliTRDresolution&);
80 AliTRDresolution& operator=(const AliTRDresolution&);
82b33eb2 81 void AdjustF1(TH1 *h, TF1 *f);
0b433f72 82 void GetLandauMpvFwhm(TF1 *f, Float_t &mpv, Float_t &xm, Float_t &xM);
dad4c5fc 83 Bool_t Process(TH2* h2, TF1 *f, Float_t k, TGraphErrors **g);
84 Bool_t Process2D(ETRDresolutionPlot ip, Int_t idx=-1, TF1 *f=0x0, Float_t scale=1.);
85 Bool_t Process3D(ETRDresolutionPlot ip, Int_t idx=-1, TF1 *f=0x0, Float_t scale=1.);
0b433f72 86 Bool_t Process3DL(ETRDresolutionPlot ip, Int_t idx=-1, TF1 *f=0x0, Float_t scale=1.);
dad4c5fc 87 Bool_t Process4D(ETRDresolutionPlot ip, Int_t idx=-1, TF1 *f=0x0, Float_t scale=1.);
77203477 88
b2dc316d 89 UChar_t fStatus; // steer parameter of the task
dad4c5fc 90 UChar_t fIdxPlot; //! plot counter (internal)
8dac3705 91 static Char_t *fPerformanceName[kNhistos]; // name of performance plot
82b33eb2 92 static UChar_t fNElements[kNhistos]; // number of componets per task
59589fc9 93 static Char_t *fAxTitle[46][4]; // Title for all ref histos
b2dc316d 94 AliTRDReconstructor *fReconstructor; //! local reconstructor
95 AliTRDgeometry *fGeo; //! TRD geometry
96 TObjArray *fGraphS; //! result holder - sigma values
97 TObjArray *fGraphM; //! result holder - mean values
98
99 // calibration containers
6fc46cba 100 TObjArray *fCl; //! cluster2track calib
101 TObjArray *fTrklt; //! tracklet2track calib
102 TObjArray *fMCcl; //! cluster2mc calib
103 TObjArray *fMCtrklt;//! tracklet2mc calib
b2dc316d 104
82b33eb2 105 ClassDef(AliTRDresolution, 2) // TRD tracking resolution task
77203477 106};
107#endif