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