]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCRecoParam.h
Added PID selection level
[u/mrichter/AliRoot.git] / TPC / AliTPCRecoParam.h
1 #ifndef ALITPCRECOPARAM_H
2 #define ALITPCRECOPARAM_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 // Class with TPC reconstruction parameters                                  //
9 //                                                                           //
10 ///////////////////////////////////////////////////////////////////////////////
11
12
13 #include "AliDetectorRecoParam.h"
14
15 class AliTPCRecoParam : public AliDetectorRecoParam
16 {
17  public: 
18   AliTPCRecoParam();
19   virtual ~AliTPCRecoParam();
20   static   Bool_t  GetUseTimeCalibration();
21   static   void    SetUseTimeCalibration(Bool_t useTimeCalibration);
22   void     SetClusterSharing(Bool_t sharing){fBClusterSharing=sharing;}
23   Bool_t   GetClusterSharing() const {return fBClusterSharing;}
24   Double_t GetCtgRange() const     { return fCtgRange;}
25   Double_t GetMaxSnpTracker() const{ return fMaxSnpTracker;}
26   Double_t GetMaxSnpTrack() const  { return fMaxSnpTrack;}
27   Bool_t   GetUseOuterDetectors() const { return fUseOuterDetectors;}
28   void     SetUseOuterDetectors(Bool_t flag)  { fUseOuterDetectors=flag;}
29   Double_t GetCutSharedClusters(Int_t index)const { return fCutSharedClusters[index];}
30   void  SetCutSharedClusters(Int_t index, Float_t value){ fCutSharedClusters[index]=value;}
31   Int_t GetClusterMaxRange(Int_t index)const { return fClusterMaxRange[index];}
32   void     SetClusterMaxRange(Int_t index, Int_t value){ fClusterMaxRange[index]=value;}
33   //
34   Bool_t   DumpSignal()     const  { return fDumpSignal;}
35   void     SetTimeInterval(Int_t first, Int_t last) { fFirstBin=first, fLastBin =last;}
36   Int_t    GetFirstBin() const     { return fFirstBin;}
37   Int_t    GetLastBin() const      { return fLastBin;}
38   void     SetTimeBinRange(Int_t first, Int_t last){ fFirstBin = first; fLastBin = last;}
39   Bool_t   GetCalcPedestal()       const  { return fBCalcPedestal;}
40   Bool_t   GetDoUnfold()           const  { return fBDoUnfold;}
41   void     SetDoUnfold(Bool_t unfold)     { fBDoUnfold = unfold;}
42   Float_t  GetDumpAmplitudeMin()   const  { return fDumpAmplitudeMin;}
43   Float_t  GetMaxNoise()           const  { return fMaxNoise;}  
44   //
45   Float_t  GetMinMaxCutAbs()       const  { return fMinMaxCutAbs; }
46   Float_t  GetMinLeftRightCutAbs() const  { return fMinLeftRightCutAbs;}  // minimal amplitude left right - PRF
47   Float_t  GetMinUpDownCutAbs()    const  { return fMinUpDownCutAbs;}  // minimal amplitude up-down - TRF 
48   Float_t  GetMinMaxCutSigma()       const  { return fMinMaxCutSigma; }
49   Float_t  GetMinLeftRightCutSigma() const  { return fMinLeftRightCutSigma;}  // minimal amplitude left right - PRF
50   Float_t  GetMinUpDownCutSigma()    const  { return fMinUpDownCutSigma;}  // minimal amplitude up-down - TRF 
51   //
52   void SetMinMaxCutAbs(Float_t th)         {   fMinMaxCutAbs=th; }
53   void SetMinLeftRightCutAbs(Float_t th)   {   fMinLeftRightCutAbs=th;}  // minimal amplitude left right - PRF
54   void SetMinUpDownCutAbs(Float_t th)      {   fMinUpDownCutAbs=th;}  // minimal amplitude up-down - TRF 
55   void SetMinMaxCutSigma(Float_t th)       {   fMinMaxCutSigma=th; }
56   void SetMinLeftRightCutSigma(Float_t th) {   fMinLeftRightCutSigma=th;}  // minimal amplitude left right - PRF
57   void SetMinUpDownCutSigma(Float_t th)    {   fMinUpDownCutSigma=th;}  // minimal amplitude up-down - TRF 
58   //
59   Int_t    GetLastSeedRowSec()       const  { return fLastSeedRowSec;} 
60   void     SetDoKinks(Bool_t on)   { fBKinkFinder=on; }
61   Bool_t   GetDoKinks() const      { return fBKinkFinder;}
62   Double_t GetKinkAngleCutChi2(Int_t index) const {return fKinkAngleCutChi2[index];}
63   void     SetKinkAngleCutChi2(Int_t index,Double_t value) {fKinkAngleCutChi2[index]=value;}
64   Float_t  GetMaxC()    const      { return fMaxC;}
65   Bool_t   GetSpecialSeeding() const { return fBSpecialSeeding;}
66   //
67   //
68
69   //
70   // Correction setup
71   //
72   void  SetUseFieldCorrection(Int_t flag){fUseFieldCorrection=flag;}
73   void  SetUseComposedCorrection(Bool_t flag){fUseComposedCorrection=flag;}
74   void  SetUseRPHICorrection(Int_t flag){fUseRPHICorrection=flag;}
75   void  SetUseRadialCorrection(Int_t flag){fUseRadialCorrection=flag;}
76   void  SetUseQuadrantAlignment(Int_t flag){fUseQuadrantAlignment=flag;}
77   void  SetUseSectorAlignment(Int_t flag){fUseSectorAlignment=flag;}
78   void  SetUseDriftCorrectionTime(Int_t flag){fUseDriftCorrectionTime=flag;}
79   void  SetUseDriftCorrectionGY(Int_t flag){fUseDriftCorrectionGY=flag;}
80   void  SetUseGainCorrectionTime(Int_t flag){fUseGainCorrectionTime=flag;}
81   void  SetUseExBCorrection(Int_t flag){fUseExBCorrection=flag;}
82   void  SetUseTOFCorrection(Bool_t flag) {fUseTOFCorrection = flag;}
83   //
84   Int_t GetUseFieldCorrection() const {return fUseFieldCorrection;}
85   Int_t GetUseComposedCorrection() const {return fUseComposedCorrection;}
86   Int_t GetUseRPHICorrection() const {return fUseRPHICorrection;}
87   Int_t GetUseRadialCorrection() const {return fUseRadialCorrection;}
88   Int_t GetUseQuadrantAlignment() const {return fUseQuadrantAlignment;}
89   Int_t GetUseSectorAlignment() const {return fUseSectorAlignment;}
90   Int_t GetUseDriftCorrectionTime() const {return fUseDriftCorrectionTime;}
91   Int_t GetUseDriftCorrectionGY() const {return fUseDriftCorrectionGY;}
92   Int_t GetUseGainCorrectionTime() const {return fUseGainCorrectionTime;}
93   Int_t GetUseExBCorrection() const {return fUseExBCorrection;}
94   //
95   Bool_t   GetUseTotCharge() const {return fUseTotCharge;}          // switch use total or max charge
96   Float_t  GetMinFraction() const {return fMinFraction;}           // truncated mean - lower threshold
97   Float_t  GetMaxFraction() const {return fMaxFaction;}            // truncated mean - upper threshold
98
99   Bool_t   GetUseTOFCorrection() {return fUseTOFCorrection;}
100
101   //
102   void     SetSystematicError(Double_t *systematic){ for (Int_t i=0; i<5;i++) fSystematicErrors[i]=systematic[i];}
103   const Double_t * GetSystematicError() const { return fSystematicErrors;}
104
105   static   AliTPCRecoParam *GetLowFluxParam();        // make reco parameters for low  flux env.
106   static   AliTPCRecoParam *GetHighFluxParam();       // make reco parameters for high flux env. 
107   static   AliTPCRecoParam *GetHLTParam(); // special setting for HLT  
108   static   AliTPCRecoParam *GetLaserTestParam(Bool_t bPedestal);  // special setting for laser 
109   static   AliTPCRecoParam *GetCosmicTestParam(Bool_t bPedestal); // special setting for cosmic  
110   //
111  protected:
112   Bool_t   fBClusterSharing; // allows or disable cluster sharing during tracking 
113   Double_t fCtgRange;        // +-fCtgRange is the ctg(Theta) window used for clusterization and tracking (MI) 
114   Double_t fMaxSnpTracker;   // max sin of local angle  - for TPC tracker
115   Double_t fMaxSnpTrack;     // max sin of local angle  - for track 
116   Bool_t   fUseOuterDetectors; // switch - to use the outer detectors
117   //
118   //
119   Double_t fCutSharedClusters[2]; // cut value - maximal amount  of shared clusters  
120   Int_t fClusterMaxRange[2];   // neighborhood  - to define local maxima for cluster  
121   //
122   //   clusterer parameters
123   //
124   Bool_t   fDumpSignal;      // Dump Signal information flag
125   Int_t    fFirstBin;        // first time bin used by cluster finder
126   Int_t    fLastBin;         // last time bin  used by cluster finder 
127   Bool_t   fBCalcPedestal;   // calculate Pedestal
128   Bool_t   fBDoUnfold;       // do unfolding of clusters
129   Float_t  fDumpAmplitudeMin; // minimal amplitude of signal to be dumped 
130   Float_t  fMaxNoise;        // maximal noise sigma on pad to be used in cluster finder
131   Float_t  fMinMaxCutAbs;    // minimal amplitude at cluster maxima
132   Float_t  fMinLeftRightCutAbs;  // minimal amplitude left right - PRF
133   Float_t  fMinUpDownCutAbs;  // minimal amplitude up-down - TRF 
134   Float_t  fMinMaxCutSigma;    // minimal amplitude at cluster maxima
135   Float_t  fMinLeftRightCutSigma;  // minimal amplitude left right - PRF
136   Float_t  fMinUpDownCutSigma;  // minimal amplitude up-down - TRF 
137   //
138   //
139   Float_t  fMaxC;            // maximal curvature for tracking
140   Bool_t   fBSpecialSeeding; // special seeding with big inclination angles allowed (for Cosmic and laser)
141   Bool_t   fBKinkFinder;       // do kink finder reconstruction
142   Double_t fKinkAngleCutChi2[2];   // angular cut for kinks
143   Int_t    fLastSeedRowSec;     // Most Inner Row to make seeding for secondaries
144   //
145   // Correction switches
146   //
147   Int_t fUseFieldCorrection;     // use field correction
148   Bool_t fUseComposedCorrection; // flag to use composed correction
149   Int_t fUseRPHICorrection;      // use rphi correction
150   Int_t fUseRadialCorrection;    // use radial correction
151   Int_t fUseQuadrantAlignment;   // use quadrant alignment
152   Int_t fUseSectorAlignment;     // use sector alignment
153   Int_t fUseDriftCorrectionTime; // use drift correction time
154   Int_t fUseDriftCorrectionGY;   // use drif correction global y
155   Int_t fUseGainCorrectionTime;  // use gain correction time
156   Int_t fUseExBCorrection;       // use ExB correction
157   //
158   // dEdx switches
159   //
160   Bool_t   fUseTotCharge;          // switch use total or max charge
161   Float_t fMinFraction;           // truncated mean - lower threshold
162   Float_t fMaxFaction;            // truncated mean - upper threshold
163
164   Bool_t fUseTOFCorrection;  // switch - kTRUE use TOF correction kFALSE - do not use
165   //
166   //  misscalibration 
167   //
168   Double_t fSystematicErrors[5];  //systematic errors in the track parameters - to be added to TPC covariance matrix 
169 public:   
170   static Bool_t fgUseTimeCalibration; // flag usage the time dependent calibration
171                                       // to be switched off for pass 0 reconstruction
172                                       // Use static function, other option will be to use 
173                                       // additional specific storage ?
174   ClassDef(AliTPCRecoParam, 10)
175 };
176
177
178 #endif