]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCRecoParam.h
1. Coding violatation partial fixies
[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   Int_t   GetUseOnePadCluster()   const   { return fUseOnePadCluster;}
46   Float_t  GetMinMaxCutAbs()       const  { return fMinMaxCutAbs; }
47   Float_t  GetMinLeftRightCutAbs() const  { return fMinLeftRightCutAbs;}  // minimal amplitude left right - PRF
48   Float_t  GetMinUpDownCutAbs()    const  { return fMinUpDownCutAbs;}  // minimal amplitude up-down - TRF 
49   Float_t  GetMinMaxCutSigma()       const  { return fMinMaxCutSigma; }
50   Float_t  GetMinLeftRightCutSigma() const  { return fMinLeftRightCutSigma;}  // minimal amplitude left right - PRF
51   Float_t  GetMinUpDownCutSigma()    const  { return fMinUpDownCutSigma;}  // minimal amplitude up-down - TRF 
52   //
53   void SetUseOnePadCluster(Int_t use)      {   fUseOnePadCluster = use;}
54   void SetMinMaxCutAbs(Float_t th)         {   fMinMaxCutAbs=th; }
55   void SetMinLeftRightCutAbs(Float_t th)   {   fMinLeftRightCutAbs=th;}  // minimal amplitude left right - PRF
56   void SetMinUpDownCutAbs(Float_t th)      {   fMinUpDownCutAbs=th;}  // minimal amplitude up-down - TRF 
57   void SetMinMaxCutSigma(Float_t th)       {   fMinMaxCutSigma=th; }
58   void SetMinLeftRightCutSigma(Float_t th) {   fMinLeftRightCutSigma=th;}  // minimal amplitude left right - PRF
59   void SetMinUpDownCutSigma(Float_t th)    {   fMinUpDownCutSigma=th;}  // minimal amplitude up-down - TRF 
60   void  SetUseTotCharge(Bool_t flag) {fUseTotCharge = flag;}
61   void  SetCtgRange(Double_t ctgRange) {fCtgRange = ctgRange;}
62   void  SetUseMultiplicityCorrectionDedx(Bool_t flag) {fUseMultiplicityCorrectionDedx = flag;}
63   void  SetUseAlignmentTime(Bool_t flag) {fUseAlignmentTime = flag;}
64   void  SetNeighborRowsDedx(Int_t nRows) {fNeighborRowsDedx = nRows;}
65   //
66   Int_t    GetLastSeedRowSec()       const  { return fLastSeedRowSec;} 
67   Int_t    GetSeedGapPrim()        const  { return fSeedGapPrim;} 
68   Int_t    GetSeedGapSec()         const  { return fSeedGapSec;} 
69   void     SetDoKinks(Bool_t on)   { fBKinkFinder=on; }
70   Bool_t   GetDoKinks() const      { return fBKinkFinder;}
71   Double_t GetKinkAngleCutChi2(Int_t index) const {return fKinkAngleCutChi2[index];}
72   void     SetKinkAngleCutChi2(Int_t index,Double_t value) {fKinkAngleCutChi2[index]=value;}
73   void     SetSeedGapPrim(Int_t seedGapPrim)         { fSeedGapPrim = seedGapPrim;} 
74   void     SetSeedGapSec(Int_t seedGapSec)          { fSeedGapSec  = seedGapSec;} 
75   Float_t  GetMaxC()    const      { return fMaxC;}
76   Bool_t   GetSpecialSeeding() const { return fBSpecialSeeding;}
77   //
78   //
79
80   //
81   // Correction setup
82   //
83   void  SetUseFieldCorrection(Int_t flag){fUseFieldCorrection=flag;}
84   void  SetUseComposedCorrection(Bool_t flag){fUseComposedCorrection=flag;}
85   void  SetUseRPHICorrection(Int_t flag){fUseRPHICorrection=flag;}
86   void  SetUseRadialCorrection(Int_t flag){fUseRadialCorrection=flag;}
87   void  SetUseQuadrantAlignment(Int_t flag){fUseQuadrantAlignment=flag;}
88   void  SetUseSectorAlignment(Int_t flag){fUseSectorAlignment=flag;}
89   void  SetUseDriftCorrectionTime(Int_t flag){fUseDriftCorrectionTime=flag;}
90   void  SetUseDriftCorrectionGY(Int_t flag){fUseDriftCorrectionGY=flag;}
91   void  SetUseGainCorrectionTime(Int_t flag){fUseGainCorrectionTime=flag;}
92   void  SetUseExBCorrection(Int_t flag){fUseExBCorrection=flag;}
93   void  SetUseTOFCorrection(Bool_t flag) {fUseTOFCorrection = flag;}
94   //
95   Int_t GetUseFieldCorrection() const {return fUseFieldCorrection;}
96   Int_t GetUseComposedCorrection() const {return fUseComposedCorrection;}
97   Int_t GetUseRPHICorrection() const {return fUseRPHICorrection;}
98   Int_t GetUseRadialCorrection() const {return fUseRadialCorrection;}
99   Int_t GetUseQuadrantAlignment() const {return fUseQuadrantAlignment;}
100   Int_t GetUseSectorAlignment() const {return fUseSectorAlignment;}
101   Int_t GetUseDriftCorrectionTime() const {return fUseDriftCorrectionTime;}
102   Int_t GetUseDriftCorrectionGY() const {return fUseDriftCorrectionGY;}
103   Int_t GetUseGainCorrectionTime() const {return fUseGainCorrectionTime;}
104   Int_t GetUseExBCorrection() const {return fUseExBCorrection;}
105   Bool_t GetUseMultiplicityCorrectionDedx() const {return fUseMultiplicityCorrectionDedx;}
106   Bool_t GetUseAlignmentTime() const {return fUseAlignmentTime;}
107   //
108   Bool_t   GetUseTotCharge() const {return fUseTotCharge;}          // switch use total or max charge
109   Float_t  GetMinFraction() const {return fMinFraction;}           // truncated mean - lower threshold
110   Float_t  GetMaxFraction() const {return fMaxFaction;}            // truncated mean - upper threshold
111   Int_t    GetNeighborRowsDedx() const {return fNeighborRowsDedx;} 
112
113   Bool_t   GetUseTOFCorrection() {return fUseTOFCorrection;}
114
115   //
116   void     SetSystematicError(Double_t *systematic){ for (Int_t i=0; i<5;i++) fSystematicErrors[i]=systematic[i];}
117   const Double_t * GetSystematicError() const { return fSystematicErrors;}
118
119   static   AliTPCRecoParam *GetLowFluxParam();        // make reco parameters for low  flux env.
120   static   AliTPCRecoParam *GetHighFluxParam();       // make reco parameters for high flux env. 
121   static   AliTPCRecoParam *GetHLTParam(); // special setting for HLT  
122   static   AliTPCRecoParam *GetLaserTestParam(Bool_t bPedestal);  // special setting for laser 
123   static   AliTPCRecoParam *GetCosmicTestParam(Bool_t bPedestal); // special setting for cosmic  
124   //
125  protected:
126   Bool_t   fBClusterSharing; // allows or disable cluster sharing during tracking 
127   Double_t fCtgRange;        // +-fCtgRange is the ctg(Theta) window used for clusterization and tracking (MI) 
128   Double_t fMaxSnpTracker;   // max sin of local angle  - for TPC tracker
129   Double_t fMaxSnpTrack;     // max sin of local angle  - for track 
130   Bool_t   fUseOuterDetectors; // switch - to use the outer detectors
131   //
132   //
133   Double_t fCutSharedClusters[2]; // cut value - maximal amount  of shared clusters  
134   Int_t fClusterMaxRange[2];   // neighborhood  - to define local maxima for cluster  
135   //
136   //   clusterer parameters
137   //
138   Bool_t   fDumpSignal;      // Dump Signal information flag
139   Int_t    fFirstBin;        // first time bin used by cluster finder
140   Int_t    fLastBin;         // last time bin  used by cluster finder 
141   Bool_t   fBCalcPedestal;   // calculate Pedestal
142   Bool_t   fBDoUnfold;       // do unfolding of clusters
143   Float_t  fDumpAmplitudeMin; // minimal amplitude of signal to be dumped 
144   Float_t  fMaxNoise;        // maximal noise sigma on pad to be used in cluster finder
145   Int_t   fUseOnePadCluster; // flag - use one pad cluster -0 not use >0 use
146   Float_t  fMinMaxCutAbs;    // minimal amplitude at cluster maxima
147   Float_t  fMinLeftRightCutAbs;  // minimal amplitude left right - PRF
148   Float_t  fMinUpDownCutAbs;  // minimal amplitude up-down - TRF 
149   Float_t  fMinMaxCutSigma;    // minimal amplitude at cluster maxima
150   Float_t  fMinLeftRightCutSigma;  // minimal amplitude left right - PRF
151   Float_t  fMinUpDownCutSigma;  // minimal amplitude up-down - TRF 
152   //
153   //
154   Float_t  fMaxC;            // maximal curvature for tracking
155   Bool_t   fBSpecialSeeding; // special seeding with big inclination angles allowed (for Cosmic and laser)
156   Bool_t   fBKinkFinder;       // do kink finder reconstruction
157   Double_t fKinkAngleCutChi2[2];   // angular cut for kinks
158   Int_t    fLastSeedRowSec;     // Most Inner Row to make seeding for secondaries
159   Int_t    fSeedGapPrim;   // seeding gap for primary tracks
160   Int_t    fSeedGapSec;   // seeding gap for secondary tracks
161
162   //
163   // Correction switches
164   //
165   Int_t fUseFieldCorrection;     // use field correction
166   Bool_t fUseComposedCorrection; // flag to use composed correction
167   Int_t fUseRPHICorrection;      // use rphi correction
168   Int_t fUseRadialCorrection;    // use radial correction
169   Int_t fUseQuadrantAlignment;   // use quadrant alignment
170   Int_t fUseSectorAlignment;     // use sector alignment
171   Int_t fUseDriftCorrectionTime; // use drift correction time
172   Int_t fUseDriftCorrectionGY;   // use drif correction global y
173   Int_t fUseGainCorrectionTime;  // use gain correction time
174   Int_t fUseExBCorrection;       // use ExB correction
175   Bool_t fUseMultiplicityCorrectionDedx; // use Dedx multiplicity correction
176   Bool_t fUseAlignmentTime;              // use time dependent alignment correction
177   //
178   // dEdx switches
179   //
180   Bool_t   fUseTotCharge;          // switch use total or max charge
181   Float_t fMinFraction;           // truncated mean - lower threshold
182   Float_t fMaxFaction;            // truncated mean - upper threshold
183   Int_t   fNeighborRowsDedx;      // number of neighboring rows to identify cluster below thres in dEdx calculation 0 -> switch off
184
185   Bool_t fUseTOFCorrection;  // switch - kTRUE use TOF correction kFALSE - do not use
186   //
187   //  misscalibration 
188   //
189   Double_t fSystematicErrors[5];  //systematic errors in the track parameters - to be added to TPC covariance matrix 
190 public:   
191   static Bool_t fgUseTimeCalibration; // flag usage the time dependent calibration
192                                       // to be switched off for pass 0 reconstruction
193                                       // Use static function, other option will be to use 
194                                       // additional specific storage ?
195   ClassDef(AliTPCRecoParam, 13)
196 };
197
198
199 #endif