]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCRecoParam.cxx
AliTPCClusterParam.h -> simple Getter for Matrix
[u/mrichter/AliRoot.git] / TPC / 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 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
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)
43   Double_t sysError[5]={0.3,3, 0.3/150., 3./150.,0.3/(150*150.)}
44   param->SetSystematicError(sysError);
45
46 */
47                                                                            //
48 ///////////////////////////////////////////////////////////////////////////////
49
50
51 #include "AliTPCRecoParam.h"
52
53 ClassImp(AliTPCRecoParam)
54
55
56 Bool_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 ?
60
61 //_____________________________________________________________________________
62 AliTPCRecoParam::AliTPCRecoParam():
63   AliDetectorRecoParam(),
64   fBClusterSharing(kTRUE),
65   fCtgRange(1.05),       
66   fMaxSnpTracker(0.95),
67   fMaxSnpTrack(0.999),
68   fUseOuterDetectors(kFALSE),
69   fDumpSignal(kFALSE),
70   fFirstBin(0),
71   fLastBin(-1),
72   fBCalcPedestal(kFALSE),
73   fBDoUnfold(kTRUE),
74   fDumpAmplitudeMin(100),
75   fMaxNoise(2.),
76   //
77   fUseOnePadCluster(kTRUE),
78   fMinMaxCutAbs(4.),
79   fMinLeftRightCutAbs(6.),
80   fMinUpDownCutAbs(6.),
81   //
82   fMinMaxCutSigma(4.),
83   fMinLeftRightCutSigma(7.),
84   fMinUpDownCutSigma(8.),
85   fMaxC(0.3),
86   fBSpecialSeeding(kFALSE),
87   fBKinkFinder(kTRUE),
88   fLastSeedRowSec(120),
89   fSeedGapPrim(6),
90   fSeedGapSec(6),
91   fUseFieldCorrection(2),      // use field correction
92   fUseComposedCorrection(kFALSE),      // use field correction
93   fUseRPHICorrection(0),      // use rphi correction
94   fUseRadialCorrection(0),    // use radial correction
95   fUseQuadrantAlignment(0),   // use quadrant alignment
96   fUseSectorAlignment(0),     // use sector alignment
97   fUseDriftCorrectionTime(1), // use drift correction time
98   fUseDriftCorrectionGY(1),   // use drif correction global y
99   fUseGainCorrectionTime(0),  // use gain correction time
100   fUseExBCorrection(1),  // use ExB correction
101   fUseMultiplicityCorrectionDedx(kTRUE), // use Dedx multiplicity correction
102   fUseAlignmentTime(kTRUE),              // use time dependent alignment correction
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   fUseTOFCorrection(kTRUE)
108 {
109   //
110   // constructor
111   //
112   SetName("TPC");
113   SetTitle("TPC");
114   for (Int_t i=0;i<5;i++) fSystematicErrors[i]=0;
115   fCutSharedClusters[0]=0.5; // maximal allowed fraction of shared clusters - shorter track
116   fCutSharedClusters[1]=0.25; // maximal allowed fraction of shared clusters - longer  track
117   fClusterMaxRange[0]=1;     // y - pad      range
118   fClusterMaxRange[1]=1;     // z - time bin range
119   fKinkAngleCutChi2[0]=9;    // angular cut for kink finder - to create a kink
120                              // ~ about 5 % rate  for high pt kink finder
121   fKinkAngleCutChi2[1]=12;    // angular cut for kink finder - to use the partial track                             // form kink 
122                              // ~ about 2 % rate  for high pt kink finder
123 }
124
125 //_____________________________________________________________________________
126 AliTPCRecoParam::~AliTPCRecoParam() 
127 {
128   //
129   // destructor
130   //  
131 }
132
133
134
135
136 AliTPCRecoParam *AliTPCRecoParam::GetLowFluxParam(){
137   //
138   // make default reconstruction  parameters for low  flux env.
139   //
140   AliTPCRecoParam *param = new AliTPCRecoParam;
141   param->fCtgRange = 10;
142   param->fFirstBin = 0;
143   param->fLastBin  = 1000;
144   param->SetName("Low Flux");
145   param->SetTitle("Low Flux");
146   return param;
147 }
148
149 AliTPCRecoParam *AliTPCRecoParam::GetHighFluxParam(){
150   //
151   // make reco parameters for high flux env.
152   //
153   AliTPCRecoParam *param = new AliTPCRecoParam;
154   param->fCtgRange = 1.05;
155   param->fFirstBin = 0;
156   param->fLastBin  = 1000;  
157   param->fUseTotCharge=kFALSE;
158   param->SetName("High Flux");
159   param->SetTitle("High Flux");
160   return param;
161 }
162
163 AliTPCRecoParam *AliTPCRecoParam::GetHLTParam(){
164   //
165   // make reco parameters for high flux env.
166   //
167   AliTPCRecoParam *param = new AliTPCRecoParam;
168   param->fCtgRange = 1.05;
169   param->fFirstBin = 80;
170   param->fLastBin  = 1000;  
171   param->fMaxSnpTracker = 0.9; 
172   param->fMaxC          = 0.06; 
173   //
174   param->SetName("Hlt Param");
175   param->SetTitle("Hlt Param"); 
176   param->fBKinkFinder   = kFALSE;
177   return param;
178 }
179
180 AliTPCRecoParam *AliTPCRecoParam::GetLaserTestParam(Bool_t bPedestal){
181   //
182   // special setting for laser
183   //
184   AliTPCRecoParam *param = new AliTPCRecoParam;
185   param->fDumpSignal=kTRUE;
186   param->fCtgRange = 10.05;
187   param->fFirstBin = 0;
188   param->fLastBin  = 1000;
189   param->fBCalcPedestal = bPedestal;
190   param->fBDoUnfold     = kFALSE;
191   param->fDumpAmplitudeMin = 150;
192   param->fBKinkFinder   = kFALSE;
193   param->fMaxSnpTracker = 0.98;
194   param->fMaxC          = 0.02;
195   param->fBSpecialSeeding = kTRUE;
196   param->fUseTOFCorrection=kFALSE;
197   //
198   //
199   param->SetName("Laser Flux");
200   param->SetTitle("Laser Flux");
201   return param;
202 }
203
204 AliTPCRecoParam *AliTPCRecoParam::GetCosmicTestParam(Bool_t bPedestal){
205   //
206   // special setting for cosmic 
207   // 
208   AliTPCRecoParam *param = new AliTPCRecoParam;
209   param->fDumpSignal=kTRUE;
210   param->fCtgRange = 10.05;    // full TPC
211   param->fFirstBin = 60;
212   param->fLastBin  = 1000;
213   param->fBCalcPedestal = bPedestal;
214   param->fBDoUnfold     = kFALSE;
215   param->fBSpecialSeeding = kTRUE;
216   param->fMaxC          = 0.07;
217   param->fBKinkFinder   = kFALSE;
218   param->fUseTOFCorrection =kFALSE;
219   param->SetName("Cosmic Flux");
220   param->SetTitle("Cosmic Flux");
221
222   return param;
223 }
224
225
226 Bool_t  AliTPCRecoParam::GetUseTimeCalibration(){ 
227   //
228   // get
229   //
230   return fgUseTimeCalibration;
231 }
232 void    AliTPCRecoParam::SetUseTimeCalibration(Bool_t useTimeCalibration) {
233   //
234   // set 
235   //
236   fgUseTimeCalibration = useTimeCalibration;
237 }
238