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 SetClusterSharing(Bool_t sharing){fBClusterSharing=sharing;}
27 Bool_t GetClusterSharing() const {return fBClusterSharing;}
28 Double_t GetCtgRange() const { return fCtgRange;}
29 Double_t GetMaxSnpTracker() const{ return fMaxSnpTracker;}
30 Double_t GetMaxSnpTrack() const { return fMaxSnpTrack;}
31 Bool_t GetUseOuterDetectors() const { return fUseOuterDetectors;}
32 void SetUseOuterDetectors(Bool_t flag) { fUseOuterDetectors=flag;}
33 Double_t GetCutSharedClusters(Int_t index)const { return fCutSharedClusters[index];}
34 void SetCutSharedClusters(Int_t index, Float_t value){ fCutSharedClusters[index]=value;}
35 Int_t GetClusterMaxRange(Int_t index)const { return fClusterMaxRange[index];}
36 void SetClusterMaxRange(Int_t index, Int_t value){ fClusterMaxRange[index]=value;}
38 Bool_t DumpSignal() const { return fDumpSignal;}
39 void SetTimeInterval(Int_t first, Int_t last) { fFirstBin=first, fLastBin =last;}
40 Int_t GetFirstBin() const { return fFirstBin;}
41 Int_t GetLastBin() const { return fLastBin;}
42 void SetTimeBinRange(Int_t first, Int_t last){ fFirstBin = first; fLastBin = last;}
43 Bool_t GetCalcPedestal() const { return fBCalcPedestal;}
44 Bool_t GetDoUnfold() const { return fBDoUnfold;}
45 void SetDoUnfold(Bool_t unfold) { fBDoUnfold = unfold;}
46 Float_t GetDumpAmplitudeMin() const { return fDumpAmplitudeMin;}
47 Float_t GetMaxNoise() const { return fMaxNoise;}
49 Int_t GetUseOnePadCluster() const { return fUseOnePadCluster;}
50 Bool_t GetUseHLTOnePadCluster()const { return fUseHLTOnePadCluster;}
51 Float_t GetMinMaxCutAbs() const { return fMinMaxCutAbs; }
52 Float_t GetMinLeftRightCutAbs() const { return fMinLeftRightCutAbs;} // minimal amplitude left right - PRF
53 Float_t GetMinUpDownCutAbs() const { return fMinUpDownCutAbs;} // minimal amplitude up-down - TRF
54 Float_t GetMinMaxCutSigma() const { return fMinMaxCutSigma; }
55 Float_t GetMinLeftRightCutSigma() const { return fMinLeftRightCutSigma;} // minimal amplitude left right - PRF
56 Float_t GetMinUpDownCutSigma() const { return fMinUpDownCutSigma;} // minimal amplitude up-down - TRF
58 void SetUseOnePadCluster(Int_t use) { fUseOnePadCluster = use;}
59 void SetUseHLTOnePadCluster(Bool_t use) { fUseHLTOnePadCluster = use;}
60 void SetMinMaxCutAbs(Float_t th) { fMinMaxCutAbs=th; }
61 void SetMinLeftRightCutAbs(Float_t th) { fMinLeftRightCutAbs=th;} // minimal amplitude left right - PRF
62 void SetMinUpDownCutAbs(Float_t th) { fMinUpDownCutAbs=th;} // minimal amplitude up-down - TRF
63 void SetMinMaxCutSigma(Float_t th) { fMinMaxCutSigma=th; }
64 void SetMinLeftRightCutSigma(Float_t th) { fMinLeftRightCutSigma=th;} // minimal amplitude left right - PRF
65 void SetMinUpDownCutSigma(Float_t th) { fMinUpDownCutSigma=th;} // minimal amplitude up-down - TRF
66 void SetUseTotCharge(Bool_t flag) {fUseTotCharge = flag;}
67 void SetCtgRange(Double_t ctgRange) {fCtgRange = ctgRange;}
68 void SetUseMultiplicityCorrectionDedx(Bool_t flag) {fUseMultiplicityCorrectionDedx = flag;}
69 void SetUseAlignmentTime(Bool_t flag) {fUseAlignmentTime = flag;}
70 void SetNeighborRowsDedx(Int_t nRows) {fNeighborRowsDedx = nRows;}
72 Int_t GetLastSeedRowSec() const { return fLastSeedRowSec;}
73 Int_t GetSeedGapPrim() const { return fSeedGapPrim;}
74 Int_t GetSeedGapSec() const { return fSeedGapSec;}
75 void SetDoKinks(Bool_t on) { fBKinkFinder=on; }
76 Bool_t GetDoKinks() const { return fBKinkFinder;}
77 Double_t GetKinkAngleCutChi2(Int_t index) const {return fKinkAngleCutChi2[index];}
78 void SetKinkAngleCutChi2(Int_t index,Double_t value) {fKinkAngleCutChi2[index]=value;}
79 void SetSeedGapPrim(Int_t seedGapPrim) { fSeedGapPrim = seedGapPrim;}
80 void SetSeedGapSec(Int_t seedGapSec) { fSeedGapSec = seedGapSec;}
81 Float_t GetMaxC() const { return fMaxC;}
82 Bool_t GetSpecialSeeding() const { return fBSpecialSeeding;}
89 void SetUseFieldCorrection(Int_t flag){fUseFieldCorrection=flag;}
90 void SetUseComposedCorrection(Bool_t flag){fUseComposedCorrection=flag;}
91 void SetUseRPHICorrection(Int_t flag){fUseRPHICorrection=flag;}
92 void SetUseRadialCorrection(Int_t flag){fUseRadialCorrection=flag;}
93 void SetUseQuadrantAlignment(Int_t flag){fUseQuadrantAlignment=flag;}
94 void SetUseSectorAlignment(Int_t flag){fUseSectorAlignment=flag;}
95 void SetUseDriftCorrectionTime(Int_t flag){fUseDriftCorrectionTime=flag;}
96 void SetUseDriftCorrectionGY(Int_t flag){fUseDriftCorrectionGY=flag;}
97 void SetUseGainCorrectionTime(Int_t flag){fUseGainCorrectionTime=flag;}
98 void SetUseExBCorrection(Int_t flag){fUseExBCorrection=flag;}
99 void SetUseTOFCorrection(Bool_t flag) {fUseTOFCorrection = flag;}
101 Int_t GetUseFieldCorrection() const {return fUseFieldCorrection;}
102 Int_t GetUseComposedCorrection() const {return fUseComposedCorrection;}
103 Int_t GetUseRPHICorrection() const {return fUseRPHICorrection;}
104 Int_t GetUseRadialCorrection() const {return fUseRadialCorrection;}
105 Int_t GetUseQuadrantAlignment() const {return fUseQuadrantAlignment;}
106 Int_t GetUseSectorAlignment() const {return fUseSectorAlignment;}
107 Int_t GetUseDriftCorrectionTime() const {return fUseDriftCorrectionTime;}
108 Int_t GetUseDriftCorrectionGY() const {return fUseDriftCorrectionGY;}
109 Int_t GetUseGainCorrectionTime() const {return fUseGainCorrectionTime;}
110 Int_t GetUseExBCorrection() const {return fUseExBCorrection;}
111 Bool_t GetUseMultiplicityCorrectionDedx() const {return fUseMultiplicityCorrectionDedx;}
112 Bool_t GetUseAlignmentTime() const {return fUseAlignmentTime;}
114 Bool_t GetUseTotCharge() const {return fUseTotCharge;} // switch use total or max charge
115 Float_t GetMinFraction() const {return fMinFraction;} // truncated mean - lower threshold
116 Float_t GetMaxFraction() const {return fMaxFaction;} // truncated mean - upper threshold
117 Int_t GetNeighborRowsDedx() const {return fNeighborRowsDedx;}
119 Bool_t GetUseTOFCorrection() {return fUseTOFCorrection;}
122 void SetSystematicError(Double_t *systematic){ for (Int_t i=0; i<5;i++) fSystematicErrors[i]=systematic[i];}
123 const Double_t * GetSystematicError() const { return fSystematicErrors;}
124 void SetUseSystematicCorrelation(Bool_t useCorrelation) {fUseSystematicCorrelation=useCorrelation;}
125 Bool_t GetUseSystematicCorrelation() const { return fUseSystematicCorrelation;}
127 static AliTPCRecoParam *GetLowFluxParam(); // make reco parameters for low flux env.
128 static AliTPCRecoParam *GetHighFluxParam(); // make reco parameters for high flux env.
129 static AliTPCRecoParam *GetHLTParam(); // special setting for HLT
130 static AliTPCRecoParam *GetLaserTestParam(Bool_t bPedestal); // special setting for laser
131 static AliTPCRecoParam *GetCosmicTestParam(Bool_t bPedestal); // special setting for cosmic
134 Int_t fUseHLTClusters; // allows usage of HLT clusters instead of RAW data
135 Bool_t fBClusterSharing; // allows or disable cluster sharing during tracking
136 Double_t fCtgRange; // +-fCtgRange is the ctg(Theta) window used for clusterization and tracking (MI)
137 Double_t fMaxSnpTracker; // max sin of local angle - for TPC tracker
138 Double_t fMaxSnpTrack; // max sin of local angle - for track
139 Bool_t fUseOuterDetectors; // switch - to use the outer detectors
142 Double_t fCutSharedClusters[2]; // cut value - maximal amount of shared clusters
143 Int_t fClusterMaxRange[2]; // neighborhood - to define local maxima for cluster
145 // clusterer parameters
147 Bool_t fDumpSignal; // Dump Signal information flag
148 Int_t fFirstBin; // first time bin used by cluster finder
149 Int_t fLastBin; // last time bin used by cluster finder
150 Bool_t fBCalcPedestal; // calculate Pedestal
151 Bool_t fBDoUnfold; // do unfolding of clusters
152 Float_t fDumpAmplitudeMin; // minimal amplitude of signal to be dumped
153 Float_t fMaxNoise; // maximal noise sigma on pad to be used in cluster finder
154 Int_t fUseOnePadCluster; // flag - use one pad cluster -0 not use >0 use
155 Bool_t fUseHLTOnePadCluster; // flag - use one HLT pad cluster for tracking
156 Float_t fMinMaxCutAbs; // minimal amplitude at cluster maxima
157 Float_t fMinLeftRightCutAbs; // minimal amplitude left right - PRF
158 Float_t fMinUpDownCutAbs; // minimal amplitude up-down - TRF
159 Float_t fMinMaxCutSigma; // minimal amplitude at cluster maxima
160 Float_t fMinLeftRightCutSigma; // minimal amplitude left right - PRF
161 Float_t fMinUpDownCutSigma; // minimal amplitude up-down - TRF
164 Float_t fMaxC; // maximal curvature for tracking
165 Bool_t fBSpecialSeeding; // special seeding with big inclination angles allowed (for Cosmic and laser)
166 Bool_t fBKinkFinder; // do kink finder reconstruction
167 Double_t fKinkAngleCutChi2[2]; // angular cut for kinks
168 Int_t fLastSeedRowSec; // Most Inner Row to make seeding for secondaries
169 Int_t fSeedGapPrim; // seeding gap for primary tracks
170 Int_t fSeedGapSec; // seeding gap for secondary tracks
173 // Correction switches
175 Int_t fUseFieldCorrection; // use field correction
176 Bool_t fUseComposedCorrection; // flag to use composed correction
177 Int_t fUseRPHICorrection; // use rphi correction
178 Int_t fUseRadialCorrection; // use radial correction
179 Int_t fUseQuadrantAlignment; // use quadrant alignment
180 Int_t fUseSectorAlignment; // use sector alignment
181 Int_t fUseDriftCorrectionTime; // use drift correction time
182 Int_t fUseDriftCorrectionGY; // use drif correction global y
183 Int_t fUseGainCorrectionTime; // use gain correction time
184 Int_t fUseExBCorrection; // use ExB correction
185 Bool_t fUseMultiplicityCorrectionDedx; // use Dedx multiplicity correction
186 Bool_t fUseAlignmentTime; // use time dependent alignment correction
190 Bool_t fUseTotCharge; // switch use total or max charge
191 Float_t fMinFraction; // truncated mean - lower threshold
192 Float_t fMaxFaction; // truncated mean - upper threshold
193 Int_t fNeighborRowsDedx; // number of neighboring rows to identify cluster below thres in dEdx calculation 0 -> switch off
195 Bool_t fUseTOFCorrection; // switch - kTRUE use TOF correction kFALSE - do not use
199 Double_t fSystematicErrors[5]; //systematic errors in the track parameters - to be added to TPC covariance matrix
200 Bool_t fUseSystematicCorrelation; // switch to use the correlation for the sys
202 static Bool_t fgUseTimeCalibration; // flag usage the time dependent calibration
203 // to be switched off for pass 0 reconstruction
204 // Use static function, other option will be to use
205 // additional specific storage ?
206 ClassDef(AliTPCRecoParam, 16)