]>
Commit | Line | Data |
---|---|---|
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 | ||
22 | class TH1; | |
23 | class TH2; | |
24 | class TF1; | |
25 | class TGraphErrors; | |
26 | class TObjArray; | |
92c40e64 | 27 | class TDatabasePDG; |
1ee39b3a | 28 | class AliTRDReconstructor; |
29 | class AliTRDgeometry; | |
30 | class AliTRDrecoParam; | |
31 | class AliTRDseedV1; | |
32 | class AliTRDtrackInfo; | |
33 | class AliTRDresolution : public AliTRDrecoTask | |
34 | { | |
35 | public: | |
36 | enum ETRDresolutionPlot { | |
37 | kCharge = 0 // charge resolution | |
38 | ,kCluster = 1 // cluster - track | |
92d6d80c | 39 | ,kTrack = 2 // tracklet - track residuals/pulls |
40 | ,kTrackIn = 3 // tracklet - track residuals/pulls at lower TRD entrance | |
a310e49b | 41 | ,kTrackOut = 4 // tracklet - track residuals/pulls at lower TRD entrance during refit |
42 | ,kMCcluster = 5 // cluster-mc resolution/pulls | |
43 | ,kMCtracklet = 6 // tracklet-mc resolution/pulls | |
44 | ,kMCtrackIn = 7 // TPC track monitor | |
45 | ,kMCtrackOut = 8 // TOF/HMPID track monitor | |
46 | ,kMCtrack = 9 // TRD track monitor | |
47 | ,kNviews = 10 // total number of resolution views | |
48 | ,kNprojs = 70 // total number of projections for all views | |
1ee39b3a | 49 | }; |
50 | enum ETRDresolutionSteer { | |
51 | kVerbose = 0 | |
52 | ,kVisual = 1 | |
53 | }; | |
705f8b0a | 54 | enum ETRDresolutionOutSlots { |
55 | kClToTrk = 2 | |
56 | ,kTrkltToTrk = 3 | |
57 | ,kClToMC = 4 | |
58 | ,kTrkltToMC = 5 | |
59 | ,kNOutSlots = 4 | |
60 | }; | |
1ee39b3a | 61 | |
62 | AliTRDresolution(); | |
f8f46e4d | 63 | AliTRDresolution(char* name); |
1ee39b3a | 64 | virtual ~AliTRDresolution(); |
65 | ||
f8f46e4d | 66 | void UserCreateOutputObjects(); |
041d572e | 67 | static Float_t GetPtThreshold() {return fgPtThreshold;} |
1ee39b3a | 68 | Bool_t GetRefFigure(Int_t ifig); |
69 | TObjArray* Histos(); | |
70 | TObjArray* Results(Int_t i=0) const {return i ? fGraphS : fGraphM;} | |
f8f46e4d | 71 | void UserExec(Option_t * opt); |
1ee39b3a | 72 | Bool_t IsVerbose() const {return TESTBIT(fStatus, kVerbose);} |
73 | Bool_t IsVisual() const {return TESTBIT(fStatus, kVisual);} | |
74 | Bool_t PostProcess(); | |
75 | ||
a310e49b | 76 | TH1* PlotCharge(const AliTRDtrackV1 *t=NULL); |
77 | TH1* PlotCluster(const AliTRDtrackV1 *t=NULL); | |
78 | TH1* PlotTracklet(const AliTRDtrackV1 *t=NULL); | |
79 | TH1* PlotTrackIn(const AliTRDtrackV1 *t=NULL); | |
80 | TH1* PlotTrackOut(const AliTRDtrackV1 *t=NULL); | |
81 | TH1* PlotMC(const AliTRDtrackV1 *t=NULL); | |
1ee39b3a | 82 | |
041d572e | 83 | static void SetPtThreshold(Float_t pt) {fgPtThreshold = pt;} |
1ee39b3a | 84 | void SetRecoParam(AliTRDrecoParam *r); |
85 | void SetVerbose(Bool_t v = kTRUE) {v ? SETBIT(fStatus ,kVerbose): CLRBIT(fStatus ,kVerbose);} | |
86 | void SetVisual(Bool_t v = kTRUE) {v ? SETBIT(fStatus, kVisual) : CLRBIT(fStatus, kVisual);} | |
87 | ||
88 | void Terminate(Option_t * opt); | |
a310e49b | 89 | Bool_t GetGraph(Float_t *bb, ETRDresolutionPlot ip, Int_t idx=-1, Bool_t kLEG=kTRUE, const Char_t *explain=NULL); |
90 | Bool_t GetGraphArray(Float_t *bb, ETRDresolutionPlot ip, Int_t idx, Bool_t kLEG=kTRUE, Int_t n=0, Int_t *sel=NULL, const Char_t *explain=NULL); | |
1ee39b3a | 91 | |
92 | private: | |
93 | AliTRDresolution(const AliTRDresolution&); | |
94 | AliTRDresolution& operator=(const AliTRDresolution&); | |
afca20ef | 95 | |
1ee39b3a | 96 | void AdjustF1(TH1 *h, TF1 *f); |
3d2a3dff | 97 | TObjArray* BuildMonitorContainerCluster(const char* name); |
afca20ef | 98 | TObjArray* BuildMonitorContainerTracklet(const char* name); |
3d2a3dff | 99 | TObjArray* BuildMonitorContainerTrack(const char* name); |
1ee39b3a | 100 | void GetLandauMpvFwhm(TF1 * const f, Float_t &mpv, Float_t &xm, Float_t &xM); |
101 | Bool_t Process(TH2* const h2, TF1 *f, Float_t k, TGraphErrors **g); | |
a310e49b | 102 | Bool_t Process2D(ETRDresolutionPlot ip, Int_t idx=-1, TF1 *f=NULL, Float_t scale=1., Int_t gidx=-1); |
103 | Bool_t Process2Darray(ETRDresolutionPlot ip, Int_t idx=-1, TF1 *f=NULL, Float_t scale=1.); | |
104 | Bool_t Process3D(ETRDresolutionPlot ip, Int_t idx=-1, TF1 *f=NULL, Float_t scale=1.); | |
105 | Bool_t Process3DL(ETRDresolutionPlot ip, Int_t idx=-1, TF1 *f=NULL, Float_t scale=1.); | |
106 | Bool_t Process3Darray(ETRDresolutionPlot ip, Int_t idx=-1, TF1 *f=NULL, Float_t scale=1.); | |
1ee39b3a | 107 | |
108 | UChar_t fStatus; // steer parameter of the task | |
92c40e64 | 109 | UShort_t fIdxPlot; //! plot counter (internal) |
110 | UShort_t fIdxFrame; //! frame counter (internal) | |
111 | static Char_t const *fgPerformanceName[kNviews]; // name of performance plot | |
92c40e64 | 112 | static UChar_t const fgNproj[kNviews]; // number of projections per task |
113 | static UChar_t const fgNcomp[kNprojs]; // number of projections per task | |
114 | static Char_t const *fgAxTitle[kNprojs][4]; // Title for all ref histos | |
041d572e | 115 | static Float_t fgPtThreshold; //! pt threshold for some performance plots |
116 | static const Int_t fgkNresYsegm; //! number of segments for saving y resolution | |
117 | static const Char_t *fgkResYsegmName; //! name of segment for saving y resolution | |
1ee39b3a | 118 | AliTRDReconstructor *fReconstructor; //! local reconstructor |
119 | AliTRDgeometry *fGeo; //! TRD geometry | |
92c40e64 | 120 | TDatabasePDG *fDBPDG; //! PDG database |
1ee39b3a | 121 | TObjArray *fGraphS; //! result holder - sigma values |
122 | TObjArray *fGraphM; //! result holder - mean values | |
123 | ||
124 | // calibration containers | |
125 | TObjArray *fCl; //! cluster2track calib | |
126 | TObjArray *fTrklt; //! tracklet2track calib | |
127 | TObjArray *fMCcl; //! cluster2mc calib | |
128 | TObjArray *fMCtrklt;//! tracklet2mc calib | |
129 | ||
a310e49b | 130 | ClassDef(AliTRDresolution, 5) // TRD tracking resolution task |
1ee39b3a | 131 | }; |
132 | #endif |