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 */
6 ///////////////////////////////////////////////////////////////////////////////
8 // Class with TPC reconstruction parameters //
10 ///////////////////////////////////////////////////////////////////////////////
13 #include "AliDetectorRecoParam.h"
15 class AliTPCRecoParam : public AliDetectorRecoParam
19 virtual ~AliTPCRecoParam();
20 virtual void Print(const Option_t* option="") const;
21 static Bool_t GetUseTimeCalibration();
22 static void SetUseTimeCalibration(Bool_t useTimeCalibration);
24 void SetUseHLTClusters(Int_t useHLTClusters){fUseHLTClusters=useHLTClusters;}
25 Int_t GetUseHLTClusters() const {return fUseHLTClusters;}
26 void SetUseHLTPreSeeding(Int_t useHLTPreSeeding){fUseHLTPreSeeding=useHLTPreSeeding;}
27 Int_t GetUseHLTPreSeeding() const {return fUseHLTPreSeeding;}
28 void SetClusterSharing(Bool_t sharing){fBClusterSharing=sharing;}
29 Bool_t GetClusterSharing() const {return fBClusterSharing;}
30 Double_t GetCtgRange() const { return fCtgRange;}
31 Double_t GetMaxSnpTracker() const{ return fMaxSnpTracker;}
32 Double_t GetMaxSnpTrack() const { return fMaxSnpTrack;}
33 Bool_t GetUseOuterDetectors() const { return fUseOuterDetectors;}
34 void SetUseOuterDetectors(Bool_t flag) { fUseOuterDetectors=flag;}
35 void SetMaxChi2TPCTRD(Double_t maxChi2){fMaxChi2TPCTRD=maxChi2;}
36 Double_t GetMaxChi2TPCTRD(){return fMaxChi2TPCTRD;}
37 Double_t GetCutSharedClusters(Int_t index)const { return fCutSharedClusters[index];}
38 void SetCutSharedClusters(Int_t index, Float_t value){ fCutSharedClusters[index]=value;}
39 Int_t GetClusterMaxRange(Int_t index)const { return fClusterMaxRange[index];}
40 void SetClusterMaxRange(Int_t index, Int_t value){ fClusterMaxRange[index]=value;}
42 Bool_t DumpSignal() const { return fDumpSignal;}
43 void SetTimeInterval(Int_t first, Int_t last) { fFirstBin=first, fLastBin =last;}
44 Int_t GetFirstBin() const { return fFirstBin;}
45 Int_t GetLastBin() const { return fLastBin;}
46 void SetTimeBinRange(Int_t first, Int_t last){ fFirstBin = first; fLastBin = last;}
47 Bool_t GetCalcPedestal() const { return fBCalcPedestal;}
48 Bool_t GetDoUnfold() const { return fBDoUnfold;}
49 void SetDoUnfold(Bool_t unfold) { fBDoUnfold = unfold;}
50 Float_t GetDumpAmplitudeMin() const { return fDumpAmplitudeMin;}
51 Float_t GetMaxNoise() const { return fMaxNoise;}
53 Int_t GetUseOnePadCluster() const { return fUseOnePadCluster;}
54 Bool_t GetUseHLTOnePadCluster()const { return fUseHLTOnePadCluster;}
55 Float_t GetMinMaxCutAbs() const { return fMinMaxCutAbs; }
56 Float_t GetMinLeftRightCutAbs() const { return fMinLeftRightCutAbs;} // minimal amplitude left right - PRF
57 Float_t GetMinUpDownCutAbs() const { return fMinUpDownCutAbs;} // minimal amplitude up-down - TRF
58 Float_t GetMinMaxCutSigma() const { return fMinMaxCutSigma; }
59 Float_t GetMinLeftRightCutSigma() const { return fMinLeftRightCutSigma;} // minimal amplitude left right - PRF
60 Float_t GetMinUpDownCutSigma() const { return fMinUpDownCutSigma;} // minimal amplitude up-down - TRF
62 void SetUseOnePadCluster(Int_t use) { fUseOnePadCluster = use;}
63 void SetUseHLTOnePadCluster(Bool_t use) { fUseHLTOnePadCluster = use;}
64 void SetMinMaxCutAbs(Float_t th) { fMinMaxCutAbs=th; }
65 void SetMinLeftRightCutAbs(Float_t th) { fMinLeftRightCutAbs=th;} // minimal amplitude left right - PRF
66 void SetMinUpDownCutAbs(Float_t th) { fMinUpDownCutAbs=th;} // minimal amplitude up-down - TRF
67 void SetMinMaxCutSigma(Float_t th) { fMinMaxCutSigma=th; }
68 void SetMinLeftRightCutSigma(Float_t th) { fMinLeftRightCutSigma=th;} // minimal amplitude left right - PRF
69 void SetMinUpDownCutSigma(Float_t th) { fMinUpDownCutSigma=th;} // minimal amplitude up-down - TRF
70 void SetUseTotCharge(Bool_t flag) {fUseTotCharge = flag;}
71 void SetCtgRange(Double_t ctgRange) {fCtgRange = ctgRange;}
72 void SetUseMultiplicityCorrectionDedx(Bool_t flag) {fUseMultiplicityCorrectionDedx = flag;}
74 void SetUseAlignmentTime(Bool_t flag) {fUseAlignmentTime = flag;}
75 void SetNeighborRowsDedx(Int_t nRows) {fNeighborRowsDedx = nRows;}
76 void SetCorrectionHVandPTMode(Int_t value){ fGainCorrectionHVandPTMode =value;}
77 void SetSkipTimeBins(Double_t value) {fSkipTimeBins=value;}
79 Int_t GetLastSeedRowSec() const { return fLastSeedRowSec;}
80 Int_t GetSeedGapPrim() const { return fSeedGapPrim;}
81 Int_t GetSeedGapSec() const { return fSeedGapSec;}
82 void SetDoKinks(Bool_t on) { fBKinkFinder=on; }
83 Bool_t GetDoKinks() const { return fBKinkFinder;}
84 Double_t GetKinkAngleCutChi2(Int_t index) const {return fKinkAngleCutChi2[index];}
85 void SetKinkAngleCutChi2(Int_t index,Double_t value) {fKinkAngleCutChi2[index]=value;}
86 void SetSeedGapPrim(Int_t seedGapPrim) { fSeedGapPrim = seedGapPrim;}
87 void SetSeedGapSec(Int_t seedGapSec) { fSeedGapSec = seedGapSec;}
88 Float_t GetMaxC() const { return fMaxC;}
89 Bool_t GetSpecialSeeding() const { return fBSpecialSeeding;}
96 void SetUseFieldCorrection(Int_t flag){fUseFieldCorrection=flag;}
97 void SetUseComposedCorrection(Bool_t flag){fUseComposedCorrection=flag;}
98 void SetUseRPHICorrection(Int_t flag){fUseRPHICorrection=flag;}
99 void SetUseRadialCorrection(Int_t flag){fUseRadialCorrection=flag;}
100 void SetUseQuadrantAlignment(Int_t flag){fUseQuadrantAlignment=flag;}
101 void SetUseSectorAlignment(Int_t flag){fUseSectorAlignment=flag;}
102 void SetUseDriftCorrectionTime(Int_t flag){fUseDriftCorrectionTime=flag;}
103 void SetUseDriftCorrectionGY(Int_t flag){fUseDriftCorrectionGY=flag;}
104 void SetUseGainCorrectionTime(Int_t flag){fUseGainCorrectionTime=flag;}
105 void SetUseExBCorrection(Int_t flag){fUseExBCorrection=flag;}
106 void SetUseTOFCorrection(Bool_t flag) {fUseTOFCorrection = flag;}
107 void SetUseIonTailCorrection(Int_t flag) {fUseIonTailCorrection = flag;}
109 Int_t GetUseFieldCorrection() const {return fUseFieldCorrection;}
110 Int_t GetUseComposedCorrection() const {return fUseComposedCorrection;}
111 Int_t GetUseRPHICorrection() const {return fUseRPHICorrection;}
112 Int_t GetUseRadialCorrection() const {return fUseRadialCorrection;}
113 Int_t GetUseQuadrantAlignment() const {return fUseQuadrantAlignment;}
114 Int_t GetUseSectorAlignment() const {return fUseSectorAlignment;}
115 Int_t GetUseDriftCorrectionTime() const {return fUseDriftCorrectionTime;}
116 Int_t GetUseDriftCorrectionGY() const {return fUseDriftCorrectionGY;}
117 Int_t GetUseGainCorrectionTime() const {return fUseGainCorrectionTime;}
118 Int_t GetUseExBCorrection() const {return fUseExBCorrection;}
119 Bool_t GetUseTOFCorrection() {return fUseTOFCorrection;}
120 Int_t GetUseIonTailCorrection() const {return fUseIonTailCorrection;}
122 Bool_t GetUseMultiplicityCorrectionDedx() const {return fUseMultiplicityCorrectionDedx;}
123 Int_t GetGainCorrectionHVandPTMode() const { return fGainCorrectionHVandPTMode;}
124 Double_t GetSkipTimeBins() const {return fSkipTimeBins;}
126 Bool_t GetUseAlignmentTime() const {return fUseAlignmentTime;}
128 Bool_t GetUseTotCharge() const {return fUseTotCharge;} // switch use total or max charge
129 Float_t GetMinFraction() const {return fMinFraction;} // truncated mean - lower threshold
130 Float_t GetMaxFraction() const {return fMaxFaction;} // truncated mean - upper threshold
131 Int_t GetNeighborRowsDedx() const {return fNeighborRowsDedx;}
134 void SetSystematicError(Double_t *systematic){ for (Int_t i=0; i<5;i++) fSystematicErrors[i]=systematic[i];}
135 const Double_t * GetSystematicError() const { return fSystematicErrors;}
136 const Double_t * GetSystematicErrorClusterInner() const { return fSystematicErrorClusterInner;}
138 void SetUseSystematicCorrelation(Bool_t useCorrelation) {fUseSystematicCorrelation=useCorrelation;}
139 Bool_t GetUseSystematicCorrelation() const { return fUseSystematicCorrelation;}
141 static AliTPCRecoParam *GetLowFluxParam(); // make reco parameters for low flux env.
142 static AliTPCRecoParam *GetHighFluxParam(); // make reco parameters for high flux env.
143 static AliTPCRecoParam *GetHLTParam(); // special setting for HLT
144 static AliTPCRecoParam *GetLaserTestParam(Bool_t bPedestal); // special setting for laser
145 static AliTPCRecoParam *GetCosmicTestParam(Bool_t bPedestal); // special setting for cosmic
149 Int_t fUseHLTClusters; // allows usage of HLT clusters instead of RAW data
150 Int_t fUseHLTPreSeeding; // Usage of HLT pre-seeding
151 Bool_t fBClusterSharing; // allows or disable cluster sharing during tracking
152 Double_t fCtgRange; // +-fCtgRange is the ctg(Theta) window used for clusterization and tracking (MI)
153 Double_t fMaxSnpTracker; // max sin of local angle - for TPC tracker
154 Double_t fMaxSnpTrack; // max sin of local angle - for track
155 Bool_t fUseOuterDetectors; // switch - to use the outer detectors
156 Double_t fMaxChi2TPCTRD; // maximal allowed chi2 between the TRD in and TPC out to be accepted for refit
159 Double_t fCutSharedClusters[2]; // cut value - maximal amount of shared clusters
160 Int_t fClusterMaxRange[2]; // neighborhood - to define local maxima for cluster
162 // clusterer parameters
164 Bool_t fDumpSignal; // Dump Signal information flag
165 Int_t fFirstBin; // first time bin used by cluster finder
166 Int_t fLastBin; // last time bin used by cluster finder
167 Bool_t fBCalcPedestal; // calculate Pedestal
168 Bool_t fBDoUnfold; // do unfolding of clusters
169 Float_t fDumpAmplitudeMin; // minimal amplitude of signal to be dumped
170 Float_t fMaxNoise; // maximal noise sigma on pad to be used in cluster finder
171 Int_t fUseOnePadCluster; // flag - use one pad cluster -0 not use >0 use
172 Bool_t fUseHLTOnePadCluster; // flag - use one HLT pad cluster for tracking
173 Float_t fMinMaxCutAbs; // minimal amplitude at cluster maxima
174 Float_t fMinLeftRightCutAbs; // minimal amplitude left right - PRF
175 Float_t fMinUpDownCutAbs; // minimal amplitude up-down - TRF
176 Float_t fMinMaxCutSigma; // minimal amplitude at cluster maxima
177 Float_t fMinLeftRightCutSigma; // minimal amplitude left right - PRF
178 Float_t fMinUpDownCutSigma; // minimal amplitude up-down - TRF
181 Float_t fMaxC; // maximal curvature for tracking
182 Bool_t fBSpecialSeeding; // special seeding with big inclination angles allowed (for Cosmic and laser)
183 Bool_t fBKinkFinder; // do kink finder reconstruction
184 Double_t fKinkAngleCutChi2[2]; // angular cut for kinks
185 Int_t fLastSeedRowSec; // Most Inner Row to make seeding for secondaries
186 Int_t fSeedGapPrim; // seeding gap for primary tracks
187 Int_t fSeedGapSec; // seeding gap for secondary tracks
190 // Correction switches
192 Int_t fUseFieldCorrection; // use field correction
193 Bool_t fUseComposedCorrection; // flag to use composed correction
194 Int_t fUseRPHICorrection; // use rphi correction
195 Int_t fUseRadialCorrection; // use radial correction
196 Int_t fUseQuadrantAlignment; // use quadrant alignment
197 Int_t fUseSectorAlignment; // use sector alignment
198 Int_t fUseDriftCorrectionTime; // use drift correction time
199 Int_t fUseDriftCorrectionGY; // use drif correction global y
200 Int_t fUseGainCorrectionTime; // use gain correction time
201 Int_t fUseExBCorrection; // use ExB correction
202 Bool_t fUseMultiplicityCorrectionDedx; // use Dedx multiplicity correction
203 Bool_t fUseAlignmentTime; // use time dependent alignment correction
204 Int_t fUseIonTailCorrection; // use ion tail correction
208 Bool_t fUseTotCharge; // switch use total or max charge
209 Float_t fMinFraction; // truncated mean - lower threshold
210 Float_t fMaxFaction; // truncated mean - upper threshold
211 Int_t fNeighborRowsDedx; // number of neighboring rows to identify cluster below thres in dEdx calculation 0 -> switch off
212 Int_t fGainCorrectionHVandPTMode; // switch for the usage of GainCorrectionHVandPT (see AliTPCcalibDB::GetGainCorrectionHVandPT
213 Double_t fSkipTimeBins; // number of time bins to be skiiped (corrupted signal druing gating opening)
215 Bool_t fUseTOFCorrection; // switch - kTRUE use TOF correction kFALSE - do not use
219 Double_t fSystematicErrors[5]; //systematic errors in the track parameters - to be added to TPC covariance matrix
220 Double_t fSystematicErrorClusterInner[2]; // systematic error of the cluster - used to downscale the information
221 Bool_t fUseSystematicCorrelation; // switch to use the correlation for the sys
223 static Bool_t fgUseTimeCalibration; // flag usage the time dependent calibration
224 // to be switched off for pass 0 reconstruction
225 // Use static function, other option will be to use
226 // additional specific storage ?
227 ClassDef(AliTPCRecoParam, 18)