Macros for analysis wagon:
[u/mrichter/AliRoot.git] / TPC / AliTPCRecoParam.cxx
CommitLineData
669ce3c3 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16
17///////////////////////////////////////////////////////////////////////////////
18// //
19// Class with TPC reconstruction parameters //
20// //
7a9e557b 21//
22/*
23 The reconstruction parameters are used in the AliTPCclustererMI and AliTPCtrackerMI
24
25 They are retrieved:
26 0. User speciefied it in reconstruction macro
27 1. if (not 0) from OCDB - AliTPCcalibDB::GetRecoParam(eventtype)
28 2. if (not 0 or 1) default parameter - High flux enevironment used
29
30 FIXME:
31 In the future reconstruction parameters should be changed on event basis
32 But for the moment, event types are still not defined
33
1cafd6f4 34
35 // Setting for systematic errors addition
36 [0] - systematic RMSY
37 [1] - systematic RMSZ
38 [2] - systematic RMSSNP
39 [3] - systematic RMSTheta
40 [4] - systematic RMSCuravture - systematic error in 1/cm not in 1/pt
41 //
42 // How to add it example - 3 mm systematic error y, 3 cm systematic error z (drift)
a69162c3 43 Double_t sysError[5]={0.3,3, 0.3/150., 3./150.,0.3/(150*150.)}
1cafd6f4 44 param->SetSystematicError(sysError);
45
7a9e557b 46*/
47 //
669ce3c3 48///////////////////////////////////////////////////////////////////////////////
49
50
51#include "AliTPCRecoParam.h"
52
53ClassImp(AliTPCRecoParam)
54
55
502d13b5 56Bool_t AliTPCRecoParam::fgUseTimeCalibration=kTRUE; // flag usage the time dependent calibration
57 // to be switched off for pass 0 reconstruction
58 // Use static function, other option will be to use
59 // additional specific storage ?
669ce3c3 60
61//_____________________________________________________________________________
62AliTPCRecoParam::AliTPCRecoParam():
b1c50d5c 63 AliDetectorRecoParam(),
018e4f8a 64 fBClusterSharing(kTRUE),
669ce3c3 65 fCtgRange(1.05),
66 fMaxSnpTracker(0.95),
67 fMaxSnpTrack(0.999),
eba5bca1 68 fUseOuterDetectors(kFALSE),
b127a65f 69 fDumpSignal(kFALSE),
669ce3c3 70 fFirstBin(0),
71 fLastBin(-1),
72 fBCalcPedestal(kFALSE),
73 fBDoUnfold(kTRUE),
74 fDumpAmplitudeMin(100),
837809ab 75 fMaxNoise(2.),
625fcba5 76 //
77 fMinMaxCutAbs(4.),
78 fMinLeftRightCutAbs(6.),
79 fMinUpDownCutAbs(6.),
80 //
940ed1f0 81 fMinMaxCutSigma(4.),
82 fMinLeftRightCutSigma(7.),
83 fMinUpDownCutSigma(8.),
b9cc16e4 84 fMaxC(0.3),
85 fBSpecialSeeding(kFALSE),
6d1424d5 86 fSeedGapPrim(6),
87 fSeedGapSec(6),
7d27c1df 88 fBKinkFinder(kTRUE),
9430b11a 89 fLastSeedRowSec(120),
502d13b5 90 fUseFieldCorrection(2), // use field correction
cf5b0aa0 91 fUseComposedCorrection(kFALSE), // use field correction
25617779 92 fUseRPHICorrection(0), // use rphi correction
93 fUseRadialCorrection(0), // use radial correction
94 fUseQuadrantAlignment(0), // use quadrant alignment
95 fUseSectorAlignment(0), // use sector alignment
6be27415 96 fUseDriftCorrectionTime(1), // use drift correction time
97 fUseDriftCorrectionGY(1), // use drif correction global y
25617779 98 fUseGainCorrectionTime(0), // use gain correction time
07c43acb 99 fUseExBCorrection(1), // use ExB correction
8f4188a7 100 //
101 fUseTotCharge(kTRUE), // switch use total or max charge
102 fMinFraction(0.01), // truncated mean - lower threshold
103 fMaxFaction(0.7), // truncated mean - upper threshold
9430b11a 104 fUseTOFCorrection(kTRUE)
669ce3c3 105{
106 //
107 // constructor
108 //
b1c50d5c 109 SetName("TPC");
110 SetTitle("TPC");
1cafd6f4 111 for (Int_t i=0;i<5;i++) fSystematicErrors[i]=0;
6fbe1e5c 112 fCutSharedClusters[0]=0.5; // maximal allowed fraction of shared clusters - shorter track
113 fCutSharedClusters[1]=0.25; // maximal allowed fraction of shared clusters - longer track
eba5bca1 114 fClusterMaxRange[0]=1; // y - pad range
6fbe1e5c 115 fClusterMaxRange[1]=1; // z - time bin range
eba5bca1 116 fKinkAngleCutChi2[0]=9; // angular cut for kink finder - to create a kink
117 // ~ about 5 % rate for high pt kink finder
118 fKinkAngleCutChi2[1]=12; // angular cut for kink finder - to use the partial track // form kink
119 // ~ about 2 % rate for high pt kink finder
669ce3c3 120}
121
122//_____________________________________________________________________________
123AliTPCRecoParam::~AliTPCRecoParam()
124{
125 //
126 // destructor
127 //
128}
129
130
131
132
133AliTPCRecoParam *AliTPCRecoParam::GetLowFluxParam(){
134 //
135 // make default reconstruction parameters for low flux env.
136 //
137 AliTPCRecoParam *param = new AliTPCRecoParam;
138 param->fCtgRange = 10;
139 param->fFirstBin = 0;
140 param->fLastBin = 1000;
b447cbf9 141 param->SetName("Low Flux");
142 param->SetTitle("Low Flux");
669ce3c3 143 return param;
144}
145
146AliTPCRecoParam *AliTPCRecoParam::GetHighFluxParam(){
147 //
148 // make reco parameters for high flux env.
149 //
150 AliTPCRecoParam *param = new AliTPCRecoParam;
151 param->fCtgRange = 1.05;
152 param->fFirstBin = 0;
ec214961 153 param->fLastBin = 1000;
8f4188a7 154 param->fUseTotCharge=kFALSE;
b447cbf9 155 param->SetName("High Flux");
156 param->SetTitle("High Flux");
157 return param;
158}
159
160AliTPCRecoParam *AliTPCRecoParam::GetHLTParam(){
161 //
162 // make reco parameters for high flux env.
163 //
164 AliTPCRecoParam *param = new AliTPCRecoParam;
165 param->fCtgRange = 1.05;
166 param->fFirstBin = 80;
167 param->fLastBin = 1000;
168 param->fMaxSnpTracker = 0.9;
1cafd6f4 169 param->fMaxC = 0.06;
b447cbf9 170 //
171 param->SetName("Hlt Param");
172 param->SetTitle("Hlt Param");
173 param->fBKinkFinder = kFALSE;
669ce3c3 174 return param;
175}
176
177AliTPCRecoParam *AliTPCRecoParam::GetLaserTestParam(Bool_t bPedestal){
178 //
179 // special setting for laser
180 //
181 AliTPCRecoParam *param = new AliTPCRecoParam;
b127a65f 182 param->fDumpSignal=kTRUE;
669ce3c3 183 param->fCtgRange = 10.05;
184 param->fFirstBin = 0;
185 param->fLastBin = 1000;
186 param->fBCalcPedestal = bPedestal;
187 param->fBDoUnfold = kFALSE;
fe5055e5 188 param->fDumpAmplitudeMin = 150;
669ce3c3 189 param->fBKinkFinder = kFALSE;
b9cc16e4 190 param->fMaxSnpTracker = 0.98;
191 param->fMaxC = 0.02;
192 param->fBSpecialSeeding = kTRUE;
9430b11a 193 param->fUseTOFCorrection=kFALSE;
ec214961 194 //
195 //
b447cbf9 196 param->SetName("Laser Flux");
197 param->SetTitle("Laser Flux");
669ce3c3 198 return param;
199}
200
201AliTPCRecoParam *AliTPCRecoParam::GetCosmicTestParam(Bool_t bPedestal){
202 //
203 // special setting for cosmic
204 //
205 AliTPCRecoParam *param = new AliTPCRecoParam;
b127a65f 206 param->fDumpSignal=kTRUE;
669ce3c3 207 param->fCtgRange = 10.05; // full TPC
208 param->fFirstBin = 60;
209 param->fLastBin = 1000;
210 param->fBCalcPedestal = bPedestal;
211 param->fBDoUnfold = kFALSE;
b9cc16e4 212 param->fBSpecialSeeding = kTRUE;
213 param->fMaxC = 0.07;
669ce3c3 214 param->fBKinkFinder = kFALSE;
9430b11a 215 param->fUseTOFCorrection =kFALSE;
b447cbf9 216 param->SetName("Cosmic Flux");
217 param->SetTitle("Cosmic Flux");
218
669ce3c3 219 return param;
220}
221
222
01e5d820 223Bool_t AliTPCRecoParam::GetUseTimeCalibration(){
224 //
225 // get
226 //
227 return fgUseTimeCalibration;
228}
229void AliTPCRecoParam::SetUseTimeCalibration(Bool_t useTimeCalibration) {
230 //
231 // set
232 //
233 fgUseTimeCalibration = useTimeCalibration;
234}
669ce3c3 235