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 */
6 /* $Id: AliTRDresolution.h 27496 2008-07-22 08:35:45Z cblume $ */
8 ////////////////////////////////////////////////////////////////////////////
10 // TRD Resolution performance //
13 // Alexandru Bercuci <A.Bercuci@gsi.de> //
14 // Markus Fasel <M.Fasel@gsi.de> //
16 ////////////////////////////////////////////////////////////////////////////
18 #ifndef ALITRDRECOTASK_H
19 #include "AliTRDrecoTask.h"
27 class AliTRDReconstructor;
29 class AliTRDrecoParam;
31 class AliTRDtrackInfo;
32 class AliTRDresolution : public AliTRDrecoTask
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
47 enum ETRDresolutionSteer {
53 virtual ~AliTRDresolution();
55 void CreateOutputObjects();
56 Bool_t GetRefFigure(Int_t ifig);
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);}
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);
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);}
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);
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.);
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
100 // calibration containers
101 TObjArray *fCl; //! cluster2track calib
102 TObjArray *fTrklt; //! tracklet2track calib
103 TObjArray *fMCcl; //! cluster2mc calib
104 TObjArray *fMCtrklt;//! tracklet2mc calib
106 ClassDef(AliTRDresolution, 3) // TRD tracking resolution task