fixing small memory leak
[u/mrichter/AliRoot.git] / ITS / AliITSRecoParam.cxx
CommitLineData
44347160 1/**************************************************************************
572f41f9 2 * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
44347160 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
572f41f9 16#include "AliITSRecoParam.h"
5c6a2470 17#include "AliESDV0Params.h"
5bd7ec3a 18#include "AliLog.h"
572f41f9 19
20/* $Id$ */
44347160 21
22///////////////////////////////////////////////////////////////////////////////
23// //
24// Class with ITS reconstruction parameters //
25// Origin: andrea.dainese@lnl.infn.it //
26// //
27///////////////////////////////////////////////////////////////////////////////
28
29
44347160 30
31ClassImp(AliITSRecoParam)
32
e50912db 33const Int_t AliITSRecoParam::fgkLayersNotToSkip[AliITSgeomTGeo::kNLayers]={0,0,0,0,0,0};
e50912db 34const Double_t AliITSRecoParam::fgkrInsideShield[2]={7.5,25.0};
35const Double_t AliITSRecoParam::fgkrOutsideShield[2]={10.5,30.0};
36const Double_t AliITSRecoParam::fgkdshield[2]={0.0097,0.0034};
37const Double_t AliITSRecoParam::fgkX0shield[2]={38.6,42.0};
44347160 38
39//_____________________________________________________________________________
6518a6c5 40AliITSRecoParam::AliITSRecoParam() : AliDetectorRecoParam(),
f9119eb9 41fTracker(0),
42fITSonly(kFALSE),
43fVertexer(0),
876026b6 44fClusterFinder(0),
45fPID(0),
7203e11a 46fVtxr3DZCutWide(0.),
47fVtxr3DRCutWide(0.),
48fVtxr3DZCutNarrow(0.),
49fVtxr3DRCutNarrow(0.),
50fVtxr3DPhiCutLoose(0.),
51fVtxr3DPhiCutTight(0.),
52fVtxr3DDCACut(0.),
8b78365f 53fVtxr3DPileupAlgo(1),
efe6147d 54fVtxr3DHighMultAlgo(1),
e50912db 55fMaxSnp(1.),
572f41f9 56fNSigmaYLayerForRoadY(0),
57fNSigmaRoadY(0),
58fNSigmaZLayerForRoadZ(0),
59fNSigmaRoadZ(0),
60fNSigma2RoadZC(0),
61fNSigma2RoadYC(0),
62fNSigma2RoadZNonC(0),
63fNSigma2RoadYNonC(0),
1c97ce2f 64fRoadMisal(0),
572f41f9 65fMaxNormChi2NonCForHypothesis(0),
66fMaxChi2(0),
67fMaxRoad(0),
68fMaxChi2In(0),
69fChi2PerCluster(0),
794d9013 70fSearchForExtras(kTRUE),
572f41f9 71fXV(0),
72fYV(0),
73fZV(0),
74fSigmaXV(0),
75fSigmaYV(0),
76fSigmaZV(0),
77fVertexCut(0),
78fMaxDZforPrimTrk(0),
79fMaxDZToUseConstraint(0),
80fMaxDforV0dghtrForProlongation(0),
81fMaxDForProlongation(0),
82fMaxDZForProlongation(0),
83fMinPtForProlongation(0),
6518a6c5 84fAddVirtualClustersInDeadZone(kFALSE),
572f41f9 85fZWindowDeadZone(0),
86fSigmaXDeadZoneHit2(0),
87fSigmaZDeadZoneHit2(0),
88fXPassDeadZoneHits(0),
87b4605f 89fSkipSubdetsNotInTriggerCluster(kTRUE),
6518a6c5 90fUseTGeoInTracker(3),
908753cb 91fStepSizeTGeo(5.),
572f41f9 92fAllowSharedClusters(kTRUE),
e50912db 93fClusterErrorsParam(1),
4a66240a 94fComputePlaneEff(kFALSE),
5fbd4fd6 95fHistoPlaneEff(kFALSE),
58e8dc31 96fUseTrackletsPlaneEff(kFALSE),
97fMCTrackletsPlaneEff(kFALSE),
98fBkgTrackletsPlaneEff(kFALSE),
99fTrackleterPhiWindowL1(0.10),
7284b2b2 100fTrackleterPhiWindowL2(0.07),
58e8dc31 101fTrackleterZetaWindowL1(0.6),
7284b2b2 102fTrackleterZetaWindowL2(0.4),
58e8dc31 103fUpdateOncePerEventPlaneEff(kTRUE),
104fMinContVtxPlaneEff(3),
0ed58a47 105fIPlanePlaneEff(0),
275a301c 106fReadPlaneEffFromOCDB(kFALSE),
0ed58a47 107fMinPtPlaneEff(0),
061c42a0 108fMaxMissingClustersPlaneEff(5),
109fMaxMissingClustersOutPlaneEff(5),
0ed58a47 110fRequireClusterInOuterLayerPlaneEff(kFALSE),
111fRequireClusterInInnerLayerPlaneEff(kFALSE),
112fOnlyConstraintPlaneEff(kFALSE),
061c42a0 113fNSigXFromBoundaryPlaneEff(1.),
114fNSigZFromBoundaryPlaneEff(1.),
333d86cb 115fImproveWithVertex(kFALSE),
2755f080 116fExtendedEtaAcceptance(kFALSE),
b406db2e 117fUseBadZonesFromOCDB(kTRUE),
23197852 118fUseSingleBadChannelsFromOCDB(kFALSE),
119fMinFractionOfBadInRoad(0),
ae00569a 120fAllowProlongationWithEmptyRoad(kFALSE),
12b1afb7 121fInwardFlagSA(kFALSE),
122fOuterStartLayerSA(2),
123fInnerStartLayerSA(3),
124fMinNPointsSA(3),
2755f080 125fFactorSAWindowSizes(1.),
489c98fd 126fNLoopsSA(32),
c7d6d7b7 127fMinPhiSA(0.002),
128fMaxPhiSA(0.0145),
129fMinLambdaSA(0.003),
130fMaxLambdaSA(0.008),
3733ccd2 131fMinClusterChargeSA(0.),
5a03f353 132fSAOnePointTracks(kFALSE),
133fSAUseAllClusters(kFALSE),
3d7b9209 134fMaxSPDcontrForSAToUseAllClusters(1000000),
4336faa4 135fSAUsedEdxInfo(kFALSE),
a4354152 136fSelectBestMIP03(kFALSE),
137fFlagFakes(kFALSE),
138fUseImproveKalman(kFALSE),
6518a6c5 139fFindV0s(kTRUE),
b0160ebc 140fStoreLikeSignV0s(kFALSE),
6518a6c5 141fUseUnfoldingInClusterFinderSPD(kFALSE),
142fUseUnfoldingInClusterFinderSDD(kTRUE),
d695268b 143fUseUnfoldingInClusterFinderSSD(kFALSE),
7101948c 144fUseBadChannelsInClusterFinderSSD(kFALSE),
ba0a07bf 145fUseSDDCorrectionMaps(kTRUE),
b779c7dc 146fUseSDDClusterSizeSelection(kFALSE),
147fMinClusterChargeSDD(0.),
7b116aa1 148fUseChargeMatchingInClusterFinderSSD(kTRUE),
7b116aa1 149fTrackleterPhiWindow(0.08),
7284b2b2 150fTrackleterThetaWindow(0.025),
fa9ed8e9 151fTrackleterPhiShift(0.0045),
7b116aa1 152fTrackleterRemoveClustersFromOverlaps(kFALSE),
153fTrackleterPhiOverlapCut(0.005),
42ed6062 154fTrackleterZetaOverlapCut(0.05),
7c6da836 155fTrackleterPhiRotationAngle(0.0),
a8fd6065 156fTrackleterNStdDev(1.5),
f9f90134 157fScaleDTBySin2T(kFALSE),
e73fcfbb 158fTrackleterBuildCl2TrkRefs(kTRUE),
159//
ad7f2bfa 160fUseCosmicRunShiftsSSD(kFALSE),
161fSPDRemoveNoisyFlag(kTRUE),
9364069b 162fSPDRemoveDeadFlag(kTRUE),
163fVertexerFastSmearX(0.005),
164fVertexerFastSmearY(0.005),
f27a7e81 165fVertexerFastSmearZ(0.01),
166fAlignFilterCosmics(kFALSE),
167fAlignFilterCosmicMergeTracks(kTRUE),
168fAlignFilterMinITSPoints(4),
169fAlignFilterMinITSPointsMerged(4),
170fAlignFilterOnlyITSSATracks(kTRUE),
171fAlignFilterOnlyITSTPCTracks(kFALSE),
172fAlignFilterSkipExtra(kFALSE),
173fAlignFilterMaxMatchingAngle(0.085),
174fAlignFilterMinAngleWrtModulePlanes(0.52),
175fAlignFilterMinPt(0.),
176fAlignFilterMaxPt(1.e10),
767aaecb 177fAlignFilterFillQANtuples(kTRUE),
6de485aa 178//
179fMultCutPxDrSPDin(0.1),
180fMultCutPxDrSPDout(0.15),
181fMultCutPxDz(0.2),
182fMultCutDCArz(0.5),
183fMultCutMinElectronProbTPC(0.5),
184fMultCutMinElectronProbESD(0.1),
185fMultCutMinP(0.05),
186fMultCutMinRGamma(2.),
187fMultCutMinRK0(1.),
188fMultCutMinPointAngle(0.98),
189fMultCutMaxDCADauther(0.5),
190fMultCutMassGamma(0.03),
191fMultCutMassGammaNSigma(5.),
192fMultCutMassK0(0.03),
193fMultCutMassK0NSigma(5.),
194fMultCutChi2cGamma(2.),
195fMultCutChi2cK0(2.),
196fMultCutGammaSFromDecay(-10.),
197fMultCutK0SFromDecay(-10.),
198fMultCutMaxDCA(1.),
199//
fa72f030 200fCorrectLorentzAngleSPD(kTRUE),
66b89079 201fTanLorentzAngleHolesSPD(0.017455), // tan(1 degree)
fa72f030 202fCorrectLorentzAngleSSD(kTRUE),
66b89079 203fTanLorentzAngleHolesSSD(0.016), // tan(0.94 degrees)
204fTanLorentzAngleElectronsSSD(0.068), // tan(3.98 degrees)
58b891db 205//
802257af 206fOptReco("All"),
207fESDV0Params(NULL)
44347160 208{
209 //
210 // constructor
211 //
6518a6c5 212 SetName("ITS");
213 SetTitle("ITS");
214
44347160 215 SetLayersParameters();
2755f080 216 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) fLayersToSkip[i]=0;
6518a6c5 217 SetUseTGeoInTracker(3);
908753cb 218 SetStepSizeTGeo(5.);
afd25725 219 SetAllowSharedClusters(kTRUE);
220 SetFindV0s(kTRUE);
6518a6c5 221 SetAddVirtualClustersInDeadZone(kFALSE);
572f41f9 222 SetUseAmplitudeInfo(kTRUE);
e50912db 223 SetClusterErrorsParam(1);
f9119eb9 224 SetClusterMisalError(0.);
4fd4a5d7 225 SetClusterMisalErrorBOn(0.);
7203e11a 226 SetVertexer3DDefaults();
f27a7e81 227
228 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) fAlignFilterUseLayer[i]=kTRUE;
767aaecb 229 fESDV0Params = new AliESDV0Params();
230
231 fESDV0Params->SetMaxDist0(0.1);
232 fESDV0Params->SetMaxDist1(0.1);
233 fESDV0Params->SetMaxDist(1.);
234 fESDV0Params->SetMinPointAngle(0.85);
235 fESDV0Params->SetMinPointAngle2(0.99);
236 fESDV0Params->SetMinR(0.5);
237 fESDV0Params->SetMaxR(220.);
61673d36 238 fESDV0Params->SetMinPABestConst(0.9999);
239 fESDV0Params->SetMaxRBestConst(10.);
767aaecb 240 fESDV0Params->SetCausality0Cut(0.19);
241 fESDV0Params->SetLikelihood01Cut(0.45);
242 fESDV0Params->SetLikelihood1Cut(0.5);
243 fESDV0Params->SetCombinedCut(0.55);
244 fESDV0Params->SetMinClFullTrk(5.0);
245 fESDV0Params->SetMinTgl0(1.05);
61673d36 246 fESDV0Params->SetMinRTgl0(40.0);
247
248 fESDV0Params->SetMinNormDistForbTgl0(3.0);
249 fESDV0Params->SetMinClForb0(4.5);
250 fESDV0Params->SetMinNormDistForb1(3.0);
251 fESDV0Params->SetMinNormDistForb2(2.0);
252 fESDV0Params->SetMinNormDistForb3(1.0);
253 fESDV0Params->SetMinNormDistForb4(4.0);
254 fESDV0Params->SetMinNormDistForb5(5.0);
83052b75 255 fESDV0Params->SetMinNormDistForbProt(2.0);
256 fESDV0Params->SetMaxPidProbPionForb(0.5);
61673d36 257
258 fESDV0Params->SetMinRTPCdensity(40.);
259 fESDV0Params->SetMaxRTPCdensity0(110.);
260 fESDV0Params->SetMaxRTPCdensity10(120.);
261 fESDV0Params->SetMaxRTPCdensity20(130.);
262 fESDV0Params->SetMaxRTPCdensity30(140.);
263
767aaecb 264 fESDV0Params->SetMinTPCdensity(0.6);
265 fESDV0Params->SetMinTgl1(1.1);
266 fESDV0Params->SetMinTgl2(1.0);
267 fESDV0Params->SetMinchi2before0(16.);
268 fESDV0Params->SetMinchi2before1(16.);
269 fESDV0Params->SetMinchi2after0(16.);
270 fESDV0Params->SetMinchi2after1(16.);
271 fESDV0Params->SetAddchi2SharedCl(18.);
272 fESDV0Params->SetAddchi2NegCl0(25.);
273 fESDV0Params->SetAddchi2NegCl1(30.);
274 fESDV0Params->SetSigp0Par0(0.0001);
275 fESDV0Params->SetSigp0Par1(0.001);
276 fESDV0Params->SetSigp0Par2(0.1);
277 fESDV0Params->SetSigpPar0(0.5);
278 fESDV0Params->SetSigpPar1(0.6);
279 fESDV0Params->SetSigpPar2(0.4);
61673d36 280 fESDV0Params->SetMaxDcaLh0(0.5);
767aaecb 281 fESDV0Params->SetStreamLevel(0);
282 fESDV0Params->SetChi2KF(100);
283 fESDV0Params->SetRobustChi2KF(100);
284
44347160 285}
286//_____________________________________________________________________________
287AliITSRecoParam::~AliITSRecoParam()
288{
289 //
290 // destructor
291 //
767aaecb 292 if(fESDV0Params){
293 delete fESDV0Params;
294 fESDV0Params=NULL;
295 }
44347160 296}
297//_____________________________________________________________________________
298AliITSRecoParam *AliITSRecoParam::GetHighFluxParam()
299{
300 //
301 // make default reconstruction parameters for hig flux env.
302 //
303 AliITSRecoParam *param = new AliITSRecoParam();
0e3e04aa 304 param->SetVertexer3DDefaults();
9ce18bbb 305 param->SetSPDVertexerPileupAlgoOff();
1aa655ec 306 // use of bads from OCDB
307 param->SetUseBadZonesFromOCDB(kTRUE);
308 param->SetUseSingleBadChannelsFromOCDB(kFALSE);
333d86cb 309 // use pointing to vertex during prolongation
310 param->SetImproveWithVertex(kTRUE);
1aa655ec 311 // extended eta acceptance
312 param->SetExtendedEtaAcceptance(kFALSE);
313 // allow to skip layer if no cluster and no bad
314 param->SetAllowProlongationWithEmptyRoad(kFALSE);
b21c1af0 315 // set event specie
316 param->SetEventSpecie(AliRecoParam::kHighMult);
9be1d1c7 317
44347160 318 param->fMaxSnp = 0.95;
319
320 param->fNSigmaYLayerForRoadY = 4.;
321 param->fNSigmaRoadY = 7.5;
322 param->fNSigmaZLayerForRoadZ = 4.;
323 param->fNSigmaRoadZ = 7.5;
324
325 param->fNSigma2RoadZC = 60.; //7.75^2
326 param->fNSigma2RoadYC = 60.; //7.75^2
327 param->fNSigma2RoadZNonC = 50.; //7.07^2
328 param->fNSigma2RoadYNonC = 50.; //7.07^2
329
330 param->fMaxChi2PerCluster[0] = 11.; //7
331 param->fMaxChi2PerCluster[1] = 12.; //5
332 param->fMaxChi2PerCluster[2] = 12.; //8
333 param->fMaxChi2PerCluster[3] = 5.; //8
334 param->fMaxChi2PerCluster[4] = 12.; //6.5
335
336 param->fMaxNormChi2NonC[0] = 7.;
337 param->fMaxNormChi2NonC[1] = 8.;
338 param->fMaxNormChi2NonC[2] = 8.;
339 param->fMaxNormChi2NonC[3] = 11.;
340 param->fMaxNormChi2NonC[4] = 14.;
341 param->fMaxNormChi2NonC[5] = 25.;
342
343 param->fMaxNormChi2C[0] = 11.;
344 param->fMaxNormChi2C[1] = 13.;
345 param->fMaxNormChi2C[2] = 15.;
346 param->fMaxNormChi2C[3] = 18.;
347 param->fMaxNormChi2C[4] = 30.;
348 param->fMaxNormChi2C[5] = 35.;
afd25725 349
350 param->fMaxNormChi2NonCForHypothesis = 7.;
44347160 351
352 param->fMaxChi2 = 35.;
353
354 param->fMaxChi2s[0] = 25.; //40
355 param->fMaxChi2s[1] = 25.; //40
356 param->fMaxChi2s[2] = 25.; //40
357 param->fMaxChi2s[3] = 25.; //40
358 param->fMaxChi2s[4] = 40.; //40
359 param->fMaxChi2s[5] = 50.; //40
360
361 param->fMaxRoad = 6.;
362
363 // not used
364 param->fMaxChi2In = 16.;
365
366 param->fMaxChi2sR[0] = 10.;
367 param->fMaxChi2sR[1] = 10.;
368 param->fMaxChi2sR[2] = 10.;
369 param->fMaxChi2sR[3] = 10.;
370 param->fMaxChi2sR[4] = 30.;
371 param->fMaxChi2sR[5] = 40.;
372
794d9013 373
44347160 374 param->fChi2PerCluster = 9.;
375 // not used
794d9013 376 param->fSearchForExtras = kFALSE;
44347160 377
378 param->fXV = 0.;
379 param->fYV = 0.;
380 param->fZV = 0.;
381 param->fSigmaXV = 0.0050;
382 param->fSigmaYV = 0.0050;
383 param->fSigmaZV = 0.0100;
384
385 param->fVertexCut = 25.;
afd25725 386
387 param->fMaxDZforPrimTrk = 0.4;
388 param->fMaxDZToUseConstraint = 3.;
389
390 param->fMaxDforV0dghtrForProlongation = 30.;
6518a6c5 391 param->fMaxDForProlongation = 40.;//10.;
392 param->fMaxDZForProlongation = 60.;//20.;
afd25725 393 param->fMinPtForProlongation = 0.120;
394
395 param->fZWindowDeadZone = 2.0;
396 param->fSigmaXDeadZoneHit2 = 0.004/12.;
397 param->fSigmaZDeadZoneHit2 = 0.001/12.;
398 param->fXPassDeadZoneHits = 0.018;
6de485aa 399 //
400 // mult reco
401 param->fMultCutPxDrSPDin = 0.1;
402 param->fMultCutPxDrSPDout = 0.15;
403 param->fMultCutPxDz = 0.2;
404 param->fMultCutDCArz = 0.5;
405 param->fMultCutMinElectronProbTPC = 0.5;
406 param->fMultCutMinElectronProbESD = 0.1;
407 param->fMultCutMinP = 0.05;
408 param->fMultCutMinRGamma = 2.;
409 param->fMultCutMinRK0 = 1.;
410 param->fMultCutMinPointAngle = 0.98;
411 param->fMultCutMaxDCADauther = 0.5;
412 param->fMultCutMassGamma = 0.03;
413 param->fMultCutMassGammaNSigma = 5.;
414 param->fMultCutMassK0 = 0.03;
415 param->fMultCutMassK0NSigma = 5.;
416 param->fMultCutChi2cGamma = 2.;
417 param->fMultCutChi2cK0 = 2.;
418 param->fMultCutGammaSFromDecay = -10.;
419 param->fMultCutK0SFromDecay = -10.;
420 param->fMultCutMaxDCA = 1.;
421 //
778c8b71 422 // trackleter
423 param->fTrackleterPhiWindow = 0.06;
e73fcfbb 424 param->fTrackleterBuildCl2TrkRefs = kFALSE;
778c8b71 425 param->fScaleDTBySin2T = kTRUE;
a4354152 426 //
04315dad 427 param->fSelectBestMIP03 = kFALSE;//kTRUE;
a4354152 428 param->fFlagFakes = kTRUE;
429 param->fUseImproveKalman= kFALSE;
430 //
44347160 431 return param;
432}
433//_____________________________________________________________________________
434AliITSRecoParam *AliITSRecoParam::GetLowFluxParam()
435{
436 //
437 // make default reconstruction parameters for low flux env.
438 //
c7d6d7b7 439 AliITSRecoParam *param = new AliITSRecoParam();
7203e11a 440 param->SetVertexer3DDefaults();
c7d6d7b7 441
1aa655ec 442 // full use of bads from OCDB
443 param->SetUseBadZonesFromOCDB(kTRUE);
444 param->SetUseSingleBadChannelsFromOCDB(kTRUE);
445 // extended eta acceptance
446 param->SetExtendedEtaAcceptance(kTRUE);
447 // allow to skip layer if no cluster and no bad
448 param->SetAllowProlongationWithEmptyRoad(kTRUE);
b21c1af0 449 // set event specie
450 param->SetEventSpecie(AliRecoParam::kLowMult);
9be1d1c7 451
c7d6d7b7 452 param->fMaxSnp = 0.95;
453
454 param->fNSigmaYLayerForRoadY = 4.;
455 param->fNSigmaRoadY = 7.5;
456 param->fNSigmaZLayerForRoadZ = 4.;
457 param->fNSigmaRoadZ = 7.5;
458
459 param->fNSigma2RoadZC = 60.; //7.75^2
460 param->fNSigma2RoadYC = 60.; //7.75^2
461 param->fNSigma2RoadZNonC = 50.; //7.07^2
462 param->fNSigma2RoadYNonC = 50.; //7.07^2
463
464 param->fMaxChi2PerCluster[0] = 11.; //7
465 param->fMaxChi2PerCluster[1] = 12.; //5
466 param->fMaxChi2PerCluster[2] = 12.; //8
467 param->fMaxChi2PerCluster[3] = 5.; //8
468 param->fMaxChi2PerCluster[4] = 12.; //6.5
469
470 param->fMaxNormChi2NonC[0] = 7.;
471 param->fMaxNormChi2NonC[1] = 8.;
472 param->fMaxNormChi2NonC[2] = 8.;
473 param->fMaxNormChi2NonC[3] = 11.;
474 param->fMaxNormChi2NonC[4] = 14.;
475 param->fMaxNormChi2NonC[5] = 25.;
476
477 param->fMaxNormChi2C[0] = 11.;
478 param->fMaxNormChi2C[1] = 13.;
479 param->fMaxNormChi2C[2] = 15.;
480 param->fMaxNormChi2C[3] = 18.;
481 param->fMaxNormChi2C[4] = 30.;
482 param->fMaxNormChi2C[5] = 35.;
483
484 param->fMaxNormChi2NonCForHypothesis = 7.;
485
486 param->fMaxChi2 = 35.;
487
488 param->fMaxChi2s[0] = 25.; //40
489 param->fMaxChi2s[1] = 25.; //40
490 param->fMaxChi2s[2] = 25.; //40
491 param->fMaxChi2s[3] = 25.; //40
492 param->fMaxChi2s[4] = 40.; //40
493 param->fMaxChi2s[5] = 50.; //40
494
495 param->fMaxRoad = 6.;
496
497 // not used
498 param->fMaxChi2In = 16.;
499
500 param->fMaxChi2sR[0] = 10.;
501 param->fMaxChi2sR[1] = 10.;
502 param->fMaxChi2sR[2] = 10.;
503 param->fMaxChi2sR[3] = 10.;
504 param->fMaxChi2sR[4] = 30.;
505 param->fMaxChi2sR[5] = 40.;
506
507 param->fChi2PerCluster = 9.;
508 // not used
509
510 param->fXV = 0.;
511 param->fYV = 0.;
512 param->fZV = 0.;
513 param->fSigmaXV = 0.0050;
514 param->fSigmaYV = 0.0050;
515 param->fSigmaZV = 0.0100;
516
517 param->fVertexCut = 25.;
518
519 param->fMaxDZforPrimTrk = 0.4;
520 param->fMaxDZToUseConstraint = 3.;
521
522 param->fMaxDforV0dghtrForProlongation = 30.;
523 param->fMaxDForProlongation = 40.;//10.;
524 param->fMaxDZForProlongation = 60.;//20.;
525 param->fMinPtForProlongation = 0.120;
526
527 param->fZWindowDeadZone = 2.0;
528 param->fSigmaXDeadZoneHit2 = 0.004/12.;
529 param->fSigmaZDeadZoneHit2 = 0.001/12.;
530 param->fXPassDeadZoneHits = 0.018;
3733ccd2 531 param->SetNLoopsSA(20);
532 param->fMaxPhiSA = 0.07;
533 param->fMaxLambdaSA = 0.04;
61673d36 534
535 param->GetESDV0Params()->SetMinRTgl0(0.5);
536 param->GetESDV0Params()->SetMaxDist(1.5);
537 param->GetESDV0Params()->SetMaxDcaLh0(1.5);
538 param->GetESDV0Params()->SetMaxRBestConst(80);
539 param->GetESDV0Params()->SetMinPABestConst(0.99);
540 param->GetESDV0Params()->SetMinNormDistForbTgl0(1.);
541 param->GetESDV0Params()->SetMinNormDistForb1(2.);
83052b75 542 param->GetESDV0Params()->SetMinNormDistForbProt(1.);
543 param->GetESDV0Params()->SetMaxPidProbPionForb(0.7);
61673d36 544 param->GetESDV0Params()->SetLikelihood01Cut(0.3);
545 param->GetESDV0Params()->SetLikelihood1Cut(0.35);
546 param->GetESDV0Params()->SetCombinedCut(0.4);
547
e73fcfbb 548 // trackleter
549 param->fTrackleterBuildCl2TrkRefs = kTRUE;
550
6de485aa 551 // mult reco
552 param->fMultCutPxDrSPDin = 0.1;
553 param->fMultCutPxDrSPDout = 0.15;
554 param->fMultCutPxDz = 0.2;
555 param->fMultCutDCArz = 0.5;
556 param->fMultCutMinElectronProbTPC = 0.5;
557 param->fMultCutMinElectronProbESD = 0.1;
558 param->fMultCutMinP = 0.05;
559 param->fMultCutMinRGamma = 2.;
560 param->fMultCutMinRK0 = 1.;
561 param->fMultCutMinPointAngle = 0.98;
562 param->fMultCutMaxDCADauther = 0.5;
563 param->fMultCutMassGamma = 0.03;
564 param->fMultCutMassGammaNSigma = 5.;
565 param->fMultCutMassK0 = 0.03;
566 param->fMultCutMassK0NSigma = 5.;
567 param->fMultCutChi2cGamma = 2.;
568 param->fMultCutChi2cK0 = 2.;
569 param->fMultCutGammaSFromDecay = -10.;
570 param->fMultCutK0SFromDecay = -10.;
571 param->fMultCutMaxDCA = 1.;
572 //
61673d36 573
c7d6d7b7 574 return param;
44347160 575}
576//_____________________________________________________________________________
577AliITSRecoParam *AliITSRecoParam::GetCosmicTestParam()
578{
579 //
580 // make default reconstruction parameters for cosmics
581 //
e340bb86 582 AliITSRecoParam *param = new AliITSRecoParam();
583
f9119eb9 584 // vertexer for cosmics
585 param->SetVertexer(2);
586
4fd4a5d7 587 param->SetClusterErrorsParam(2);
588 param->SetFindV0s(kFALSE);
589 param->SetAddVirtualClustersInDeadZone(kFALSE);
590 param->SetUseAmplitudeInfo(kFALSE);
591
b21c1af0 592 // set event specie
593 param->SetEventSpecie(AliRecoParam::kCosmic);
594
4fd4a5d7 595 // full use of bads from OCDB
596 param->SetUseBadZonesFromOCDB(kTRUE);
597 param->SetUseSingleBadChannelsFromOCDB(kTRUE);
598
9f9cae94 599 // find independently ITS SA tracks
600 param->SetSAUseAllClusters();
601 param->SetOuterStartLayerSA(AliITSgeomTGeo::GetNLayers()-2);
f9119eb9 602
4fd4a5d7 603 //****** COSMICS 2009 (same as COSMICS 2008) *********************
604
605 // to maximize efficiency
606 param->SetAllowProlongationWithEmptyRoad();
8f1ccf80 607 param->SetMinNPointsSA(2);
4fd4a5d7 608
2755f080 609 // larger seach windows for SA (in case of large misalignments)
489c98fd 610 param->SetNLoopsSA(32);
4fd4a5d7 611 param->SetFactorSAWindowSizes(20);
612
613 // additional error due to misal (B off)
614 param->SetClusterMisalErrorY(1.0,1.0,1.0,1.0,1.0,1.0); // [cm]
615 param->SetClusterMisalErrorZ(1.0,1.0,1.0,1.0,1.0,1.0); // [cm]
616 // additional error due to misal (B on)
617 param->SetClusterMisalErrorYBOn(0.0,0.0,0.1,0.1,0.1,0.1); // [cm]
618 param->SetClusterMisalErrorZBOn(0.1,0.1,0.1,0.1,0.1,0.1); // [cm]
619
620
621 // SDD configuration
622 param->fUseSDDCorrectionMaps = kFALSE;
623 param->fUseSDDClusterSizeSelection=kTRUE;
624 param->fMinClusterChargeSDD=30.;
625
e340bb86 626
f27a7e81 627 // alignment data filter
628 param->SetAlignFilterCosmics(kTRUE);
629 param->SetAlignFilterCosmicMergeTracks(kTRUE);
630 param->SetAlignFilterMinITSPoints(1);
631 param->SetAlignFilterMinITSPointsMerged(3);
632 param->SetAlignFilterOnlyITSSATracks(kTRUE);
633 param->SetAlignFilterOnlyITSTPCTracks(kFALSE);
634 param->SetAlignFilterSkipExtra(kFALSE);
635 param->SetAlignFilterMaxMatchingAngle(0.085/*5deg*/);
636 param->SetAlignFilterMinPt(0.2);
637 param->SetAlignFilterMaxPt(1.e10);
638 param->SetAlignFilterFillQANtuples(kTRUE);
639
4fd4a5d7 640 //******************************************************************
641
e340bb86 642 param->fMaxSnp = 0.95;
643
644 param->fNSigmaYLayerForRoadY = 4.;
645 param->fNSigmaRoadY = 7.5;
646 param->fNSigmaZLayerForRoadZ = 4.;
647 param->fNSigmaRoadZ = 7.5;
648
649 param->fNSigma2RoadZC = 60.; //7.75^2
650 param->fNSigma2RoadYC = 60.; //7.75^2
651 param->fNSigma2RoadZNonC = 50.; //7.07^2
652 param->fNSigma2RoadYNonC = 50.; //7.07^2
653
654 param->fMaxChi2PerCluster[0] = 11.; //7
655 param->fMaxChi2PerCluster[1] = 12.; //5
656 param->fMaxChi2PerCluster[2] = 12.; //8
657 param->fMaxChi2PerCluster[3] = 5.; //8
658 param->fMaxChi2PerCluster[4] = 12.; //6.5
659
660 param->fMaxNormChi2NonC[0] = 7.;
661 param->fMaxNormChi2NonC[1] = 8.;
662 param->fMaxNormChi2NonC[2] = 8.;
663 param->fMaxNormChi2NonC[3] = 11.;
664 param->fMaxNormChi2NonC[4] = 14.;
665 param->fMaxNormChi2NonC[5] = 25.;
666
667 param->fMaxNormChi2C[0] = 11.;
668 param->fMaxNormChi2C[1] = 13.;
669 param->fMaxNormChi2C[2] = 15.;
670 param->fMaxNormChi2C[3] = 18.;
671 param->fMaxNormChi2C[4] = 30.;
672 param->fMaxNormChi2C[5] = 35.;
673
674 param->fMaxNormChi2NonCForHypothesis = 7.;
675
676 param->fMaxChi2 = 35.;
677
678 param->fMaxChi2s[0] = 25.; //40
679 param->fMaxChi2s[1] = 25.; //40
680 param->fMaxChi2s[2] = 25.; //40
681 param->fMaxChi2s[3] = 25.; //40
682 param->fMaxChi2s[4] = 40.; //40
683 param->fMaxChi2s[5] = 50.; //40
684
685 param->fMaxRoad = 6.;
686
687 // not used
688 param->fMaxChi2In = 16.;
689
690 param->fMaxChi2sR[0] = 10.;
691 param->fMaxChi2sR[1] = 10.;
692 param->fMaxChi2sR[2] = 10.;
693 param->fMaxChi2sR[3] = 10.;
694 param->fMaxChi2sR[4] = 30.;
695 param->fMaxChi2sR[5] = 40.;
696
697 param->fChi2PerCluster = 9.;
698 // not used
699
700 param->fXV = 0.;
701 param->fYV = 0.;
702 param->fZV = 0.;
703 param->fSigmaXV = 0.0050;
704 param->fSigmaYV = 0.0050;
705 param->fSigmaZV = 0.0100;
706
707 param->fVertexCut = 25.;
708
709 param->fMaxDZforPrimTrk = 0.4;
710 param->fMaxDZToUseConstraint = 3.;
711
712 param->fMaxDforV0dghtrForProlongation = 30.;
713 param->fMaxDForProlongation = 10.;
714 param->fMaxDZForProlongation = 20.;
715 param->fMinPtForProlongation = 0.120;
716
717 param->fZWindowDeadZone = 2.0;
718 param->fSigmaXDeadZoneHit2 = 0.004/12.;
719 param->fSigmaZDeadZoneHit2 = 0.001/12.;
720 param->fXPassDeadZoneHits = 0.018;
721
e73fcfbb 722 // trackleter
723 param->fTrackleterBuildCl2TrkRefs = kFALSE;
724
e340bb86 725 return param;
44347160 726}
727//_____________________________________________________________________________
ae00569a 728AliITSRecoParam *AliITSRecoParam::GetPlaneEffParam(Int_t i)
729{
730 //
58e8dc31 731 // make special reconstruction parameters for Plane Efficiency study on layer i (0,5)
732 //
733 // if i=-1, then the evaluation for both pixel layers is tried with the tracklet method
ae00569a 734 //
58e8dc31 735 if (i<-1 || i>=AliITSgeomTGeo::kNLayers) {
736 printf("AliITSRecoParam::GetPlaneEffParam: index of ITS Plane nor in the range [0,5] neither =-1\n");
0ed58a47 737 printf("returning null pointer");
738 return NULL;
739 }
58e8dc31 740 if(i>=0) { // Method using tracks (remove given plane from tracking)
741 AliITSRecoParam *param;
061c42a0 742 param = GetLowFluxParam();
743 param->SetClusterErrorsParam(2);
744 // find independently ITS SA tracks
745 param->SetSAUseAllClusters();
746 param->SetOuterStartLayerSA(2);
747 param->SetAllowProlongationWithEmptyRoad(kTRUE);
748 // larger seach windows for SA (in case of large misalignments)
749 param->SetFactorSAWindowSizes(2);
750
751 // Misalignment syst errors decided at ITS meeting 25.03.2010
752 // additional error due to misal (B off)
753 param->SetClusterMisalErrorY(0.0010,0.0010,0.0300,0.0300,0.0020,0.0020); // [cm]
754 param->SetClusterMisalErrorZ(0.0100,0.0100,0.0100,0.0100,0.0500,0.0500); // [cm]
755 // additional error due to misal (B on)
756 param->SetClusterMisalErrorYBOn(0.0010,0.0030,0.0500,0.0500,0.0020,0.0020); // [cm]
757 param->SetClusterMisalErrorZBOn(0.0100,0.0100,0.0100,0.0100,0.0500,0.0500); // [cm]
758 //----
759
760 // SDD configuration
761 param->SetUseSDDCorrectionMaps(kTRUE); // changed 30.04.2010
762 param->SetUseSDDClusterSizeSelection(kTRUE);
763 param->SetMinClusterChargeSDD(30.);
764 param->SetUseUnfoldingInClusterFinderSDD(kFALSE);
765 //
58e8dc31 766 param->SetComputePlaneEff();
767 param->SetLayerToSkip(i);
768 param->SetIPlanePlaneEff(i);
061c42a0 769 param->fNSigXFromBoundaryPlaneEff= 1.;
770 param->fNSigZFromBoundaryPlaneEff= 1.;
58e8dc31 771 // optimized setting for SPD0 (i==0)
061c42a0 772 if (i==0) {
58e8dc31 773 param->fMinPtPlaneEff = 0.200; // high pt particles
061c42a0 774 param->fMaxMissingClustersPlaneEff = 2; // at most 2 layers out of 5 without cluster
775 param->fMaxMissingClustersOutPlaneEff = 2; // at most 2 layers out of 5 external ones without cluster
58e8dc31 776 param->fRequireClusterInOuterLayerPlaneEff = kTRUE; // cluster on SPD1 must be
777 //param->fOnlyConstraintPlaneEff = kTRUE;
778 }
061c42a0 779 if (i==1 ) {
780 param->fMinPtPlaneEff = 0.200; // high pt particles
781 param->fMaxMissingClustersPlaneEff = 2; // at most 2 layer out of 5 without cluster
782 param->fMaxMissingClustersOutPlaneEff = 2; // at most 2 layer out of 4 external ones without cluster
783 //param->fRequireClusterInOuterLayerPlaneEff = kTRUE; // cluster on SSD1 must be
784 }
785 if (i==2) {
58e8dc31 786 param->fMinPtPlaneEff = 0.200; // high pt particles
061c42a0 787 param->fMaxMissingClustersPlaneEff = 2; // at most 2 layer out of 5 without cluster
788 param->fMaxMissingClustersOutPlaneEff = 2; // at most 2 layer out of 3 external ones without cluster
789 //param->fRequireClusterInOuterLayerPlaneEff = kTRUE;
58e8dc31 790 //param->fOnlyConstraintPlaneEff = kTRUE;
791 }
061c42a0 792 if (i==3) {
793 param->fMinPtPlaneEff = 0.200; // high pt particles
794 param->fMaxMissingClustersPlaneEff = 2; // at most 2 layer out of 5 without cluster
795 param->fMaxMissingClustersOutPlaneEff = 1; // at most 1 layer out of 2 external ones without cluster
796 }
58e8dc31 797 if (i==4) {
798 param->fMinPtPlaneEff = 0.200; // high pt particles
061c42a0 799 param->fMaxMissingClustersPlaneEff = 2; // at most 2 layer out of 5 without cluster
800 param->fMaxMissingClustersOutPlaneEff = 1; // at most 1 layer out of 1 external ones without cluster
801 // param->fRequireClusterInOuterLayerPlaneEff = kTRUE;
58e8dc31 802 //param->fOnlyConstraintPlaneEff = kTRUE;
803 }
804 if (i==5) {
805 param->fMinPtPlaneEff = 0.200; // high pt particles
061c42a0 806 param->fMaxMissingClustersPlaneEff = 2; // at most 2 layer out of 5 without cluster
58e8dc31 807 }
808 //
809 return param;
0ed58a47 810 }
58e8dc31 811 else if (i==-1) { // Method using tracklets
812 AliITSRecoParam *param;
813 param = GetLowFluxParam();
814 param->SetIPlanePlaneEff(i);
815 param->SetComputePlaneEff(kTRUE,kFALSE);
816 param->SetUseTrackletsPlaneEff(kTRUE);
7284b2b2 817 param->SetTrackleterPhiWindowL2(0.07);
818 param->SetTrackleterZetaWindowL2(0.4);
58e8dc31 819 param->SetTrackleterPhiWindowL1(0.10);
820 param->SetTrackleterZetaWindowL1(0.6);
821 param->SetUpdateOncePerEventPlaneEff(kTRUE);
822 param->SetMinContVtxPlaneEff(3);
823 return param;
0ed58a47 824 }
5bd7ec3a 825 else {
826 AliErrorGeneral("AliITSRecoParam",Form("Unrecognised value of i %d\n",i));
827 return 0;
828 }
ae00569a 829}
061c42a0 830
ae00569a 831//_____________________________________________________________________________
44347160 832void AliITSRecoParam::SetLayersParameters()
833{
834 //
835 // number of layers and layers spatial resolutions
836 //
837
838 // spatial resolutions of the detectors
839 // y: 12 12 38 38 20 20 micron
840 fSigmaY2[0]=1.44e-6;
841 fSigmaY2[1]=1.44e-6;
842 fSigmaY2[2]=1.444e-5;
843 fSigmaY2[3]=1.444e-5;
844 fSigmaY2[4]=4.0e-6;
845 fSigmaY2[5]=4.0e-6;
846 // z: 120 120 28 28 830 830 micron
847 fSigmaZ2[0]=1.44e-4;
848 fSigmaZ2[1]=1.44e-4;
849 fSigmaZ2[2]=7.84e-6;
850 fSigmaZ2[3]=7.84e-6;
851 fSigmaZ2[4]=6.889e-3;
852 fSigmaZ2[5]=6.889e-3;
853
854 return;
855}
ed446fa3 856//_____________________________________________________________________________
857void AliITSRecoParam::PrintParameters() const
858{
859 //
860 // print parameters
861 //
862
863 printf("============================= AliITSRecoParam::PrintParameters ");
f9119eb9 864 printf("============================= \n\n");
ed446fa3 865 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) {
866 if(!fLayersToSkip[i]) {
867 printf("ITS Traking: using layer %d\n",i);
868 } else {
869 printf("ITS Traking: skipping layer %d\n",i);
870 }
871 }
872 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) {
873 if(fUseAmplitudeInfo[i]) {
874 printf("ITS Traking: use amplitude info for layer %d\n",i);
875 } else {
876 printf("ITS Traking: don't use amplitude info for layer %d\n",i);
877 }
878 }
879 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++)
f9119eb9 880 printf("Layer %d:\n sigmaY2 %f, sigmaZ2 %f\n sigmaMisalY %f, sigmaMisalZ %f\n max norm chi2 for non constrained tracks %f\n max norm chi2 for constrained tracks %f\n max predicted chi2 (cluster & track prol.) %f\n",i,fSigmaY2[i],fSigmaZ2[i],fClusterMisalErrorY[i],fClusterMisalErrorZ[i],fMaxNormChi2NonC[i],fMaxNormChi2C[i],fMaxChi2s[i]);
ed446fa3 881
882
883 Dump();
884
885 return;
0a56760a 886}
a8fd6065 887
04315dad 888
aa2e678a 889//_____________________________________________________________________________
890Bool_t AliITSRecoParam::SetOptReco(TString r){
891 // Set option for local reconstruction.
892 // The string must contain at least one of the following
893 // substrings: "All", "SPD", "SDD", "SSD"
894 Bool_t isFine = kFALSE;
895 if(r.Contains("All") || r.Contains("SPD") || r.Contains("SDD")
896 || r.Contains("SSD")){
897 isFine = kTRUE;
898 fOptReco=r;
899 }
900 return isFine;
901}
902