]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/TRD/AliTRDcheckTRK.h
- fix coding rule violations
[u/mrichter/AliRoot.git] / PWGPP / TRD / AliTRDcheckTRK.h
1 #ifndef ALITRDCHECKTRK_H
2 #define ALITRDCHECKTRK_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6
7 ////////////////////////////////////////////////////////////////////////////
8 //                                                                        //
9 //  TRD tracker systematic                                                //
10 //                                                                        //
11 //  Authors:                                                              //
12 //    Alexandru Bercuci <A.Bercuci@gsi.de>                                //
13 //                                                                        //
14 ////////////////////////////////////////////////////////////////////////////
15
16 #ifndef ALITRDRESOLUTION_H
17 #include "AliTRDresolution.h"
18 #endif
19
20 /*template <typename Value> class TVectorT;
21 typedef struct TVectorT<Double_t> TVectorD;*/
22 class TObjArray;
23 class AliTRDtrackV1;
24 class AliTRDcheckTRK : public AliTRDresolution
25 {
26 public:
27   enum ETRDcheckTRKconst {
28      kNptBins    = 25 // no of log bins in pt spectrum
29     ,kNSigmaBins = 25 // no of sigma bins
30     ,kNclusters  = 19 // no of no of clusters
31     ,kNdim       = 7  // no of dimensions in THnSparse
32   };
33   AliTRDcheckTRK();
34   AliTRDcheckTRK(char* name);
35   virtual ~AliTRDcheckTRK();
36   static Float_t  GetKalmanStep()                      { return fgKalmanStep;}
37   static Bool_t   HasClRecalibrate()                   { return fgClRecalibrate;}
38   static Bool_t   HasKalmanUpdate()                    { return fgKalmanUpdate;}
39   static Bool_t   HasTrkltRefit()                      { return fgTrkltRefit;}
40   virtual TObjArray*  Histos();
41   TH1*            PlotTrack(const AliTRDtrackV1 *t=NULL);
42   TH1*            DoRoads(const AliTRDtrackV1 *t=NULL);
43   static Bool_t   PropagateKalman(AliTRDtrackV1 &t, AliExternalTrackParam *ref);
44   static void     SetKalmanStep(Float_t step)          { fgKalmanStep=step;}
45   static void     SetClRecalibrate(Bool_t set=kTRUE)   { fgClRecalibrate=set;}
46   static void     SetKalmanUpdate(Bool_t set=kTRUE)    { fgKalmanUpdate=set;}
47   static void     SetTrkltRefit(Bool_t set=kTRUE)      { fgTrkltRefit=set;}
48
49 private:
50   AliTRDcheckTRK(const AliTRDcheckTRK&);
51   AliTRDcheckTRK& operator=(const AliTRDcheckTRK&);
52   void     MakePtCalib(Float_t pt0=0.3, Float_t dpt=0.002);
53   Int_t    GetPtBinCalib(Float_t pt);
54
55   // kalman related settings
56   static Bool_t  fgKalmanUpdate;  // update Kalman with TRD point
57   static Bool_t  fgTrkltRefit;    // refit tracklet
58   static Bool_t  fgClRecalibrate; // recalibrate clusters and recalculate tracklet fit
59   static Float_t fgKalmanStep;    // Kalman stepping
60   Float_t        fPtBinCalib[kNptBins+1];  //! pt segmentation
61
62   ClassDef(AliTRDcheckTRK, 1) // TRD tracker systematic
63 };
64
65 #endif