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