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(),
69 fNSigmaYLayerForRoadY(0),
71 fNSigmaZLayerForRoadZ(0),
78 fMaxNormChi2NonCForHypothesis(0),
91 fMaxDZToUseConstraint(0),
92 fMaxDforV0dghtrForProlongation(0),
93 fMaxDForProlongation(0),
94 fMaxDZForProlongation(0),
95 fMinPtForProlongation(0),
96 fAddVirtualClustersInDeadZone(kFALSE),
98 fSigmaXDeadZoneHit2(0),
99 fSigmaZDeadZoneHit2(0),
100 fXPassDeadZoneHits(0),
101 fUseTGeoInTracker(3),
102 fAllowSharedClusters(kTRUE),
103 fClusterErrorsParam(1),
104 fClusterMisalError(0.),
105 fComputePlaneEff(kFALSE),
106 fHistoPlaneEff(kFALSE),
108 fReadPlaneEffFromOCDB(kFALSE),
110 fMaxMissingClustersPlaneEff(0),
111 fRequireClusterInOuterLayerPlaneEff(kFALSE),
112 fRequireClusterInInnerLayerPlaneEff(kFALSE),
113 fOnlyConstraintPlaneEff(kFALSE),
114 fExtendedEtaAcceptance(kFALSE),
115 fUseBadZonesFromOCDB(kFALSE),
116 fUseSingleBadChannelsFromOCDB(kFALSE),
117 fMinFractionOfBadInRoad(0),
118 fAllowProlongationWithEmptyRoad(kFALSE),
119 fFactorSAWindowSizes(1.),
125 fSAOnePointTracks(kFALSE),
126 fSAUseAllClusters(kFALSE),
128 fUseUnfoldingInClusterFinderSPD(kFALSE),
129 fUseUnfoldingInClusterFinderSDD(kTRUE),
130 fUseUnfoldingInClusterFinderSSD(kTRUE),
131 fUseChargeMatchingInClusterFinderSSD(kTRUE)
139 SetLayersParameters();
140 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) fLayersToSkip[i]=0;
141 SetUseTGeoInTracker(3);
142 SetAllowSharedClusters(kTRUE);
144 SetAddVirtualClustersInDeadZone(kFALSE);
145 SetUseAmplitudeInfo(kTRUE);
146 SetClusterErrorsParam(1);
147 SetClusterMisalError(0.);
149 //_____________________________________________________________________________
150 AliITSRecoParam::~AliITSRecoParam()
156 //_____________________________________________________________________________
157 AliITSRecoParam *AliITSRecoParam::GetHighFluxParam()
160 // make default reconstruction parameters for hig flux env.
162 AliITSRecoParam *param = new AliITSRecoParam();
164 param->fMaxSnp = 0.95;
166 param->fNSigmaYLayerForRoadY = 4.;
167 param->fNSigmaRoadY = 7.5;
168 param->fNSigmaZLayerForRoadZ = 4.;
169 param->fNSigmaRoadZ = 7.5;
171 param->fNSigma2RoadZC = 60.; //7.75^2
172 param->fNSigma2RoadYC = 60.; //7.75^2
173 param->fNSigma2RoadZNonC = 50.; //7.07^2
174 param->fNSigma2RoadYNonC = 50.; //7.07^2
176 param->fMaxChi2PerCluster[0] = 11.; //7
177 param->fMaxChi2PerCluster[1] = 12.; //5
178 param->fMaxChi2PerCluster[2] = 12.; //8
179 param->fMaxChi2PerCluster[3] = 5.; //8
180 param->fMaxChi2PerCluster[4] = 12.; //6.5
182 param->fMaxNormChi2NonC[0] = 7.;
183 param->fMaxNormChi2NonC[1] = 8.;
184 param->fMaxNormChi2NonC[2] = 8.;
185 param->fMaxNormChi2NonC[3] = 11.;
186 param->fMaxNormChi2NonC[4] = 14.;
187 param->fMaxNormChi2NonC[5] = 25.;
189 param->fMaxNormChi2C[0] = 11.;
190 param->fMaxNormChi2C[1] = 13.;
191 param->fMaxNormChi2C[2] = 15.;
192 param->fMaxNormChi2C[3] = 18.;
193 param->fMaxNormChi2C[4] = 30.;
194 param->fMaxNormChi2C[5] = 35.;
196 param->fMaxNormChi2NonCForHypothesis = 7.;
198 param->fMaxChi2 = 35.;
200 param->fMaxChi2s[0] = 25.; //40
201 param->fMaxChi2s[1] = 25.; //40
202 param->fMaxChi2s[2] = 25.; //40
203 param->fMaxChi2s[3] = 25.; //40
204 param->fMaxChi2s[4] = 40.; //40
205 param->fMaxChi2s[5] = 50.; //40
207 param->fMaxRoad = 6.;
210 param->fMaxChi2In = 16.;
212 param->fMaxChi2sR[0] = 10.;
213 param->fMaxChi2sR[1] = 10.;
214 param->fMaxChi2sR[2] = 10.;
215 param->fMaxChi2sR[3] = 10.;
216 param->fMaxChi2sR[4] = 30.;
217 param->fMaxChi2sR[5] = 40.;
219 param->fChi2PerCluster = 9.;
225 param->fSigmaXV = 0.0050;
226 param->fSigmaYV = 0.0050;
227 param->fSigmaZV = 0.0100;
229 param->fVertexCut = 25.;
231 param->fMaxDZforPrimTrk = 0.4;
232 param->fMaxDZToUseConstraint = 3.;
234 param->fMaxDforV0dghtrForProlongation = 30.;
235 param->fMaxDForProlongation = 40.;//10.;
236 param->fMaxDZForProlongation = 60.;//20.;
237 param->fMinPtForProlongation = 0.120;
239 param->fZWindowDeadZone = 2.0;
240 param->fSigmaXDeadZoneHit2 = 0.004/12.;
241 param->fSigmaZDeadZoneHit2 = 0.001/12.;
242 param->fXPassDeadZoneHits = 0.018;
246 //_____________________________________________________________________________
247 AliITSRecoParam *AliITSRecoParam::GetLowFluxParam()
250 // make default reconstruction parameters for low flux env.
252 AliITSRecoParam *param = new AliITSRecoParam();
254 param->fMaxSnp = 0.95;
256 param->fNSigmaYLayerForRoadY = 4.;
257 param->fNSigmaRoadY = 7.5;
258 param->fNSigmaZLayerForRoadZ = 4.;
259 param->fNSigmaRoadZ = 7.5;
261 param->fNSigma2RoadZC = 60.; //7.75^2
262 param->fNSigma2RoadYC = 60.; //7.75^2
263 param->fNSigma2RoadZNonC = 50.; //7.07^2
264 param->fNSigma2RoadYNonC = 50.; //7.07^2
266 param->fMaxChi2PerCluster[0] = 11.; //7
267 param->fMaxChi2PerCluster[1] = 12.; //5
268 param->fMaxChi2PerCluster[2] = 12.; //8
269 param->fMaxChi2PerCluster[3] = 5.; //8
270 param->fMaxChi2PerCluster[4] = 12.; //6.5
272 param->fMaxNormChi2NonC[0] = 7.;
273 param->fMaxNormChi2NonC[1] = 8.;
274 param->fMaxNormChi2NonC[2] = 8.;
275 param->fMaxNormChi2NonC[3] = 11.;
276 param->fMaxNormChi2NonC[4] = 14.;
277 param->fMaxNormChi2NonC[5] = 25.;
279 param->fMaxNormChi2C[0] = 11.;
280 param->fMaxNormChi2C[1] = 13.;
281 param->fMaxNormChi2C[2] = 15.;
282 param->fMaxNormChi2C[3] = 18.;
283 param->fMaxNormChi2C[4] = 30.;
284 param->fMaxNormChi2C[5] = 35.;
286 param->fMaxNormChi2NonCForHypothesis = 7.;
288 param->fMaxChi2 = 35.;
290 param->fMaxChi2s[0] = 25.; //40
291 param->fMaxChi2s[1] = 25.; //40
292 param->fMaxChi2s[2] = 25.; //40
293 param->fMaxChi2s[3] = 25.; //40
294 param->fMaxChi2s[4] = 40.; //40
295 param->fMaxChi2s[5] = 50.; //40
297 param->fMaxRoad = 6.;
300 param->fMaxChi2In = 16.;
302 param->fMaxChi2sR[0] = 10.;
303 param->fMaxChi2sR[1] = 10.;
304 param->fMaxChi2sR[2] = 10.;
305 param->fMaxChi2sR[3] = 10.;
306 param->fMaxChi2sR[4] = 30.;
307 param->fMaxChi2sR[5] = 40.;
309 param->fChi2PerCluster = 9.;
315 param->fSigmaXV = 0.0050;
316 param->fSigmaYV = 0.0050;
317 param->fSigmaZV = 0.0100;
319 param->fVertexCut = 25.;
321 param->fMaxDZforPrimTrk = 0.4;
322 param->fMaxDZToUseConstraint = 3.;
324 param->fMaxDforV0dghtrForProlongation = 30.;
325 param->fMaxDForProlongation = 40.;//10.;
326 param->fMaxDZForProlongation = 60.;//20.;
327 param->fMinPtForProlongation = 0.120;
329 param->fZWindowDeadZone = 2.0;
330 param->fSigmaXDeadZoneHit2 = 0.004/12.;
331 param->fSigmaZDeadZoneHit2 = 0.001/12.;
332 param->fXPassDeadZoneHits = 0.018;
333 param->SetNLoopsSA(10);
337 //_____________________________________________________________________________
338 AliITSRecoParam *AliITSRecoParam::GetCosmicTestParam()
341 // make default reconstruction parameters for cosmics
343 AliITSRecoParam *param = new AliITSRecoParam();
345 // vertexer for cosmics
346 param->SetVertexer(2);
349 // larger seach windows for SA (in case of large misalignments)
350 param->SetFactorSAWindowSizes(3.);
352 param->fMaxSnp = 0.95;
354 param->fNSigmaYLayerForRoadY = 4.;
355 param->fNSigmaRoadY = 7.5;
356 param->fNSigmaZLayerForRoadZ = 4.;
357 param->fNSigmaRoadZ = 7.5;
359 param->fNSigma2RoadZC = 60.; //7.75^2
360 param->fNSigma2RoadYC = 60.; //7.75^2
361 param->fNSigma2RoadZNonC = 50.; //7.07^2
362 param->fNSigma2RoadYNonC = 50.; //7.07^2
364 param->fMaxChi2PerCluster[0] = 11.; //7
365 param->fMaxChi2PerCluster[1] = 12.; //5
366 param->fMaxChi2PerCluster[2] = 12.; //8
367 param->fMaxChi2PerCluster[3] = 5.; //8
368 param->fMaxChi2PerCluster[4] = 12.; //6.5
370 param->fMaxNormChi2NonC[0] = 7.;
371 param->fMaxNormChi2NonC[1] = 8.;
372 param->fMaxNormChi2NonC[2] = 8.;
373 param->fMaxNormChi2NonC[3] = 11.;
374 param->fMaxNormChi2NonC[4] = 14.;
375 param->fMaxNormChi2NonC[5] = 25.;
377 param->fMaxNormChi2C[0] = 11.;
378 param->fMaxNormChi2C[1] = 13.;
379 param->fMaxNormChi2C[2] = 15.;
380 param->fMaxNormChi2C[3] = 18.;
381 param->fMaxNormChi2C[4] = 30.;
382 param->fMaxNormChi2C[5] = 35.;
384 param->fMaxNormChi2NonCForHypothesis = 7.;
386 param->fMaxChi2 = 35.;
388 param->fMaxChi2s[0] = 25.; //40
389 param->fMaxChi2s[1] = 25.; //40
390 param->fMaxChi2s[2] = 25.; //40
391 param->fMaxChi2s[3] = 25.; //40
392 param->fMaxChi2s[4] = 40.; //40
393 param->fMaxChi2s[5] = 50.; //40
395 param->fMaxRoad = 6.;
398 param->fMaxChi2In = 16.;
400 param->fMaxChi2sR[0] = 10.;
401 param->fMaxChi2sR[1] = 10.;
402 param->fMaxChi2sR[2] = 10.;
403 param->fMaxChi2sR[3] = 10.;
404 param->fMaxChi2sR[4] = 30.;
405 param->fMaxChi2sR[5] = 40.;
407 param->fChi2PerCluster = 9.;
413 param->fSigmaXV = 0.0050;
414 param->fSigmaYV = 0.0050;
415 param->fSigmaZV = 0.0100;
417 param->fVertexCut = 25.;
419 param->fMaxDZforPrimTrk = 0.4;
420 param->fMaxDZToUseConstraint = 3.;
422 param->fMaxDforV0dghtrForProlongation = 30.;
423 param->fMaxDForProlongation = 10.;
424 param->fMaxDZForProlongation = 20.;
425 param->fMinPtForProlongation = 0.120;
427 param->fZWindowDeadZone = 2.0;
428 param->fSigmaXDeadZoneHit2 = 0.004/12.;
429 param->fSigmaZDeadZoneHit2 = 0.001/12.;
430 param->fXPassDeadZoneHits = 0.018;
435 //_____________________________________________________________________________
436 AliITSRecoParam *AliITSRecoParam::GetPlaneEffParam(Int_t i)
439 // make special reconstruction parameters for Plane Efficiency study on layer i
441 if (i<0 || i>=AliITSgeomTGeo::kNLayers) {
442 printf("AliITSRecoParam::GetPlaneEffParam: index of ITS Plane not in the range [0,5]\n");
443 printf("returning null pointer");
446 AliITSRecoParam *param;
447 param = GetHighFluxParam();
448 param->SetComputePlaneEff();
449 param->SetLayerToSkip(i);
450 param->SetIPlanePlaneEff(i);
451 // optimized setting for SPD0 (i==0)
453 param->fMinPtPlaneEff = 0.200; // high pt particles
454 param->fMaxMissingClustersPlaneEff = 1; // at most 1 layer out of 5 without cluster
455 param->fRequireClusterInOuterLayerPlaneEff = kTRUE; // cluster on SPD1 must be
456 //param->fOnlyConstraintPlaneEff = kTRUE;
459 param->fMinPtPlaneEff = 0.200; // high pt particles
460 param->fMaxMissingClustersPlaneEff = 1; // at most 1 layer out of 5 without cluster
461 param->fRequireClusterInOuterLayerPlaneEff = kTRUE;
462 //param->fOnlyConstraintPlaneEff = kTRUE;
465 param->fMinPtPlaneEff = 0.200; // high pt particles
466 param->fMaxMissingClustersPlaneEff = 0; // at most 1 layer out of 5 without cluster
467 param->fRequireClusterInOuterLayerPlaneEff = kTRUE;
468 //param->fOnlyConstraintPlaneEff = kTRUE;
471 param->fMinPtPlaneEff = 0.200; // high pt particles
476 //_____________________________________________________________________________
477 void AliITSRecoParam::SetLayersParameters()
480 // number of layers and layers spatial resolutions
483 // spatial resolutions of the detectors
484 // y: 12 12 38 38 20 20 micron
487 fSigmaY2[2]=1.444e-5;
488 fSigmaY2[3]=1.444e-5;
491 // z: 120 120 28 28 830 830 micron
496 fSigmaZ2[4]=6.889e-3;
497 fSigmaZ2[5]=6.889e-3;
501 //_____________________________________________________________________________
502 void AliITSRecoParam::PrintParameters() const
508 printf("============================= AliITSRecoParam::PrintParameters ");
509 printf("============================= \n\n");
510 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) {
511 if(!fLayersToSkip[i]) {
512 printf("ITS Traking: using layer %d\n",i);
514 printf("ITS Traking: skipping layer %d\n",i);
517 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++) {
518 if(fUseAmplitudeInfo[i]) {
519 printf("ITS Traking: use amplitude info for layer %d\n",i);
521 printf("ITS Traking: don't use amplitude info for layer %d\n",i);
524 for(Int_t i=0; i<AliITSgeomTGeo::kNLayers; i++)
525 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]);