]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCRecoParam.h
svn ci AliTPCtrackerMI.cxx AliTPCRecoParam.cxx AliTPCRecoParam.h
[u/mrichter/AliRoot.git] / TPC / AliTPCRecoParam.h
CommitLineData
669ce3c3 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
b1c50d5c 13#include "AliDetectorRecoParam.h"
669ce3c3 14
b1c50d5c 15class AliTPCRecoParam : public AliDetectorRecoParam
669ce3c3 16{
17 public:
18 AliTPCRecoParam();
19 virtual ~AliTPCRecoParam();
90e46a63 20 virtual void Print(const Option_t* option="") const;
01e5d820 21 static Bool_t GetUseTimeCalibration();
22 static void SetUseTimeCalibration(Bool_t useTimeCalibration);
9abc660b 23
24 void SetUseHLTClusters(Int_t useHLTClusters){fUseHLTClusters=useHLTClusters;}
25 Int_t GetUseHLTClusters() const {return fUseHLTClusters;}
fa90aa2b 26 void SetUseHLTPreSeeding(Int_t useHLTPreSeeding){fUseHLTPreSeeding=useHLTPreSeeding;}
27 Int_t GetUseHLTPreSeeding() const {return fUseHLTPreSeeding;}
018e4f8a 28 void SetClusterSharing(Bool_t sharing){fBClusterSharing=sharing;}
29 Bool_t GetClusterSharing() const {return fBClusterSharing;}
669ce3c3 30 Double_t GetCtgRange() const { return fCtgRange;}
31 Double_t GetMaxSnpTracker() const{ return fMaxSnpTracker;}
32 Double_t GetMaxSnpTrack() const { return fMaxSnpTrack;}
eba5bca1 33 Bool_t GetUseOuterDetectors() const { return fUseOuterDetectors;}
34 void SetUseOuterDetectors(Bool_t flag) { fUseOuterDetectors=flag;}
6fbe1e5c 35 Double_t GetCutSharedClusters(Int_t index)const { return fCutSharedClusters[index];}
36 void SetCutSharedClusters(Int_t index, Float_t value){ fCutSharedClusters[index]=value;}
37 Int_t GetClusterMaxRange(Int_t index)const { return fClusterMaxRange[index];}
38 void SetClusterMaxRange(Int_t index, Int_t value){ fClusterMaxRange[index]=value;}
669ce3c3 39 //
b127a65f 40 Bool_t DumpSignal() const { return fDumpSignal;}
34694cd5 41 void SetTimeInterval(Int_t first, Int_t last) { fFirstBin=first, fLastBin =last;}
669ce3c3 42 Int_t GetFirstBin() const { return fFirstBin;}
43 Int_t GetLastBin() const { return fLastBin;}
44 void SetTimeBinRange(Int_t first, Int_t last){ fFirstBin = first; fLastBin = last;}
940ed1f0 45 Bool_t GetCalcPedestal() const { return fBCalcPedestal;}
46 Bool_t GetDoUnfold() const { return fBDoUnfold;}
d7a66797 47 void SetDoUnfold(Bool_t unfold) { fBDoUnfold = unfold;}
940ed1f0 48 Float_t GetDumpAmplitudeMin() const { return fDumpAmplitudeMin;}
49 Float_t GetMaxNoise() const { return fMaxNoise;}
ec214961 50 //
1598ba75 51 Int_t GetUseOnePadCluster() const { return fUseOnePadCluster;}
52 Bool_t GetUseHLTOnePadCluster()const { return fUseHLTOnePadCluster;}
940ed1f0 53 Float_t GetMinMaxCutAbs() const { return fMinMaxCutAbs; }
54 Float_t GetMinLeftRightCutAbs() const { return fMinLeftRightCutAbs;} // minimal amplitude left right - PRF
55 Float_t GetMinUpDownCutAbs() const { return fMinUpDownCutAbs;} // minimal amplitude up-down - TRF
56 Float_t GetMinMaxCutSigma() const { return fMinMaxCutSigma; }
57 Float_t GetMinLeftRightCutSigma() const { return fMinLeftRightCutSigma;} // minimal amplitude left right - PRF
58 Float_t GetMinUpDownCutSigma() const { return fMinUpDownCutSigma;} // minimal amplitude up-down - TRF
669ce3c3 59 //
f47588e0 60 void SetUseOnePadCluster(Int_t use) { fUseOnePadCluster = use;}
1598ba75 61 void SetUseHLTOnePadCluster(Bool_t use) { fUseHLTOnePadCluster = use;}
ec214961 62 void SetMinMaxCutAbs(Float_t th) { fMinMaxCutAbs=th; }
63 void SetMinLeftRightCutAbs(Float_t th) { fMinLeftRightCutAbs=th;} // minimal amplitude left right - PRF
64 void SetMinUpDownCutAbs(Float_t th) { fMinUpDownCutAbs=th;} // minimal amplitude up-down - TRF
65 void SetMinMaxCutSigma(Float_t th) { fMinMaxCutSigma=th; }
66 void SetMinLeftRightCutSigma(Float_t th) { fMinLeftRightCutSigma=th;} // minimal amplitude left right - PRF
67 void SetMinUpDownCutSigma(Float_t th) { fMinUpDownCutSigma=th;} // minimal amplitude up-down - TRF
56b51ad9 68 void SetUseTotCharge(Bool_t flag) {fUseTotCharge = flag;}
69 void SetCtgRange(Double_t ctgRange) {fCtgRange = ctgRange;}
70 void SetUseMultiplicityCorrectionDedx(Bool_t flag) {fUseMultiplicityCorrectionDedx = flag;}
71 void SetUseAlignmentTime(Bool_t flag) {fUseAlignmentTime = flag;}
6d64657a 72 void SetNeighborRowsDedx(Int_t nRows) {fNeighborRowsDedx = nRows;}
ec214961 73 //
74 Int_t GetLastSeedRowSec() const { return fLastSeedRowSec;}
6d1424d5 75 Int_t GetSeedGapPrim() const { return fSeedGapPrim;}
76 Int_t GetSeedGapSec() const { return fSeedGapSec;}
812e76e7 77 void SetDoKinks(Bool_t on) { fBKinkFinder=on; }
669ce3c3 78 Bool_t GetDoKinks() const { return fBKinkFinder;}
eba5bca1 79 Double_t GetKinkAngleCutChi2(Int_t index) const {return fKinkAngleCutChi2[index];}
80 void SetKinkAngleCutChi2(Int_t index,Double_t value) {fKinkAngleCutChi2[index]=value;}
6d1424d5 81 void SetSeedGapPrim(Int_t seedGapPrim) { fSeedGapPrim = seedGapPrim;}
82 void SetSeedGapSec(Int_t seedGapSec) { fSeedGapSec = seedGapSec;}
b9cc16e4 83 Float_t GetMaxC() const { return fMaxC;}
84 Bool_t GetSpecialSeeding() const { return fBSpecialSeeding;}
6fbe1e5c 85 //
86 //
87
1cafd6f4 88 //
9430b11a 89 // Correction setup
90 //
25617779 91 void SetUseFieldCorrection(Int_t flag){fUseFieldCorrection=flag;}
cf5b0aa0 92 void SetUseComposedCorrection(Bool_t flag){fUseComposedCorrection=flag;}
25617779 93 void SetUseRPHICorrection(Int_t flag){fUseRPHICorrection=flag;}
94 void SetUseRadialCorrection(Int_t flag){fUseRadialCorrection=flag;}
95 void SetUseQuadrantAlignment(Int_t flag){fUseQuadrantAlignment=flag;}
96 void SetUseSectorAlignment(Int_t flag){fUseSectorAlignment=flag;}
97 void SetUseDriftCorrectionTime(Int_t flag){fUseDriftCorrectionTime=flag;}
98 void SetUseDriftCorrectionGY(Int_t flag){fUseDriftCorrectionGY=flag;}
99 void SetUseGainCorrectionTime(Int_t flag){fUseGainCorrectionTime=flag;}
07c43acb 100 void SetUseExBCorrection(Int_t flag){fUseExBCorrection=flag;}
101 void SetUseTOFCorrection(Bool_t flag) {fUseTOFCorrection = flag;}
fa90aa2b 102 void SetUseIonTailCorrection(Int_t flag) {fUseIonTailCorrection = flag;}
25617779 103 //
104 Int_t GetUseFieldCorrection() const {return fUseFieldCorrection;}
cf5b0aa0 105 Int_t GetUseComposedCorrection() const {return fUseComposedCorrection;}
25617779 106 Int_t GetUseRPHICorrection() const {return fUseRPHICorrection;}
107 Int_t GetUseRadialCorrection() const {return fUseRadialCorrection;}
108 Int_t GetUseQuadrantAlignment() const {return fUseQuadrantAlignment;}
109 Int_t GetUseSectorAlignment() const {return fUseSectorAlignment;}
110 Int_t GetUseDriftCorrectionTime() const {return fUseDriftCorrectionTime;}
111 Int_t GetUseDriftCorrectionGY() const {return fUseDriftCorrectionGY;}
112 Int_t GetUseGainCorrectionTime() const {return fUseGainCorrectionTime;}
07c43acb 113 Int_t GetUseExBCorrection() const {return fUseExBCorrection;}
fa90aa2b 114 Bool_t GetUseTOFCorrection() {return fUseTOFCorrection;}
115 Int_t GetUseIonTailCorrection() const {return fUseIonTailCorrection;}
116
56b51ad9 117 Bool_t GetUseMultiplicityCorrectionDedx() const {return fUseMultiplicityCorrectionDedx;}
118 Bool_t GetUseAlignmentTime() const {return fUseAlignmentTime;}
8f4188a7 119 //
44a6a09e 120 Bool_t GetUseTotCharge() const {return fUseTotCharge;} // switch use total or max charge
121 Float_t GetMinFraction() const {return fMinFraction;} // truncated mean - lower threshold
122 Float_t GetMaxFraction() const {return fMaxFaction;} // truncated mean - upper threshold
6d64657a 123 Int_t GetNeighborRowsDedx() const {return fNeighborRowsDedx;}
56b51ad9 124
25617779 125 //
1cafd6f4 126 void SetSystematicError(Double_t *systematic){ for (Int_t i=0; i<5;i++) fSystematicErrors[i]=systematic[i];}
127 const Double_t * GetSystematicError() const { return fSystematicErrors;}
0b2c141b 128 const Double_t * GetSystematicErrorClusterInner() const { return fSystematicErrorClusterInner;}
129
e1dadcd0 130 void SetUseSystematicCorrelation(Bool_t useCorrelation) {fUseSystematicCorrelation=useCorrelation;}
131 Bool_t GetUseSystematicCorrelation() const { return fUseSystematicCorrelation;}
1cafd6f4 132
669ce3c3 133 static AliTPCRecoParam *GetLowFluxParam(); // make reco parameters for low flux env.
134 static AliTPCRecoParam *GetHighFluxParam(); // make reco parameters for high flux env.
b447cbf9 135 static AliTPCRecoParam *GetHLTParam(); // special setting for HLT
669ce3c3 136 static AliTPCRecoParam *GetLaserTestParam(Bool_t bPedestal); // special setting for laser
137 static AliTPCRecoParam *GetCosmicTestParam(Bool_t bPedestal); // special setting for cosmic
138 //
139 protected:
fa90aa2b 140
9abc660b 141 Int_t fUseHLTClusters; // allows usage of HLT clusters instead of RAW data
fa90aa2b 142 Int_t fUseHLTPreSeeding; // Usage of HLT pre-seeding
018e4f8a 143 Bool_t fBClusterSharing; // allows or disable cluster sharing during tracking
669ce3c3 144 Double_t fCtgRange; // +-fCtgRange is the ctg(Theta) window used for clusterization and tracking (MI)
145 Double_t fMaxSnpTracker; // max sin of local angle - for TPC tracker
146 Double_t fMaxSnpTrack; // max sin of local angle - for track
eba5bca1 147 Bool_t fUseOuterDetectors; // switch - to use the outer detectors
669ce3c3 148 //
6fbe1e5c 149 //
150 Double_t fCutSharedClusters[2]; // cut value - maximal amount of shared clusters
151 Int_t fClusterMaxRange[2]; // neighborhood - to define local maxima for cluster
152 //
669ce3c3 153 // clusterer parameters
154 //
b127a65f 155 Bool_t fDumpSignal; // Dump Signal information flag
669ce3c3 156 Int_t fFirstBin; // first time bin used by cluster finder
157 Int_t fLastBin; // last time bin used by cluster finder
158 Bool_t fBCalcPedestal; // calculate Pedestal
159 Bool_t fBDoUnfold; // do unfolding of clusters
160 Float_t fDumpAmplitudeMin; // minimal amplitude of signal to be dumped
161 Float_t fMaxNoise; // maximal noise sigma on pad to be used in cluster finder
1598ba75 162 Int_t fUseOnePadCluster; // flag - use one pad cluster -0 not use >0 use
163 Bool_t fUseHLTOnePadCluster; // flag - use one HLT pad cluster for tracking
940ed1f0 164 Float_t fMinMaxCutAbs; // minimal amplitude at cluster maxima
165 Float_t fMinLeftRightCutAbs; // minimal amplitude left right - PRF
166 Float_t fMinUpDownCutAbs; // minimal amplitude up-down - TRF
167 Float_t fMinMaxCutSigma; // minimal amplitude at cluster maxima
168 Float_t fMinLeftRightCutSigma; // minimal amplitude left right - PRF
169 Float_t fMinUpDownCutSigma; // minimal amplitude up-down - TRF
669ce3c3 170 //
171 //
b9cc16e4 172 Float_t fMaxC; // maximal curvature for tracking
173 Bool_t fBSpecialSeeding; // special seeding with big inclination angles allowed (for Cosmic and laser)
eba5bca1 174 Bool_t fBKinkFinder; // do kink finder reconstruction
175 Double_t fKinkAngleCutChi2[2]; // angular cut for kinks
7d27c1df 176 Int_t fLastSeedRowSec; // Most Inner Row to make seeding for secondaries
6d1424d5 177 Int_t fSeedGapPrim; // seeding gap for primary tracks
178 Int_t fSeedGapSec; // seeding gap for secondary tracks
179
1cafd6f4 180 //
9430b11a 181 // Correction switches
182 //
07c43acb 183 Int_t fUseFieldCorrection; // use field correction
cf5b0aa0 184 Bool_t fUseComposedCorrection; // flag to use composed correction
25617779 185 Int_t fUseRPHICorrection; // use rphi correction
186 Int_t fUseRadialCorrection; // use radial correction
187 Int_t fUseQuadrantAlignment; // use quadrant alignment
188 Int_t fUseSectorAlignment; // use sector alignment
189 Int_t fUseDriftCorrectionTime; // use drift correction time
190 Int_t fUseDriftCorrectionGY; // use drif correction global y
191 Int_t fUseGainCorrectionTime; // use gain correction time
07c43acb 192 Int_t fUseExBCorrection; // use ExB correction
56b51ad9 193 Bool_t fUseMultiplicityCorrectionDedx; // use Dedx multiplicity correction
194 Bool_t fUseAlignmentTime; // use time dependent alignment correction
fa90aa2b 195 Int_t fUseIonTailCorrection; // use ion tail correction
25617779 196 //
8f4188a7 197 // dEdx switches
198 //
199 Bool_t fUseTotCharge; // switch use total or max charge
200 Float_t fMinFraction; // truncated mean - lower threshold
201 Float_t fMaxFaction; // truncated mean - upper threshold
6d64657a 202 Int_t fNeighborRowsDedx; // number of neighboring rows to identify cluster below thres in dEdx calculation 0 -> switch off
25617779 203
9430b11a 204 Bool_t fUseTOFCorrection; // switch - kTRUE use TOF correction kFALSE - do not use
205 //
eba5bca1 206 // misscalibration
1cafd6f4 207 //
01e5d820 208 Double_t fSystematicErrors[5]; //systematic errors in the track parameters - to be added to TPC covariance matrix
0b2c141b 209 Double_t fSystematicErrorClusterInner[2]; // systematic error of the cluster - used to downscale the information
e1dadcd0 210 Bool_t fUseSystematicCorrelation; // switch to use the correlation for the sys
01e5d820 211public:
502d13b5 212 static Bool_t fgUseTimeCalibration; // flag usage the time dependent calibration
213 // to be switched off for pass 0 reconstruction
214 // Use static function, other option will be to use
215 // additional specific storage ?
9e914d12 216 ClassDef(AliTPCRecoParam, 17)
669ce3c3 217};
218
219
220#endif