new class for omega measurement via 3 pion combination
[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
56
57
58//_____________________________________________________________________________
59AliTPCRecoParam::AliTPCRecoParam():
b1c50d5c 60 AliDetectorRecoParam(),
018e4f8a 61 fBClusterSharing(kTRUE),
669ce3c3 62 fCtgRange(1.05),
63 fMaxSnpTracker(0.95),
64 fMaxSnpTrack(0.999),
b127a65f 65 fDumpSignal(kFALSE),
669ce3c3 66 fFirstBin(0),
67 fLastBin(-1),
68 fBCalcPedestal(kFALSE),
69 fBDoUnfold(kTRUE),
70 fDumpAmplitudeMin(100),
837809ab 71 fMaxNoise(2.),
625fcba5 72 //
73 fMinMaxCutAbs(4.),
74 fMinLeftRightCutAbs(6.),
75 fMinUpDownCutAbs(6.),
76 //
940ed1f0 77 fMinMaxCutSigma(4.),
78 fMinLeftRightCutSigma(7.),
79 fMinUpDownCutSigma(8.),
b9cc16e4 80 fMaxC(0.3),
81 fBSpecialSeeding(kFALSE),
7d27c1df 82 fBKinkFinder(kTRUE),
9430b11a 83 fLastSeedRowSec(120),
25617779 84 fUseFieldCorrection(0), // use field correction
85 fUseRPHICorrection(0), // use rphi correction
86 fUseRadialCorrection(0), // use radial correction
87 fUseQuadrantAlignment(0), // use quadrant alignment
88 fUseSectorAlignment(0), // use sector alignment
89 fUseDriftCorrectionTime(0), // use drift correction time
90 fUseDriftCorrectionGY(0), // use drif correction global y
91 fUseGainCorrectionTime(0), // use gain correction time
9430b11a 92 fUseTOFCorrection(kTRUE)
669ce3c3 93{
94 //
95 // constructor
96 //
b1c50d5c 97 SetName("TPC");
98 SetTitle("TPC");
1cafd6f4 99 for (Int_t i=0;i<5;i++) fSystematicErrors[i]=0;
669ce3c3 100}
101
102//_____________________________________________________________________________
103AliTPCRecoParam::~AliTPCRecoParam()
104{
105 //
106 // destructor
107 //
108}
109
110
111
112
113AliTPCRecoParam *AliTPCRecoParam::GetLowFluxParam(){
114 //
115 // make default reconstruction parameters for low flux env.
116 //
117 AliTPCRecoParam *param = new AliTPCRecoParam;
118 param->fCtgRange = 10;
119 param->fFirstBin = 0;
120 param->fLastBin = 1000;
b447cbf9 121 param->SetName("Low Flux");
122 param->SetTitle("Low Flux");
669ce3c3 123 return param;
124}
125
126AliTPCRecoParam *AliTPCRecoParam::GetHighFluxParam(){
127 //
128 // make reco parameters for high flux env.
129 //
130 AliTPCRecoParam *param = new AliTPCRecoParam;
131 param->fCtgRange = 1.05;
132 param->fFirstBin = 0;
ec214961 133 param->fLastBin = 1000;
b447cbf9 134 param->SetName("High Flux");
135 param->SetTitle("High Flux");
136 return param;
137}
138
139AliTPCRecoParam *AliTPCRecoParam::GetHLTParam(){
140 //
141 // make reco parameters for high flux env.
142 //
143 AliTPCRecoParam *param = new AliTPCRecoParam;
144 param->fCtgRange = 1.05;
145 param->fFirstBin = 80;
146 param->fLastBin = 1000;
147 param->fMaxSnpTracker = 0.9;
1cafd6f4 148 param->fMaxC = 0.06;
b447cbf9 149 //
150 param->SetName("Hlt Param");
151 param->SetTitle("Hlt Param");
152 param->fBKinkFinder = kFALSE;
669ce3c3 153 return param;
154}
155
156AliTPCRecoParam *AliTPCRecoParam::GetLaserTestParam(Bool_t bPedestal){
157 //
158 // special setting for laser
159 //
160 AliTPCRecoParam *param = new AliTPCRecoParam;
b127a65f 161 param->fDumpSignal=kTRUE;
669ce3c3 162 param->fCtgRange = 10.05;
163 param->fFirstBin = 0;
164 param->fLastBin = 1000;
165 param->fBCalcPedestal = bPedestal;
166 param->fBDoUnfold = kFALSE;
fe5055e5 167 param->fDumpAmplitudeMin = 150;
669ce3c3 168 param->fBKinkFinder = kFALSE;
b9cc16e4 169 param->fMaxSnpTracker = 0.98;
170 param->fMaxC = 0.02;
171 param->fBSpecialSeeding = kTRUE;
9430b11a 172 param->fUseTOFCorrection=kFALSE;
ec214961 173 //
174 //
b447cbf9 175 param->SetName("Laser Flux");
176 param->SetTitle("Laser Flux");
669ce3c3 177 return param;
178}
179
180AliTPCRecoParam *AliTPCRecoParam::GetCosmicTestParam(Bool_t bPedestal){
181 //
182 // special setting for cosmic
183 //
184 AliTPCRecoParam *param = new AliTPCRecoParam;
b127a65f 185 param->fDumpSignal=kTRUE;
669ce3c3 186 param->fCtgRange = 10.05; // full TPC
187 param->fFirstBin = 60;
188 param->fLastBin = 1000;
189 param->fBCalcPedestal = bPedestal;
190 param->fBDoUnfold = kFALSE;
b9cc16e4 191 param->fBSpecialSeeding = kTRUE;
192 param->fMaxC = 0.07;
669ce3c3 193 param->fBKinkFinder = kFALSE;
9430b11a 194 param->fUseTOFCorrection =kFALSE;
b447cbf9 195 param->SetName("Cosmic Flux");
196 param->SetTitle("Cosmic Flux");
197
669ce3c3 198 return param;
199}
200
201
202