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