1 /**************************************************************************
2 * Copyright(c) 2007-2009, 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 **************************************************************************/
16 #include "AliITSRecoParam.h"
20 ///////////////////////////////////////////////////////////////////////////////
22 // Class with ITS reconstruction parameters //
23 // Origin: andrea.dainese@lnl.infn.it //
25 ///////////////////////////////////////////////////////////////////////////////
29 ClassImp(AliITSRecoParam)
31 const Int_t AliITSRecoParam::fgkLayersNotToSkip[AliITSgeomTGeo::kNLayers]={0,0,0,0,0,0};
32 const Int_t AliITSRecoParam::fgkLastLayerToTrackTo=0;
33 const Int_t AliITSRecoParam::fgkMaxDetectorPerLayer=1000;
34 const Double_t AliITSRecoParam::fgkriw=80.0;
35 const Double_t AliITSRecoParam::fgkdiw=0.0053;
36 const Double_t AliITSRecoParam::fgkX0iw=30.0;
37 const Double_t AliITSRecoParam::fgkrcd=61.0;
38 const Double_t AliITSRecoParam::fgkdcd=0.0053;
39 const Double_t AliITSRecoParam::fgkX0cd=30.0;
40 const Double_t AliITSRecoParam::fgkyr=12.8;
41 const Double_t AliITSRecoParam::fgkdr=0.03;
42 const Double_t AliITSRecoParam::fgkzm=0.2;
43 const Double_t AliITSRecoParam::fgkdm=0.40;
44 const Double_t AliITSRecoParam::fgkrs=50.0;
45 const Double_t AliITSRecoParam::fgkds=0.001;
46 const Double_t AliITSRecoParam::fgkrInsideITSscreen=49.0;
47 const Double_t AliITSRecoParam::fgkrInsideSPD1=3.7;
48 const Double_t AliITSRecoParam::fgkrPipe=3.;
49 const Double_t AliITSRecoParam::fgkrInsidePipe=2.7;
50 const Double_t AliITSRecoParam::fgkrOutsidePipe=3.3;
51 const Double_t AliITSRecoParam::fgkdPipe=0.0028;
52 const Double_t AliITSRecoParam::fgkrInsideShield[2]={7.5,25.0};
53 const Double_t AliITSRecoParam::fgkrOutsideShield[2]={10.5,30.0};
54 const Double_t AliITSRecoParam::fgkdshield[2]={0.0097,0.0034};
55 const Double_t AliITSRecoParam::fgkX0shield[2]={38.6,42.0};
56 const Double_t AliITSRecoParam::fgkX0Air=21.82;
57 const Double_t AliITSRecoParam::fgkX0Be=65.19;
58 const Double_t AliITSRecoParam::fgkBoundaryWidth=0.2;
59 const Double_t AliITSRecoParam::fgkDeltaXNeighbDets=0.5;
60 const Double_t AliITSRecoParam::fgkSPDdetzlength=6.960; // 7.072-2*0.056
61 const Double_t AliITSRecoParam::fgkSPDdetxlength=1.298; // 1.410-2*0.056
63 //_____________________________________________________________________________
64 AliITSRecoParam::AliITSRecoParam() : AliDetectorRecoParam(),
72 fVtxr3DZCutNarrow(0.),
73 fVtxr3DRCutNarrow(0.),
74 fVtxr3DPhiCutLoose(0.),
75 fVtxr3DPhiCutTight(0.),
78 fNSigmaYLayerForRoadY(0),
80 fNSigmaZLayerForRoadZ(0),
87 fMaxNormChi2NonCForHypothesis(0),
100 fMaxDZToUseConstraint(0),
101 fMaxDforV0dghtrForProlongation(0),
102 fMaxDForProlongation(0),
103 fMaxDZForProlongation(0),
104 fMinPtForProlongation(0),
105 fAddVirtualClustersInDeadZone(kFALSE),
107 fSigmaXDeadZoneHit2(0),
108 fSigmaZDeadZoneHit2(0),
109 fXPassDeadZoneHits(0),
110 fUseTGeoInTracker(3),
111 fAllowSharedClusters(kTRUE),
112 fClusterErrorsParam(1),
113 fComputePlaneEff(kFALSE),
114 fHistoPlaneEff(kFALSE),
116 fReadPlaneEffFromOCDB(kFALSE),
118 fMaxMissingClustersPlaneEff(0),
119 fRequireClusterInOuterLayerPlaneEff(kFALSE),
120 fRequireClusterInInnerLayerPlaneEff(kFALSE),
121 fOnlyConstraintPlaneEff(kFALSE),
122 fExtendedEtaAcceptance(kFALSE),
123 fUseBadZonesFromOCDB(kFALSE),
124 fUseSingleBadChannelsFromOCDB(kFALSE),
125 fMinFractionOfBadInRoad(0),
126 fAllowProlongationWithEmptyRoad(kFALSE),
127 fOuterStartLayerSA(0),
128 fFactorSAWindowSizes(1.),
134 fSAOnePointTracks(kFALSE),
135 fSAUseAllClusters(kFALSE),
137 fUseUnfoldingInClusterFinderSPD(kFALSE),
138 fUseUnfoldingInClusterFinderSDD(kTRUE),
139 fUseUnfoldingInClusterFinderSSD(kTRUE),
140 fUseChargeMatchingInClusterFinderSSD(kTRUE)
148 SetLayersParameters();
149 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) fLayersToSkip[i]=0;
150 SetUseTGeoInTracker(3);
151 SetAllowSharedClusters(kTRUE);
153 SetAddVirtualClustersInDeadZone(kFALSE);
154 SetUseAmplitudeInfo(kTRUE);
155 SetClusterErrorsParam(1);
156 SetClusterMisalError(0.);
157 SetVertexer3DDefaults();
159 //_____________________________________________________________________________
160 AliITSRecoParam::~AliITSRecoParam()
166 //_____________________________________________________________________________
167 AliITSRecoParam *AliITSRecoParam::GetHighFluxParam()
170 // make default reconstruction parameters for hig flux env.
172 AliITSRecoParam *param = new AliITSRecoParam();
173 param->SetVertexer3DDefaults();
175 param->fMaxSnp = 0.95;
177 param->fNSigmaYLayerForRoadY = 4.;
178 param->fNSigmaRoadY = 7.5;
179 param->fNSigmaZLayerForRoadZ = 4.;
180 param->fNSigmaRoadZ = 7.5;
182 param->fNSigma2RoadZC = 60.; //7.75^2
183 param->fNSigma2RoadYC = 60.; //7.75^2
184 param->fNSigma2RoadZNonC = 50.; //7.07^2
185 param->fNSigma2RoadYNonC = 50.; //7.07^2
187 param->fMaxChi2PerCluster[0] = 11.; //7
188 param->fMaxChi2PerCluster[1] = 12.; //5
189 param->fMaxChi2PerCluster[2] = 12.; //8
190 param->fMaxChi2PerCluster[3] = 5.; //8
191 param->fMaxChi2PerCluster[4] = 12.; //6.5
193 param->fMaxNormChi2NonC[0] = 7.;
194 param->fMaxNormChi2NonC[1] = 8.;
195 param->fMaxNormChi2NonC[2] = 8.;
196 param->fMaxNormChi2NonC[3] = 11.;
197 param->fMaxNormChi2NonC[4] = 14.;
198 param->fMaxNormChi2NonC[5] = 25.;
200 param->fMaxNormChi2C[0] = 11.;
201 param->fMaxNormChi2C[1] = 13.;
202 param->fMaxNormChi2C[2] = 15.;
203 param->fMaxNormChi2C[3] = 18.;
204 param->fMaxNormChi2C[4] = 30.;
205 param->fMaxNormChi2C[5] = 35.;
207 param->fMaxNormChi2NonCForHypothesis = 7.;
209 param->fMaxChi2 = 35.;
211 param->fMaxChi2s[0] = 25.; //40
212 param->fMaxChi2s[1] = 25.; //40
213 param->fMaxChi2s[2] = 25.; //40
214 param->fMaxChi2s[3] = 25.; //40
215 param->fMaxChi2s[4] = 40.; //40
216 param->fMaxChi2s[5] = 50.; //40
218 param->fMaxRoad = 6.;
221 param->fMaxChi2In = 16.;
223 param->fMaxChi2sR[0] = 10.;
224 param->fMaxChi2sR[1] = 10.;
225 param->fMaxChi2sR[2] = 10.;
226 param->fMaxChi2sR[3] = 10.;
227 param->fMaxChi2sR[4] = 30.;
228 param->fMaxChi2sR[5] = 40.;
230 param->fChi2PerCluster = 9.;
236 param->fSigmaXV = 0.0050;
237 param->fSigmaYV = 0.0050;
238 param->fSigmaZV = 0.0100;
240 param->fVertexCut = 25.;
242 param->fMaxDZforPrimTrk = 0.4;
243 param->fMaxDZToUseConstraint = 3.;
245 param->fMaxDforV0dghtrForProlongation = 30.;
246 param->fMaxDForProlongation = 40.;//10.;
247 param->fMaxDZForProlongation = 60.;//20.;
248 param->fMinPtForProlongation = 0.120;
250 param->fZWindowDeadZone = 2.0;
251 param->fSigmaXDeadZoneHit2 = 0.004/12.;
252 param->fSigmaZDeadZoneHit2 = 0.001/12.;
253 param->fXPassDeadZoneHits = 0.018;
257 //_____________________________________________________________________________
258 AliITSRecoParam *AliITSRecoParam::GetLowFluxParam()
261 // make default reconstruction parameters for low flux env.
263 AliITSRecoParam *param = new AliITSRecoParam();
264 param->SetVertexer3DDefaults();
266 param->fMaxSnp = 0.95;
268 param->fNSigmaYLayerForRoadY = 4.;
269 param->fNSigmaRoadY = 7.5;
270 param->fNSigmaZLayerForRoadZ = 4.;
271 param->fNSigmaRoadZ = 7.5;
273 param->fNSigma2RoadZC = 60.; //7.75^2
274 param->fNSigma2RoadYC = 60.; //7.75^2
275 param->fNSigma2RoadZNonC = 50.; //7.07^2
276 param->fNSigma2RoadYNonC = 50.; //7.07^2
278 param->fMaxChi2PerCluster[0] = 11.; //7
279 param->fMaxChi2PerCluster[1] = 12.; //5
280 param->fMaxChi2PerCluster[2] = 12.; //8
281 param->fMaxChi2PerCluster[3] = 5.; //8
282 param->fMaxChi2PerCluster[4] = 12.; //6.5
284 param->fMaxNormChi2NonC[0] = 7.;
285 param->fMaxNormChi2NonC[1] = 8.;
286 param->fMaxNormChi2NonC[2] = 8.;
287 param->fMaxNormChi2NonC[3] = 11.;
288 param->fMaxNormChi2NonC[4] = 14.;
289 param->fMaxNormChi2NonC[5] = 25.;
291 param->fMaxNormChi2C[0] = 11.;
292 param->fMaxNormChi2C[1] = 13.;
293 param->fMaxNormChi2C[2] = 15.;
294 param->fMaxNormChi2C[3] = 18.;
295 param->fMaxNormChi2C[4] = 30.;
296 param->fMaxNormChi2C[5] = 35.;
298 param->fMaxNormChi2NonCForHypothesis = 7.;
300 param->fMaxChi2 = 35.;
302 param->fMaxChi2s[0] = 25.; //40
303 param->fMaxChi2s[1] = 25.; //40
304 param->fMaxChi2s[2] = 25.; //40
305 param->fMaxChi2s[3] = 25.; //40
306 param->fMaxChi2s[4] = 40.; //40
307 param->fMaxChi2s[5] = 50.; //40
309 param->fMaxRoad = 6.;
312 param->fMaxChi2In = 16.;
314 param->fMaxChi2sR[0] = 10.;
315 param->fMaxChi2sR[1] = 10.;
316 param->fMaxChi2sR[2] = 10.;
317 param->fMaxChi2sR[3] = 10.;
318 param->fMaxChi2sR[4] = 30.;
319 param->fMaxChi2sR[5] = 40.;
321 param->fChi2PerCluster = 9.;
327 param->fSigmaXV = 0.0050;
328 param->fSigmaYV = 0.0050;
329 param->fSigmaZV = 0.0100;
331 param->fVertexCut = 25.;
333 param->fMaxDZforPrimTrk = 0.4;
334 param->fMaxDZToUseConstraint = 3.;
336 param->fMaxDforV0dghtrForProlongation = 30.;
337 param->fMaxDForProlongation = 40.;//10.;
338 param->fMaxDZForProlongation = 60.;//20.;
339 param->fMinPtForProlongation = 0.120;
341 param->fZWindowDeadZone = 2.0;
342 param->fSigmaXDeadZoneHit2 = 0.004/12.;
343 param->fSigmaZDeadZoneHit2 = 0.001/12.;
344 param->fXPassDeadZoneHits = 0.018;
345 param->SetNLoopsSA(10);
349 //_____________________________________________________________________________
350 AliITSRecoParam *AliITSRecoParam::GetCosmicTestParam()
353 // make default reconstruction parameters for cosmics
355 AliITSRecoParam *param = new AliITSRecoParam();
357 // vertexer for cosmics
358 param->SetVertexer(2);
360 // find independently ITS SA tracks
361 param->SetSAUseAllClusters();
362 param->SetOuterStartLayerSA(AliITSgeomTGeo::GetNLayers()-2);
364 // larger seach windows for SA (in case of large misalignments)
365 param->SetFactorSAWindowSizes(3.);
367 param->fMaxSnp = 0.95;
369 param->fNSigmaYLayerForRoadY = 4.;
370 param->fNSigmaRoadY = 7.5;
371 param->fNSigmaZLayerForRoadZ = 4.;
372 param->fNSigmaRoadZ = 7.5;
374 param->fNSigma2RoadZC = 60.; //7.75^2
375 param->fNSigma2RoadYC = 60.; //7.75^2
376 param->fNSigma2RoadZNonC = 50.; //7.07^2
377 param->fNSigma2RoadYNonC = 50.; //7.07^2
379 param->fMaxChi2PerCluster[0] = 11.; //7
380 param->fMaxChi2PerCluster[1] = 12.; //5
381 param->fMaxChi2PerCluster[2] = 12.; //8
382 param->fMaxChi2PerCluster[3] = 5.; //8
383 param->fMaxChi2PerCluster[4] = 12.; //6.5
385 param->fMaxNormChi2NonC[0] = 7.;
386 param->fMaxNormChi2NonC[1] = 8.;
387 param->fMaxNormChi2NonC[2] = 8.;
388 param->fMaxNormChi2NonC[3] = 11.;
389 param->fMaxNormChi2NonC[4] = 14.;
390 param->fMaxNormChi2NonC[5] = 25.;
392 param->fMaxNormChi2C[0] = 11.;
393 param->fMaxNormChi2C[1] = 13.;
394 param->fMaxNormChi2C[2] = 15.;
395 param->fMaxNormChi2C[3] = 18.;
396 param->fMaxNormChi2C[4] = 30.;
397 param->fMaxNormChi2C[5] = 35.;
399 param->fMaxNormChi2NonCForHypothesis = 7.;
401 param->fMaxChi2 = 35.;
403 param->fMaxChi2s[0] = 25.; //40
404 param->fMaxChi2s[1] = 25.; //40
405 param->fMaxChi2s[2] = 25.; //40
406 param->fMaxChi2s[3] = 25.; //40
407 param->fMaxChi2s[4] = 40.; //40
408 param->fMaxChi2s[5] = 50.; //40
410 param->fMaxRoad = 6.;
413 param->fMaxChi2In = 16.;
415 param->fMaxChi2sR[0] = 10.;
416 param->fMaxChi2sR[1] = 10.;
417 param->fMaxChi2sR[2] = 10.;
418 param->fMaxChi2sR[3] = 10.;
419 param->fMaxChi2sR[4] = 30.;
420 param->fMaxChi2sR[5] = 40.;
422 param->fChi2PerCluster = 9.;
428 param->fSigmaXV = 0.0050;
429 param->fSigmaYV = 0.0050;
430 param->fSigmaZV = 0.0100;
432 param->fVertexCut = 25.;
434 param->fMaxDZforPrimTrk = 0.4;
435 param->fMaxDZToUseConstraint = 3.;
437 param->fMaxDforV0dghtrForProlongation = 30.;
438 param->fMaxDForProlongation = 10.;
439 param->fMaxDZForProlongation = 20.;
440 param->fMinPtForProlongation = 0.120;
442 param->fZWindowDeadZone = 2.0;
443 param->fSigmaXDeadZoneHit2 = 0.004/12.;
444 param->fSigmaZDeadZoneHit2 = 0.001/12.;
445 param->fXPassDeadZoneHits = 0.018;
450 //_____________________________________________________________________________
451 AliITSRecoParam *AliITSRecoParam::GetPlaneEffParam(Int_t i)
454 // make special reconstruction parameters for Plane Efficiency study on layer i
456 if (i<0 || i>=AliITSgeomTGeo::kNLayers) {
457 printf("AliITSRecoParam::GetPlaneEffParam: index of ITS Plane not in the range [0,5]\n");
458 printf("returning null pointer");
461 AliITSRecoParam *param;
462 param = GetHighFluxParam();
463 param->SetComputePlaneEff();
464 param->SetLayerToSkip(i);
465 param->SetIPlanePlaneEff(i);
466 // optimized setting for SPD0 (i==0)
468 param->fMinPtPlaneEff = 0.200; // high pt particles
469 param->fMaxMissingClustersPlaneEff = 1; // at most 1 layer out of 5 without cluster
470 param->fRequireClusterInOuterLayerPlaneEff = kTRUE; // cluster on SPD1 must be
471 //param->fOnlyConstraintPlaneEff = kTRUE;
474 param->fMinPtPlaneEff = 0.200; // high pt particles
475 param->fMaxMissingClustersPlaneEff = 1; // at most 1 layer out of 5 without cluster
476 param->fRequireClusterInOuterLayerPlaneEff = kTRUE;
477 //param->fOnlyConstraintPlaneEff = kTRUE;
480 param->fMinPtPlaneEff = 0.200; // high pt particles
481 param->fMaxMissingClustersPlaneEff = 0; // at most 1 layer out of 5 without cluster
482 param->fRequireClusterInOuterLayerPlaneEff = kTRUE;
483 //param->fOnlyConstraintPlaneEff = kTRUE;
486 param->fMinPtPlaneEff = 0.200; // high pt particles
491 //_____________________________________________________________________________
492 void AliITSRecoParam::SetLayersParameters()
495 // number of layers and layers spatial resolutions
498 // spatial resolutions of the detectors
499 // y: 12 12 38 38 20 20 micron
502 fSigmaY2[2]=1.444e-5;
503 fSigmaY2[3]=1.444e-5;
506 // z: 120 120 28 28 830 830 micron
511 fSigmaZ2[4]=6.889e-3;
512 fSigmaZ2[5]=6.889e-3;
516 //_____________________________________________________________________________
517 void AliITSRecoParam::PrintParameters() const
523 printf("============================= AliITSRecoParam::PrintParameters ");
524 printf("============================= \n\n");
525 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) {
526 if(!fLayersToSkip[i]) {
527 printf("ITS Traking: using layer %d\n",i);
529 printf("ITS Traking: skipping layer %d\n",i);
532 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) {
533 if(fUseAmplitudeInfo[i]) {
534 printf("ITS Traking: use amplitude info for layer %d\n",i);
536 printf("ITS Traking: don't use amplitude info for layer %d\n",i);
539 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++)
540 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]);