]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/Rec/AliTPCRecoParam.cxx
ALIROOT-5347 Change StreamLevel for the tracker debugging
[u/mrichter/AliRoot.git] / TPC / Rec / AliTPCRecoParam.cxx
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 //                                                                           //  
21 //
22 /*
23   The reconstruction parameters are used in the AliTPCclusterer and AliTPCtracker
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
31   // Setting for systematic errors addition
32   [0] - systematic RMSY
33   [1] - systematic RMSZ
34   [2] - systematic RMSSNP
35   [3] - systematic RMSTheta
36   [4] - systematic RMSCuravture -  systematic error in 1/cm not in 1/pt
37   //
38   //  How to add it example - 3 mm systematic error y, 3 cm systematic error z (drift)
39   Double_t sysError[5]={0.3,3, 0.3/150., 3./150.,0.3/(150*150.)}
40   param->SetSystematicError(sysError);
41
42 */
43                                                                            //
44 ///////////////////////////////////////////////////////////////////////////////
45
46
47 #include "AliTPCRecoParam.h"
48
49 ClassImp(AliTPCRecoParam)
50
51
52 Bool_t AliTPCRecoParam::fgUseTimeCalibration=kTRUE; // flag usage the time dependent calibration
53                                       // to be switched off for pass 0 reconstruction
54                                       // Use static function, other option will be to use 
55                                       // additional specific storage ?
56
57 //_____________________________________________________________________________
58 AliTPCRecoParam::AliTPCRecoParam():
59   AliDetectorRecoParam(),
60   fUseHLTClusters(4),  // use HLTorRAW data
61   fUseHLTPreSeeding(0), // no pre-seeding for now
62   fBClusterSharing(kTRUE),
63   fCtgRange(1.05),       
64   fMaxSnpTracker(0.95),
65   fMaxSnpTrack(0.999),
66   fUseOuterDetectors(kFALSE),
67   fDumpSignal(kFALSE),
68   fFirstBin(0),
69   fLastBin(-1),
70   fBCalcPedestal(kFALSE),
71   fBDoUnfold(kTRUE),
72   fDumpAmplitudeMin(100),
73   fMaxNoise(2.),
74   //
75   fUseOnePadCluster(kTRUE),
76   fUseHLTOnePadCluster(kFALSE),
77   fMinMaxCutAbs(4.),
78   fMinLeftRightCutAbs(6.),
79   fMinUpDownCutAbs(6.),
80   //
81   fMinMaxCutSigma(4.),
82   fMinLeftRightCutSigma(7.),
83   fMinUpDownCutSigma(8.),
84   fMaxC(0.3),
85   fBSpecialSeeding(kFALSE),
86   fBKinkFinder(kTRUE),
87   fLastSeedRowSec(120),
88   fSeedGapPrim(6),
89   fSeedGapSec(6),
90   fUseFieldCorrection(0),      // use field correction
91   fUseComposedCorrection(kFALSE),      // use field correction
92   fUseRPHICorrection(0),      // use rphi correction
93   fUseRadialCorrection(0),    // use radial correction
94   fUseQuadrantAlignment(0),   // use quadrant alignment
95   fUseSectorAlignment(0),     // use sector alignment
96   fUseDriftCorrectionTime(1), // use drift correction time
97   fUseDriftCorrectionGY(1),   // use drif correction global y
98   fUseGainCorrectionTime(0),  // use gain correction time
99   fUseExBCorrection(1),  // use ExB correction
100   fUseMultiplicityCorrectionDedx(kTRUE), // use Dedx multiplicity correction
101   fUseAlignmentTime(kTRUE),              // use time dependent alignment correction
102   fUseIonTailCorrection(0),   // no ion tail correction for now
103   //
104   fUseTotCharge(kTRUE),          // switch use total or max charge
105   fMinFraction(0.01),           // truncated mean - lower threshold
106   fMaxFaction(0.7),            // truncated mean - upper threshold
107   fNeighborRowsDedx(2),           // neighbour rows for below threshold dEdx calculation
108   fGainCorrectionHVandPTMode(0), // switch for the usage of GainCorrectionHVandPT (see AliTPCcalibDB::GetGainCorrectionHVandPT   
109   fSkipTimeBins(5),              // number of time bins to be skiiped (corrupted signal druing gating opening)
110   fUseTOFCorrection(kTRUE),
111   fUseSystematicCorrelation(kTRUE)
112 {
113   //
114   // constructor
115   //
116   SetName("TPC");
117   SetTitle("TPC");
118   for (Int_t i=0;i<5;i++) fSystematicErrors[i]=0;
119   // systematic error parameterization at INNER wall of the TPC
120   fSystematicErrorClusterInner[0]=0.5;   // 0.5 cm
121   fSystematicErrorClusterInner[1]=5;     // 5 cm slope  
122   //
123   fCutSharedClusters[0]=0.5; // maximal allowed fraction of shared clusters - shorter track
124   fCutSharedClusters[1]=0.25; // maximal allowed fraction of shared clusters - longer  track
125   fClusterMaxRange[0]=1;     // y - pad      range
126   fClusterMaxRange[1]=1;     // z - time bin range
127   fKinkAngleCutChi2[0]=9;    // angular cut for kink finder - to create a kink
128                              // ~ about 5 % rate  for high pt kink finder
129   fKinkAngleCutChi2[1]=12;    // angular cut for kink finder - to use the partial track                             // form kink 
130                              // ~ about 2 % rate  for high pt kink finder
131 }
132
133 //_____________________________________________________________________________
134 AliTPCRecoParam::~AliTPCRecoParam() 
135 {
136   //
137   // destructor
138   //  
139 }
140
141 void AliTPCRecoParam::Print(const Option_t* /*option*/) const{
142   //
143   //
144   //
145   AliTPCRecoParam::Dump();
146   printf("Systematic errors:\n");
147   const char * cherrs[5]={"sy=","sz=","ssnp=","stheta=","s1pt="};
148   for (Int_t i=0; i<5; i++){
149     printf("%s%f\n",cherrs[i],fSystematicErrors[i]);
150   }
151 }
152
153
154 AliTPCRecoParam *AliTPCRecoParam::GetLowFluxParam(){
155   //
156   // make default reconstruction  parameters for low  flux env.
157   //
158   AliTPCRecoParam *param = new AliTPCRecoParam;
159   param->fCtgRange = 10;
160   param->fFirstBin = 0;
161   param->fLastBin  = 1000;
162   param->SetName("Low Flux");
163   param->SetTitle("Low Flux");
164   return param;
165 }
166
167 AliTPCRecoParam *AliTPCRecoParam::GetHighFluxParam(){
168   //
169   // make reco parameters for high flux env.
170   //
171   AliTPCRecoParam *param = new AliTPCRecoParam;
172   param->fCtgRange = 1.05;
173   param->fFirstBin = 0;
174   param->fLastBin  = 1000;  
175   param->fUseTotCharge=kFALSE;
176   param->SetName("High Flux");
177   param->SetTitle("High Flux");
178   return param;
179 }
180
181 AliTPCRecoParam *AliTPCRecoParam::GetHLTParam(){
182   //
183   // make reco parameters for high flux env.
184   //
185   AliTPCRecoParam *param = new AliTPCRecoParam;
186   param->fCtgRange = 1.05;
187   param->fFirstBin = 80;
188   param->fLastBin  = 1000;  
189   param->fMaxSnpTracker = 0.9; 
190   param->fMaxC          = 0.06; 
191   //
192   param->SetName("Hlt Param");
193   param->SetTitle("Hlt Param"); 
194   param->fBKinkFinder   = kFALSE;
195   return param;
196 }
197
198 AliTPCRecoParam *AliTPCRecoParam::GetLaserTestParam(Bool_t bPedestal){
199   //
200   // special setting for laser
201   //
202   AliTPCRecoParam *param = new AliTPCRecoParam;
203   param->fDumpSignal=kTRUE;
204   param->fCtgRange = 10.05;
205   param->fFirstBin = 0;
206   param->fLastBin  = 1000;
207   param->fBCalcPedestal = bPedestal;
208   param->fBDoUnfold     = kFALSE;
209   param->fDumpAmplitudeMin = 150;
210   param->fBKinkFinder   = kFALSE;
211   param->fMaxSnpTracker = 0.98;
212   param->fMaxC          = 0.02;
213   param->fBSpecialSeeding = kTRUE;
214   param->fUseTOFCorrection=kFALSE;
215   param->fUseHLTClusters=1; // always RAW data
216   //
217   //
218   param->SetName("Laser Flux");
219   param->SetTitle("Laser Flux");
220   return param;
221 }
222
223 AliTPCRecoParam *AliTPCRecoParam::GetCosmicTestParam(Bool_t bPedestal){
224   //
225   // special setting for cosmic 
226   // 
227   AliTPCRecoParam *param = new AliTPCRecoParam;
228   param->fDumpSignal=kTRUE;
229   param->fCtgRange = 10.05;    // full TPC
230   param->fFirstBin = 60;
231   param->fLastBin  = 1000;
232   param->fBCalcPedestal = bPedestal;
233   param->fBDoUnfold     = kFALSE;
234   param->fBSpecialSeeding = kTRUE;
235   param->fMaxC          = 0.07;
236   param->fBKinkFinder   = kFALSE;
237   param->fUseTOFCorrection =kFALSE;
238   param->SetName("Cosmic Flux");
239   param->SetTitle("Cosmic Flux");
240
241   return param;
242 }
243
244
245 Bool_t  AliTPCRecoParam::GetUseTimeCalibration(){ 
246   //
247   // get
248   //
249   return fgUseTimeCalibration;
250 }
251 void    AliTPCRecoParam::SetUseTimeCalibration(Bool_t useTimeCalibration) {
252   //
253   // set 
254   //
255   fgUseTimeCalibration = useTimeCalibration;
256 }
257