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