]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCRecoParam.cxx
Just something left from v2...now clean
[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.,1/(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   fBYMirror(kTRUE),
66   fDumpSignal(kFALSE),
67   fFirstBin(0),
68   fLastBin(-1),
69   fBCalcPedestal(kFALSE),
70   fBDoUnfold(kTRUE),
71   fDumpAmplitudeMin(100),
72   fMaxNoise(2.),
73   fMinMaxCutAbs(5.),
74   fMinLeftRightCutAbs(9.),
75   fMinUpDownCutAbs(10.),
76   fMinMaxCutSigma(4.),
77   fMinLeftRightCutSigma(7.),
78   fMinUpDownCutSigma(8.),
79   fMaxC(0.3),
80   fBSpecialSeeding(kFALSE),
81   fBKinkFinder(kTRUE),
82   fLastSeedRowSec(120)
83 {
84   //
85   // constructor
86   //
87   SetName("TPC");
88   SetTitle("TPC");
89   for (Int_t i=0;i<5;i++) fSystematicErrors[i]=0;
90 }
91
92 //_____________________________________________________________________________
93 AliTPCRecoParam::~AliTPCRecoParam() 
94 {
95   //
96   // destructor
97   //  
98 }
99
100
101
102
103 AliTPCRecoParam *AliTPCRecoParam::GetLowFluxParam(){
104   //
105   // make default reconstruction  parameters for low  flux env.
106   //
107   AliTPCRecoParam *param = new AliTPCRecoParam;
108   param->fCtgRange = 10;
109   param->fFirstBin = 0;
110   param->fLastBin  = 1000;
111   param->SetName("Low Flux");
112   param->SetTitle("Low Flux");
113   return param;
114 }
115
116 AliTPCRecoParam *AliTPCRecoParam::GetHighFluxParam(){
117   //
118   // make reco parameters for high flux env.
119   //
120   AliTPCRecoParam *param = new AliTPCRecoParam;
121   param->fCtgRange = 1.05;
122   param->fFirstBin = 0;
123   param->fLastBin  = 1000;  
124   param->SetName("High Flux");
125   param->SetTitle("High Flux");
126   return param;
127 }
128
129 AliTPCRecoParam *AliTPCRecoParam::GetHLTParam(){
130   //
131   // make reco parameters for high flux env.
132   //
133   AliTPCRecoParam *param = new AliTPCRecoParam;
134   param->fCtgRange = 1.05;
135   param->fFirstBin = 80;
136   param->fLastBin  = 1000;  
137   param->fMaxSnpTracker = 0.9; 
138   param->fMaxC          = 0.06; 
139   param->fBYMirror      = kFALSE;
140   //
141   param->SetName("Hlt Param");
142   param->SetTitle("Hlt Param"); 
143   param->fBKinkFinder   = kFALSE;
144   return param;
145 }
146
147 AliTPCRecoParam *AliTPCRecoParam::GetLaserTestParam(Bool_t bPedestal){
148   //
149   // special setting for laser
150   //
151   AliTPCRecoParam *param = new AliTPCRecoParam;
152   param->fDumpSignal=kTRUE;
153   param->fCtgRange = 10.05;
154   param->fFirstBin = 0;
155   param->fLastBin  = 1000;
156   param->fBCalcPedestal = bPedestal;
157   param->fBDoUnfold     = kFALSE;
158   param->fDumpAmplitudeMin = 150;
159   param->fBKinkFinder   = kFALSE;
160   param->fMaxSnpTracker = 0.98;
161   param->fMaxC          = 0.02;
162   param->fBSpecialSeeding = kTRUE;
163   param->fBYMirror      = kFALSE;
164   //
165   //
166   param->SetName("Laser Flux");
167   param->SetTitle("Laser Flux");
168   return param;
169 }
170
171 AliTPCRecoParam *AliTPCRecoParam::GetCosmicTestParam(Bool_t bPedestal){
172   //
173   // special setting for cosmic 
174   // 
175   AliTPCRecoParam *param = new AliTPCRecoParam;
176   param->fDumpSignal=kTRUE;
177   param->fCtgRange = 10.05;    // full TPC
178   param->fFirstBin = 60;
179   param->fLastBin  = 1000;
180   param->fBCalcPedestal = bPedestal;
181   param->fBDoUnfold     = kFALSE;
182   param->fBSpecialSeeding = kTRUE;
183   param->fMaxC          = 0.07;
184   param->fBKinkFinder   = kFALSE;
185   param->fBYMirror      = kFALSE;
186   param->SetName("Cosmic Flux");
187   param->SetTitle("Cosmic Flux");
188
189   return param;
190 }
191
192
193