]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCRecoParam.cxx
new module for hadron correlations
[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
6be27415 89 fUseDriftCorrectionTime(1), // use drift correction time
90 fUseDriftCorrectionGY(1), // use drif correction global y
25617779 91 fUseGainCorrectionTime(0), // use gain correction time
07c43acb 92 fUseExBCorrection(1), // use ExB correction
8f4188a7 93 //
94 fUseTotCharge(kTRUE), // switch use total or max charge
95 fMinFraction(0.01), // truncated mean - lower threshold
96 fMaxFaction(0.7), // truncated mean - upper threshold
9430b11a 97 fUseTOFCorrection(kTRUE)
669ce3c3 98{
99 //
100 // constructor
101 //
b1c50d5c 102 SetName("TPC");
103 SetTitle("TPC");
1cafd6f4 104 for (Int_t i=0;i<5;i++) fSystematicErrors[i]=0;
6fbe1e5c 105 fCutSharedClusters[0]=0.5; // maximal allowed fraction of shared clusters - shorter track
106 fCutSharedClusters[1]=0.25; // maximal allowed fraction of shared clusters - longer track
107 fClusterMaxRange[0]=0; // y - pad range
108 fClusterMaxRange[1]=1; // z - time bin range
669ce3c3 109}
110
111//_____________________________________________________________________________
112AliTPCRecoParam::~AliTPCRecoParam()
113{
114 //
115 // destructor
116 //
117}
118
119
120
121
122AliTPCRecoParam *AliTPCRecoParam::GetLowFluxParam(){
123 //
124 // make default reconstruction parameters for low flux env.
125 //
126 AliTPCRecoParam *param = new AliTPCRecoParam;
127 param->fCtgRange = 10;
128 param->fFirstBin = 0;
129 param->fLastBin = 1000;
b447cbf9 130 param->SetName("Low Flux");
131 param->SetTitle("Low Flux");
669ce3c3 132 return param;
133}
134
135AliTPCRecoParam *AliTPCRecoParam::GetHighFluxParam(){
136 //
137 // make reco parameters for high flux env.
138 //
139 AliTPCRecoParam *param = new AliTPCRecoParam;
140 param->fCtgRange = 1.05;
141 param->fFirstBin = 0;
ec214961 142 param->fLastBin = 1000;
8f4188a7 143 param->fUseTotCharge=kFALSE;
b447cbf9 144 param->SetName("High Flux");
145 param->SetTitle("High Flux");
146 return param;
147}
148
149AliTPCRecoParam *AliTPCRecoParam::GetHLTParam(){
150 //
151 // make reco parameters for high flux env.
152 //
153 AliTPCRecoParam *param = new AliTPCRecoParam;
154 param->fCtgRange = 1.05;
155 param->fFirstBin = 80;
156 param->fLastBin = 1000;
157 param->fMaxSnpTracker = 0.9;
1cafd6f4 158 param->fMaxC = 0.06;
b447cbf9 159 //
160 param->SetName("Hlt Param");
161 param->SetTitle("Hlt Param");
162 param->fBKinkFinder = kFALSE;
669ce3c3 163 return param;
164}
165
166AliTPCRecoParam *AliTPCRecoParam::GetLaserTestParam(Bool_t bPedestal){
167 //
168 // special setting for laser
169 //
170 AliTPCRecoParam *param = new AliTPCRecoParam;
b127a65f 171 param->fDumpSignal=kTRUE;
669ce3c3 172 param->fCtgRange = 10.05;
173 param->fFirstBin = 0;
174 param->fLastBin = 1000;
175 param->fBCalcPedestal = bPedestal;
176 param->fBDoUnfold = kFALSE;
fe5055e5 177 param->fDumpAmplitudeMin = 150;
669ce3c3 178 param->fBKinkFinder = kFALSE;
b9cc16e4 179 param->fMaxSnpTracker = 0.98;
180 param->fMaxC = 0.02;
181 param->fBSpecialSeeding = kTRUE;
9430b11a 182 param->fUseTOFCorrection=kFALSE;
ec214961 183 //
184 //
b447cbf9 185 param->SetName("Laser Flux");
186 param->SetTitle("Laser Flux");
669ce3c3 187 return param;
188}
189
190AliTPCRecoParam *AliTPCRecoParam::GetCosmicTestParam(Bool_t bPedestal){
191 //
192 // special setting for cosmic
193 //
194 AliTPCRecoParam *param = new AliTPCRecoParam;
b127a65f 195 param->fDumpSignal=kTRUE;
669ce3c3 196 param->fCtgRange = 10.05; // full TPC
197 param->fFirstBin = 60;
198 param->fLastBin = 1000;
199 param->fBCalcPedestal = bPedestal;
200 param->fBDoUnfold = kFALSE;
b9cc16e4 201 param->fBSpecialSeeding = kTRUE;
202 param->fMaxC = 0.07;
669ce3c3 203 param->fBKinkFinder = kFALSE;
9430b11a 204 param->fUseTOFCorrection =kFALSE;
b447cbf9 205 param->SetName("Cosmic Flux");
206 param->SetTitle("Cosmic Flux");
207
669ce3c3 208 return param;
209}
210
211
212