1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
17 ///////////////////////////////////////////////////////////////////////////////
19 // Class with TPC reconstruction parameters //
23 The reconstruction parameters are used in the AliTPCclustererMI and AliTPCtrackerMI
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
31 In the future reconstruction parameters should be changed on event basis
32 But for the moment, event types are still not defined
35 // Setting for systematic errors addition
38 [2] - systematic RMSSNP
39 [3] - systematic RMSTheta
40 [4] - systematic RMSCuravture - systematic error in 1/cm not in 1/pt
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);
48 ///////////////////////////////////////////////////////////////////////////////
51 #include "AliTPCRecoParam.h"
53 ClassImp(AliTPCRecoParam)
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 ?
61 //_____________________________________________________________________________
62 AliTPCRecoParam::AliTPCRecoParam():
63 AliDetectorRecoParam(),
64 fBClusterSharing(kTRUE),
68 fUseOuterDetectors(kFALSE),
72 fBCalcPedestal(kFALSE),
74 fDumpAmplitudeMin(100),
78 fMinLeftRightCutAbs(6.),
82 fMinLeftRightCutSigma(7.),
83 fMinUpDownCutSigma(8.),
85 fBSpecialSeeding(kFALSE),
90 fUseFieldCorrection(2), // 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
101 fUseTotCharge(kTRUE), // switch use total or max charge
102 fMinFraction(0.01), // truncated mean - lower threshold
103 fMaxFaction(0.7), // truncated mean - upper threshold
104 fUseTOFCorrection(kTRUE)
111 for (Int_t i=0;i<5;i++) fSystematicErrors[i]=0;
112 fCutSharedClusters[0]=0.5; // maximal allowed fraction of shared clusters - shorter track
113 fCutSharedClusters[1]=0.25; // maximal allowed fraction of shared clusters - longer track
114 fClusterMaxRange[0]=1; // y - pad range
115 fClusterMaxRange[1]=1; // z - time bin range
116 fKinkAngleCutChi2[0]=9; // angular cut for kink finder - to create a kink
117 // ~ about 5 % rate for high pt kink finder
118 fKinkAngleCutChi2[1]=12; // angular cut for kink finder - to use the partial track // form kink
119 // ~ about 2 % rate for high pt kink finder
122 //_____________________________________________________________________________
123 AliTPCRecoParam::~AliTPCRecoParam()
133 AliTPCRecoParam *AliTPCRecoParam::GetLowFluxParam(){
135 // make default reconstruction parameters for low flux env.
137 AliTPCRecoParam *param = new AliTPCRecoParam;
138 param->fCtgRange = 10;
139 param->fFirstBin = 0;
140 param->fLastBin = 1000;
141 param->SetName("Low Flux");
142 param->SetTitle("Low Flux");
146 AliTPCRecoParam *AliTPCRecoParam::GetHighFluxParam(){
148 // make reco parameters for high flux env.
150 AliTPCRecoParam *param = new AliTPCRecoParam;
151 param->fCtgRange = 1.05;
152 param->fFirstBin = 0;
153 param->fLastBin = 1000;
154 param->fUseTotCharge=kFALSE;
155 param->SetName("High Flux");
156 param->SetTitle("High Flux");
160 AliTPCRecoParam *AliTPCRecoParam::GetHLTParam(){
162 // make reco parameters for high flux env.
164 AliTPCRecoParam *param = new AliTPCRecoParam;
165 param->fCtgRange = 1.05;
166 param->fFirstBin = 80;
167 param->fLastBin = 1000;
168 param->fMaxSnpTracker = 0.9;
171 param->SetName("Hlt Param");
172 param->SetTitle("Hlt Param");
173 param->fBKinkFinder = kFALSE;
177 AliTPCRecoParam *AliTPCRecoParam::GetLaserTestParam(Bool_t bPedestal){
179 // special setting for laser
181 AliTPCRecoParam *param = new AliTPCRecoParam;
182 param->fDumpSignal=kTRUE;
183 param->fCtgRange = 10.05;
184 param->fFirstBin = 0;
185 param->fLastBin = 1000;
186 param->fBCalcPedestal = bPedestal;
187 param->fBDoUnfold = kFALSE;
188 param->fDumpAmplitudeMin = 150;
189 param->fBKinkFinder = kFALSE;
190 param->fMaxSnpTracker = 0.98;
192 param->fBSpecialSeeding = kTRUE;
193 param->fUseTOFCorrection=kFALSE;
196 param->SetName("Laser Flux");
197 param->SetTitle("Laser Flux");
201 AliTPCRecoParam *AliTPCRecoParam::GetCosmicTestParam(Bool_t bPedestal){
203 // special setting for cosmic
205 AliTPCRecoParam *param = new AliTPCRecoParam;
206 param->fDumpSignal=kTRUE;
207 param->fCtgRange = 10.05; // full TPC
208 param->fFirstBin = 60;
209 param->fLastBin = 1000;
210 param->fBCalcPedestal = bPedestal;
211 param->fBDoUnfold = kFALSE;
212 param->fBSpecialSeeding = kTRUE;
214 param->fBKinkFinder = kFALSE;
215 param->fUseTOFCorrection =kFALSE;
216 param->SetName("Cosmic Flux");
217 param->SetTitle("Cosmic Flux");
223 Bool_t AliTPCRecoParam::GetUseTimeCalibration(){
227 return fgUseTimeCalibration;
229 void AliTPCRecoParam::SetUseTimeCalibration(Bool_t useTimeCalibration) {
233 fgUseTimeCalibration = useTimeCalibration;