]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSRecoParam.h
Modifications to RecoParam for Cosmic run 2009 (A. Dainese)
[u/mrichter/AliRoot.git] / ITS / AliITSRecoParam.h
1 #ifndef ALIITSRECOPARAM_H
2 #define ALIITSRECOPARAM_H
3 /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 ///////////////////////////////////////////////////////////////////////////////
9 //                                                                           //
10 // Class with ITS reconstruction parameters                                  //
11 // Origin: andrea.dainese@lnl.infn.it                                        //
12 //                                                                           //
13 ///////////////////////////////////////////////////////////////////////////////
14
15
16 #include "AliDetectorRecoParam.h"
17 #include "AliITSgeomTGeo.h"
18
19 class AliITSRecoParam : public AliDetectorRecoParam
20 {
21  public: 
22   AliITSRecoParam();
23   virtual ~AliITSRecoParam();
24
25   static AliITSRecoParam *GetLowFluxParam();// make reco parameters for low flux env.
26   static AliITSRecoParam *GetHighFluxParam();// make reco parameters for high flux env. 
27   static AliITSRecoParam *GetCosmicTestParam();// special setting for cosmic  
28   static AliITSRecoParam *GetPlaneEffParam(Int_t i);// special setting for Plane Efficiency studies
29
30   static Int_t GetLayersNotToSkip(Int_t i) { return fgkLayersNotToSkip[i]; }
31   static Int_t GetLastLayerToTrackTo() { return fgkLastLayerToTrackTo; }
32   static Int_t GetMaxClusterPerLayer() { return fgkMaxClusterPerLayer; }
33   static Int_t GetMaxClusterPerLayer5() { return fgkMaxClusterPerLayer5; }
34   static Int_t GetMaxClusterPerLayer10() { return fgkMaxClusterPerLayer10; }
35   static Int_t GetMaxClusterPerLayer20() { return fgkMaxClusterPerLayer20; }
36   static Int_t GetMaxDetectorPerLayer() { return fgkMaxDetectorPerLayer; }
37   static Double_t Getriw() { return fgkriw; }
38   static Double_t Getdiw() { return fgkdiw; }
39   static Double_t GetX0iw() { return fgkX0iw; }
40   static Double_t Getrcd() { return fgkrcd; }
41   static Double_t Getdcd() { return fgkdcd; }
42   static Double_t GetX0cd() { return fgkX0cd; }
43   static Double_t Getyr() { return fgkyr; }
44   static Double_t Getdr() { return fgkdr; }
45   static Double_t Getzm() { return fgkzm; }
46   static Double_t Getdm() { return fgkdm; }
47   static Double_t Getrs() { return fgkrs; }
48   static Double_t Getds() { return fgkds; }
49   static Double_t GetrInsideITSscreen() { return fgkrInsideITSscreen; }
50   static Double_t GetrInsideSPD1() { return fgkrInsideSPD1; }
51   static Double_t GetrPipe() { return fgkrPipe; }
52   static Double_t GetrInsidePipe() { return fgkrInsidePipe; }
53   static Double_t GetrOutsidePipe() { return fgkrOutsidePipe; }
54   static Double_t GetdPipe() { return fgkdPipe; }
55   static Double_t GetrInsideShield(Int_t i) { return fgkrInsideShield[i]; }
56   static Double_t GetrOutsideShield(Int_t i) { return fgkrOutsideShield[i]; }
57   static Double_t Getdshield(Int_t i) { return fgkdshield[i]; }
58   static Double_t GetX0shield(Int_t i) { return fgkX0shield[i]; }
59   static Double_t GetX0Air() { return fgkX0Air; }
60   static Double_t GetX0Be() { return fgkX0Be; }
61   static Double_t GetBoundaryWidth() { return fgkBoundaryWidth; }
62   static Double_t GetDeltaXNeighbDets() { return fgkDeltaXNeighbDets; }
63   static Double_t GetSPDdetzlength() { return fgkSPDdetzlength; }
64   static Double_t GetSPDdetxlength() { return fgkSPDdetxlength; }
65
66   void PrintParameters() const; 
67
68   void     SetTracker(Int_t tracker=0) { fTracker=tracker; }
69   void     SetTrackerDefault() { SetTracker(0); } // = MI and SA
70   void     SetTrackerMI() { SetTracker(1); }
71   void     SetTrackerV2() { SetTracker(2); }
72   Int_t    GetTracker() const { return fTracker; }
73   void     SetTrackerSAOnly(Bool_t flag=kTRUE) { fITSonly=flag; }
74   Bool_t   GetTrackerSAOnly() const { return fITSonly; }
75   void     SetVertexer(Int_t vertexer=0) { fVertexer=vertexer; }
76   void     SetVertexer3D() { SetVertexer(0); }
77   void     SetVertexerZ() { SetVertexer(1); }
78   void     SetVertexerCosmics() { SetVertexer(2); }
79   void     SetVertexerIons() { SetVertexer(3); }
80   void     SetVertexerSmearMC(Float_t smearx=0.005, Float_t smeary=0.005, Float_t smearz=0.01) { 
81     fVertexerFastSmearX=smearx;  fVertexerFastSmearY=smeary; fVertexerFastSmearZ=smearz; SetVertexer(4); 
82   }
83   void     SetVertexerFixedOnTDI() {SetVertexer(5);} // for injection tests
84   void     SetVertexerFixedOnTED() {SetVertexer(6);} // for injection tests
85   Int_t    GetVertexer() const { return fVertexer; }
86   Float_t  GetVertexerFastSmearX() const {return fVertexerFastSmearX;}
87   Float_t  GetVertexerFastSmearY() const {return fVertexerFastSmearY;}
88   Float_t  GetVertexerFastSmearZ() const {return fVertexerFastSmearZ;}
89
90   void     SetClusterFinder(Int_t cf=0) { fClusterFinder=cf; }
91   void     SetClusterFinderV2() { SetClusterFinder(0); }
92   void     SetClusterFinderOrig() { SetClusterFinder(1); }
93   Int_t    GetClusterFinder() const { return fClusterFinder; }
94   void     SetPID(Int_t pid=0) {fPID=pid;}
95   void     SetDefaultPID() {SetPID(0);}
96   void     SetLandauFitPID() {SetPID(1);}
97   Int_t    GetPID() const {return fPID;}
98
99   void     SetVertexer3DFiducialRegions(Float_t dzwid=40.0, Float_t drwid=2.5, Float_t dznar=0.5, Float_t drnar=0.5){
100     SetVertexer3DWideFiducialRegion(dzwid,drwid);
101     SetVertexer3DNarrowFiducialRegion(dznar,drnar);
102   }
103   void     SetVertexer3DWideFiducialRegion(Float_t dz=40.0, Float_t dr=2.5){
104     fVtxr3DZCutWide=dz; fVtxr3DRCutWide=dr;
105   }
106   void     SetVertexer3DNarrowFiducialRegion(Float_t dz=0.5, Float_t dr=0.5){
107     fVtxr3DZCutNarrow=dz; fVtxr3DRCutNarrow=dr;
108   }
109   void     SetVertexer3DDeltaPhiCuts(Float_t dphiloose=0.5, Float_t dphitight=0.025){
110     fVtxr3DPhiCutLoose=dphiloose;
111     fVtxr3DPhiCutTight=dphitight;
112   }
113   void     SetVertexer3DDCACut(Float_t dca=0.1){
114     fVtxr3DDCACut=dca;
115   }
116   void SetVertexer3DDefaults(){
117     SetVertexer3DFiducialRegions();
118     SetVertexer3DDeltaPhiCuts();
119     SetVertexer3DDCACut();    
120   }
121   void SetSPDVertexerPileupAlgoZ(){fVtxr3DPileupAlgo=0;}
122   void SetSPDVertexerPileupAlgo3DTwoSteps(){fVtxr3DPileupAlgo=1;}
123   void SetSPDVertexerPileupAlgo3DOneShot(){fVtxr3DPileupAlgo=2;}
124   
125
126   Float_t  GetVertexer3DWideFiducialRegionZ() const {return fVtxr3DZCutWide;}
127   Float_t  GetVertexer3DWideFiducialRegionR() const {return fVtxr3DRCutWide;}
128   Float_t  GetVertexer3DNarrowFiducialRegionZ() const {return fVtxr3DZCutNarrow;}
129   Float_t  GetVertexer3DNarrowFiducialRegionR() const {return fVtxr3DRCutNarrow;}
130   Float_t  GetVertexer3DLooseDeltaPhiCut() const {return fVtxr3DPhiCutLoose;}
131   Float_t  GetVertexer3DTightDeltaPhiCut() const {return fVtxr3DPhiCutTight;}
132   Float_t  GetVertexer3DDCACut() const {return fVtxr3DDCACut;}
133   Int_t    GetSPDVertexerPileupAlgo() const {return fVtxr3DPileupAlgo;}
134
135   Double_t GetSigmaY2(Int_t i) const { return fSigmaY2[i]; }
136   Double_t GetSigmaZ2(Int_t i) const { return fSigmaZ2[i]; }
137
138   Double_t GetMaxSnp() const { return fMaxSnp; }
139
140   Double_t GetNSigmaYLayerForRoadY() const { return fNSigmaYLayerForRoadY; }
141   Double_t GetNSigmaRoadY() const { return fNSigmaRoadY; }
142   Double_t GetNSigmaZLayerForRoadZ() const { return fNSigmaZLayerForRoadZ; }
143   Double_t GetNSigmaRoadZ() const { return fNSigmaRoadZ; }
144   Double_t GetNSigma2RoadYC() const { return fNSigma2RoadYC; }
145   Double_t GetNSigma2RoadZC() const { return fNSigma2RoadZC; }
146   Double_t GetNSigma2RoadYNonC() const { return fNSigma2RoadYNonC; }
147   Double_t GetNSigma2RoadZNonC() const { return fNSigma2RoadZNonC; }
148   Double_t GetRoadMisal() const { return fRoadMisal; }
149   void     SetRoadMisal(Double_t road=0) { fRoadMisal=road; }
150
151   Double_t GetChi2PerCluster() const { return fChi2PerCluster; }
152   Double_t GetMaxChi2PerCluster(Int_t i) const { return fMaxChi2PerCluster[i]; }
153   Double_t GetMaxNormChi2NonC(Int_t i) const { return fMaxNormChi2NonC[i]; }
154   Double_t GetMaxNormChi2C(Int_t i) const { return fMaxNormChi2C[i]; }
155   Double_t GetMaxNormChi2NonCForHypothesis() const { return fMaxNormChi2NonCForHypothesis; }
156   Double_t GetMaxChi2() const { return fMaxChi2; }
157   Double_t GetMaxChi2s(Int_t i) const { return fMaxChi2s[i]; }
158   Double_t GetMaxChi2sR(Int_t i) const { return fMaxChi2sR[i]; }
159   Double_t GetMaxChi2In() const { return fMaxChi2In; }
160   Double_t GetMaxRoad() const { return fMaxRoad; }
161   Double_t GetMaxNormChi2ForGolden(Int_t i) const { return 3.+0.5*i; }
162
163   Double_t GetXVdef() const { return fXV; }
164   Double_t GetYVdef() const { return fYV; }
165   Double_t GetZVdef() const { return fZV; }
166   Double_t GetSigmaXVdef() const { return fSigmaXV; }
167   Double_t GetSigmaYVdef() const { return fSigmaYV; }
168   Double_t GetSigmaZVdef() const { return fSigmaZV; }
169
170   Double_t GetVertexCut() const { return fVertexCut; }
171   Double_t GetMaxDZforPrimTrk() const { return fMaxDZforPrimTrk; }
172   Double_t GetMaxDZToUseConstraint() const { return fMaxDZToUseConstraint; }
173   Double_t GetMaxDforV0dghtrForProlongation() const { return fMaxDforV0dghtrForProlongation; }
174   Double_t GetMaxDForProlongation() const { return fMaxDForProlongation; }
175   Double_t GetMaxDZForProlongation() const { return fMaxDZForProlongation; }
176   Double_t GetMinPtForProlongation() const { return fMinPtForProlongation; }
177
178   void   SetAddVirtualClustersInDeadZone(Bool_t add=kTRUE) { fAddVirtualClustersInDeadZone=add; return; }  
179   Bool_t GetAddVirtualClustersInDeadZone() const { return fAddVirtualClustersInDeadZone; }  
180   Double_t GetZWindowDeadZone() const { return fZWindowDeadZone; }
181   Double_t GetSigmaXDeadZoneHit2() const { return fSigmaXDeadZoneHit2; }
182   Double_t GetSigmaZDeadZoneHit2() const { return fSigmaZDeadZoneHit2; }
183   Double_t GetXPassDeadZoneHits() const { return fXPassDeadZoneHits; }
184
185
186
187   void   SetUseTGeoInTracker(Int_t use=1) { fUseTGeoInTracker=use; return; }
188   Int_t  GetUseTGeoInTracker() const { return fUseTGeoInTracker; }
189   void   SetStepSizeTGeo(Double_t size=0.1) { fStepSizeTGeo=size; return; }
190   Double_t GetStepSizeTGeo() const { return fStepSizeTGeo; }
191   
192   void   SetAllowSharedClusters(Bool_t allow=kTRUE) { fAllowSharedClusters=allow; return; }
193   Bool_t GetAllowSharedClusters() const { return fAllowSharedClusters; }
194
195   void   SetClusterErrorsParam(Int_t param=1) { fClusterErrorsParam=param; return; }
196   Int_t  GetClusterErrorsParam() const { return fClusterErrorsParam; }
197   void   SetClusterMisalErrorY(Float_t e0,Float_t e1,Float_t e2,Float_t e3,Float_t e4,Float_t e5) { fClusterMisalErrorY[0]=e0; fClusterMisalErrorY[1]=e1; fClusterMisalErrorY[2]=e2; fClusterMisalErrorY[3]=e3; fClusterMisalErrorY[4]=e4; fClusterMisalErrorY[5]=e5; return; }
198   void   SetClusterMisalErrorZ(Float_t e0,Float_t e1,Float_t e2,Float_t e3,Float_t e4,Float_t e5) { fClusterMisalErrorZ[0]=e0; fClusterMisalErrorZ[1]=e1; fClusterMisalErrorZ[2]=e2; fClusterMisalErrorZ[3]=e3; fClusterMisalErrorZ[4]=e4; fClusterMisalErrorZ[5]=e5; return; }
199   void   SetClusterMisalError(Float_t err=0.) { SetClusterMisalErrorY(err,err,err,err,err,err); SetClusterMisalErrorZ(err,err,err,err,err,err); }
200   void   SetClusterMisalErrorYBOn(Float_t e0,Float_t e1,Float_t e2,Float_t e3,Float_t e4,Float_t e5) { fClusterMisalErrorYBOn[0]=e0; fClusterMisalErrorYBOn[1]=e1; fClusterMisalErrorYBOn[2]=e2; fClusterMisalErrorYBOn[3]=e3; fClusterMisalErrorYBOn[4]=e4; fClusterMisalErrorYBOn[5]=e5; return; }
201   void   SetClusterMisalErrorZBOn(Float_t e0,Float_t e1,Float_t e2,Float_t e3,Float_t e4,Float_t e5) { fClusterMisalErrorZBOn[0]=e0; fClusterMisalErrorZBOn[1]=e1; fClusterMisalErrorZBOn[2]=e2; fClusterMisalErrorZBOn[3]=e3; fClusterMisalErrorZBOn[4]=e4; fClusterMisalErrorZBOn[5]=e5; return; }
202   void   SetClusterMisalErrorBOn(Float_t err=0.) { SetClusterMisalErrorYBOn(err,err,err,err,err,err); SetClusterMisalErrorZBOn(err,err,err,err,err,err); }
203   Float_t GetClusterMisalErrorY(Int_t i,Double_t b=0.) const { return (TMath::Abs(b)<0.0001 ? fClusterMisalErrorY[i] : fClusterMisalErrorYBOn[i]); }
204   Float_t GetClusterMisalErrorZ(Int_t i,Double_t b=0.) const { return (TMath::Abs(b)<0.0001 ? fClusterMisalErrorZ[i] : fClusterMisalErrorZBOn[i]); }
205
206   void   SetUseAmplitudeInfo(Bool_t use=kTRUE) { for(Int_t i=0;i<AliITSgeomTGeo::kNLayers;i++) fUseAmplitudeInfo[i]=use; return; }
207   void   SetUseAmplitudeInfo(Int_t ilay,Bool_t use) { fUseAmplitudeInfo[ilay]=use; return; }
208   Bool_t GetUseAmplitudeInfo(Int_t ilay) const { return fUseAmplitudeInfo[ilay]; }
209 // Option for Plane Efficiency evaluation
210   void   SetComputePlaneEff(Bool_t eff=kTRUE, Bool_t his=kTRUE)
211       { fComputePlaneEff=eff; fHistoPlaneEff=his; return; }
212   Bool_t GetComputePlaneEff() const { return fComputePlaneEff; }
213   Bool_t GetHistoPlaneEff() const { return fHistoPlaneEff; }
214   void    SetUseTrackletsPlaneEff(Bool_t use=kTRUE) {fUseTrackletsPlaneEff=use; return;}
215   Bool_t  GetUseTrackletsPlaneEff() const {return fUseTrackletsPlaneEff;}
216   void    SetOptTrackletsPlaneEff(Bool_t mc=kFALSE,Bool_t bkg=kFALSE)
217            {fMCTrackletsPlaneEff=mc;fBkgTrackletsPlaneEff=bkg; return;}
218   Bool_t  GetMCTrackletsPlaneEff() const {return fMCTrackletsPlaneEff;}
219   Bool_t  GetBkgTrackletsPlaneEff() const {return fBkgTrackletsPlaneEff;}
220   void    SetTrackleterPhiWindowL1(Float_t w=0.10) {fTrackleterPhiWindowL1=w; return;}
221   Float_t GetTrackleterPhiWindowL1() const {return fTrackleterPhiWindowL1;}
222   void    SetTrackleterZetaWindowL1(Float_t w=0.6) {fTrackleterZetaWindowL1=w; return;}
223   Float_t GetTrackleterZetaWindowL1() const {return fTrackleterZetaWindowL1;}
224   void    SetUpdateOncePerEventPlaneEff(Bool_t use=kTRUE) {fUpdateOncePerEventPlaneEff=use; return;}
225   Bool_t  GetUpdateOncePerEventPlaneEff() const {return fUpdateOncePerEventPlaneEff;}
226   void    SetMinContVtxPlaneEff(Int_t n=3) {fMinContVtxPlaneEff=n; return;}
227   Int_t   GetMinContVtxPlaneEff() const {return fMinContVtxPlaneEff;}
228   void   SetIPlanePlaneEff(Int_t i=0) {if(i<-1 || i>=AliITSgeomTGeo::kNLayers) return; fIPlanePlaneEff=i; }
229   Int_t  GetIPlanePlaneEff() const {return fIPlanePlaneEff;}
230   void   SetReadPlaneEffFrom0CDB(Bool_t read=kTRUE) { fReadPlaneEffFromOCDB=read; }
231   Bool_t GetReadPlaneEffFromOCDB() const { return fReadPlaneEffFromOCDB; }
232   void   SetMinPtPlaneEff(Bool_t ptmin=0.) { fMinPtPlaneEff=ptmin; }
233   Double_t GetMinPtPlaneEff() const { return fMinPtPlaneEff; }
234   void   SetMaxMissingClustersPlaneEff(Int_t max=0) { fMaxMissingClustersPlaneEff=max;}
235   Int_t  GetMaxMissingClustersPlaneEff() const {return fMaxMissingClustersPlaneEff;}
236   void   SetRequireClusterInOuterLayerPlaneEff(Bool_t out=kTRUE) { fRequireClusterInOuterLayerPlaneEff=out;}
237   Bool_t GetRequireClusterInOuterLayerPlaneEff() const {return fRequireClusterInOuterLayerPlaneEff;}
238   void   SetRequireClusterInInnerLayerPlaneEff(Bool_t in=kTRUE) { fRequireClusterInInnerLayerPlaneEff=in;}
239   Bool_t GetRequireClusterInInnerLayerPlaneEff() const {return fRequireClusterInInnerLayerPlaneEff;}
240   void   SetOnlyConstraintPlaneEff(Bool_t con=kFALSE) { fOnlyConstraintPlaneEff=con; }
241   Bool_t GetOnlyConstraintPlaneEff() const { return fOnlyConstraintPlaneEff; }
242   //
243   void   SetExtendedEtaAcceptance(Bool_t ext=kTRUE) { fExtendedEtaAcceptance=ext; return; }
244   Bool_t GetExtendedEtaAcceptance() const { return fExtendedEtaAcceptance; }
245   void   SetAllowProlongationWithEmptyRoad(Bool_t allow=kTRUE) { fAllowProlongationWithEmptyRoad=allow; return; }  
246   Bool_t GetAllowProlongationWithEmptyRoad() const { return fAllowProlongationWithEmptyRoad; }
247
248   void   SetUseBadZonesFromOCDB(Bool_t use=kTRUE) { fUseBadZonesFromOCDB=use; return; }
249   Bool_t GetUseBadZonesFromOCDB() const { return fUseBadZonesFromOCDB; }
250
251   void   SetUseSingleBadChannelsFromOCDB(Bool_t use=kTRUE) { fUseSingleBadChannelsFromOCDB=use; return; }
252   Bool_t GetUseSingleBadChannelsFromOCDB() const { return fUseSingleBadChannelsFromOCDB; }
253
254   void   SetMinFractionOfBadInRoad(Float_t frac=0) { fMinFractionOfBadInRoad=frac; return; }
255   Float_t GetMinFractionOfBadInRoad() const { return fMinFractionOfBadInRoad; }
256
257   void   SetOutwardFindingSA() {fInwardFlagSA=kFALSE;}
258   void   SetInwardFindingSA() {fInwardFlagSA=kTRUE;}
259   Bool_t GetInwardFindingSA() const {return fInwardFlagSA;}
260   void   SetOuterStartLayerSA(Int_t lay) { fOuterStartLayerSA=lay; return; }
261   Int_t  GetOuterStartLayerSA() const { return fOuterStartLayerSA; }
262   void   SetInnerStartLayerSA(Int_t lay) { fInnerStartLayerSA=lay; return; }
263   Int_t  GetInnerStartLayerSA() const { return fInnerStartLayerSA; }
264   void   SetMinNPointsSA(Int_t np) { fMinNPointsSA=np; return; }
265   Int_t  GetMinNPointsSA() const { return fMinNPointsSA;}
266   void   SetFactorSAWindowSizes(Double_t fact=1.) { fFactorSAWindowSizes=fact; return; }
267   Double_t GetFactorSAWindowSizes() const { return fFactorSAWindowSizes; }
268
269   void SetNLoopsSA(Int_t nl=10) {fNLoopsSA=nl;}
270   Int_t GetNLoopsSA() const { return fNLoopsSA;}
271   void SetPhiLimitsSA(Double_t phimin,Double_t phimax){
272     fMinPhiSA=phimin; fMaxPhiSA=phimax;
273   }
274   Double_t GetMinPhiSA() const {return fMinPhiSA;}
275   Double_t GetMaxPhiSA() const {return fMaxPhiSA;}
276   void SetLambdaLimitsSA(Double_t lambmin,Double_t lambmax){
277     fMinLambdaSA=lambmin; fMaxLambdaSA=lambmax;
278   }
279   Double_t GetMinLambdaSA() const {return fMinLambdaSA;}
280   Double_t GetMaxLambdaSA() const {return fMaxLambdaSA;}
281   
282   void   SetSAMinClusterCharge(Float_t minq=0.) {fMinClusterChargeSA=minq;}
283   Float_t GetSAMinClusterCharge() const {return fMinClusterChargeSA;}
284
285   void   SetSAOnePointTracks() { fSAOnePointTracks=kTRUE; return; }
286   Bool_t GetSAOnePointTracks() const { return fSAOnePointTracks; }
287
288   void   SetSAUseAllClusters() { fSAUseAllClusters=kTRUE; return; }
289   Bool_t GetSAUseAllClusters() const { return fSAUseAllClusters; }
290
291   void   SetFindV0s(Bool_t find=kTRUE) { fFindV0s=find; return; }
292   Bool_t GetFindV0s() const { return fFindV0s; }
293
294   void SetStoreLikeSignV0s(Bool_t like=kFALSE) { fStoreLikeSignV0s=like; return; } 
295   Bool_t GetStoreLikeSignV0s() const { return fStoreLikeSignV0s; } 
296
297   void   SetLayersParameters();
298
299   void   SetLayerToSkip(Int_t i) { fLayersToSkip[i]=1; return; }
300   Int_t  GetLayersToSkip(Int_t i) const { return fLayersToSkip[i]; }
301
302   void   SetUseUnfoldingInClusterFinderSPD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSPD=use; return; }
303   Bool_t GetUseUnfoldingInClusterFinderSPD() const { return fUseUnfoldingInClusterFinderSPD; }
304   void   SetUseUnfoldingInClusterFinderSDD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSDD=use; return; }
305   Bool_t GetUseUnfoldingInClusterFinderSDD() const { return fUseUnfoldingInClusterFinderSDD; }
306   void   SetUseUnfoldingInClusterFinderSSD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSSD=use; return; }
307   Bool_t GetUseUnfoldingInClusterFinderSSD() const { return fUseUnfoldingInClusterFinderSSD; }
308
309   void   SetUseBadChannelsInClusterFinderSSD(Bool_t use=kFALSE) { fUseBadChannelsInClusterFinderSSD=use; return; }
310   Bool_t GetUseBadChannelsInClusterFinderSSD() const  { return fUseBadChannelsInClusterFinderSSD;  }   
311
312   void   SetUseSDDCorrectionMaps(Bool_t use=kTRUE) {fUseSDDCorrectionMaps=use;}
313   Bool_t GetUseSDDCorrectionMaps() const {return fUseSDDCorrectionMaps;}
314   void   SetUseSDDClusterSizeSelection(Bool_t use=kTRUE) {fUseSDDClusterSizeSelection=use;}
315   Bool_t GetUseSDDClusterSizeSelection() const {return fUseSDDClusterSizeSelection;}
316   void   SetMinClusterChargeSDD(Float_t qcut=0.){fMinClusterChargeSDD=qcut;}
317   Float_t GetMinClusterChargeSDD() const {return fMinClusterChargeSDD;}
318
319   void   SetUseChargeMatchingInClusterFinderSSD(Bool_t use=kTRUE) { fUseChargeMatchingInClusterFinderSSD=use; return; }
320   Bool_t GetUseChargeMatchingInClusterFinderSSD() const { return fUseChargeMatchingInClusterFinderSSD; }
321
322   void   SetUseCosmicRunShiftsSSD(Bool_t use=kFALSE) { fUseCosmicRunShiftsSSD=use; return; }
323   Bool_t GetUseCosmicRunShiftsSSD() const { return fUseCosmicRunShiftsSSD; }
324
325   // SPD Tracklets (D. Elia)
326   void    SetTrackleterOnlyOneTrackletPerC2(Bool_t use= kTRUE) {fTrackleterOnlyOneTrackletPerC2=use; return; }
327   Bool_t  GetTrackleterOnlyOneTrackletPerC2() const { return fTrackleterOnlyOneTrackletPerC2; }
328   void    SetTrackleterPhiWindow(Float_t w=0.08) {fTrackleterPhiWindow=w;}
329   void    SetTrackleterZetaWindow(Float_t w=1.) {fTrackleterZetaWindow=w;}
330   Float_t GetTrackleterPhiWindow() const {return fTrackleterPhiWindow;}
331   Float_t GetTrackleterZetaWindow() const {return fTrackleterZetaWindow;}
332   void    SetTrackleterRemoveClustersFromOverlaps(Bool_t use=kTRUE) { fTrackleterRemoveClustersFromOverlaps=use; return; }
333   Bool_t  GetTrackleterRemoveClustersFromOverlaps() const { return fTrackleterRemoveClustersFromOverlaps; }
334   void    SetTrackleterPhiOverlapCut(Float_t w=0.005) {fTrackleterPhiOverlapCut=w;}
335   void    SetTrackleterZetaOverlapCut(Float_t w=0.05) {fTrackleterZetaOverlapCut=w;}
336   Float_t GetTrackleterPhiOverlapCut() const {return fTrackleterPhiOverlapCut;}
337   Float_t GetTrackleterZetaOverlapCut() const {return fTrackleterZetaOverlapCut;}
338
339   //
340   void   SetSPDRemoveNoisyFlag(Bool_t value) {fSPDRemoveNoisyFlag = value;}
341   Bool_t GetSPDRemoveNoisyFlag() const {return fSPDRemoveNoisyFlag;}
342   void   SetSPDRemoveDeadFlag(Bool_t value) {fSPDRemoveDeadFlag = value;}
343   Bool_t GetSPDRemoveDeadFlag() const {return fSPDRemoveDeadFlag;}
344   
345   //
346   void    SetAlignFilterCosmics(Bool_t b=kTRUE) {fAlignFilterCosmics=b;}
347   void    SetAlignFilterCosmicMergeTracks(Bool_t b=kTRUE) {fAlignFilterCosmicMergeTracks=b;} 
348   void    SetAlignFilterMinITSPoints(Int_t n=4) {fAlignFilterMinITSPoints=n;}
349   void    SetAlignFilterMinITSPointsMerged(Int_t n=4) {fAlignFilterMinITSPointsMerged=n;}
350   void    SetAlignFilterOnlyITSSATracks(Bool_t b=kTRUE) {fAlignFilterOnlyITSSATracks=b;}
351   void    SetAlignFilterOnlyITSTPCTracks(Bool_t b=kFALSE) {fAlignFilterOnlyITSTPCTracks=b;}
352   void    SetAlignFilterUseLayer(Int_t ilay,Bool_t use) {fAlignFilterUseLayer[ilay]=use;}
353   void    SetAlignFilterSkipExtra(Bool_t b=kFALSE) {fAlignFilterSkipExtra=b;}
354   void    SetAlignFilterMaxMatchingAngle(Float_t max=0.085/*5deg*/) {fAlignFilterMaxMatchingAngle=max;}
355   void    SetAlignFilterMinAngleWrtModulePlanes(Float_t min=0.52/*30deg*/) {fAlignFilterMinAngleWrtModulePlanes=min;}
356   void    SetAlignFilterMinPt(Float_t min=0.) {fAlignFilterMinPt=min;}          
357   void    SetAlignFilterMaxPt(Float_t max=1.e10) {fAlignFilterMaxPt=max;}          
358   void    SetAlignFilterFillQANtuples(Bool_t b=kTRUE) {fAlignFilterFillQANtuples=b;}     
359   Bool_t  GetAlignFilterCosmics() const {return fAlignFilterCosmics;}
360   Bool_t  GetAlignFilterCosmicMergeTracks() const {return fAlignFilterCosmicMergeTracks;} 
361   Int_t   GetAlignFilterMinITSPoints() const {return fAlignFilterMinITSPoints;}
362   Int_t   GetAlignFilterMinITSPointsMerged() const {return fAlignFilterMinITSPointsMerged;}
363   Bool_t  GetAlignFilterOnlyITSSATracks() const {return fAlignFilterOnlyITSSATracks;}
364   Bool_t  GetAlignFilterOnlyITSTPCTracks() const {return fAlignFilterOnlyITSTPCTracks;}
365   Bool_t  GetAlignFilterUseLayer(Int_t i) const {return fAlignFilterUseLayer[i];}
366   Bool_t  GetAlignFilterSkipExtra() const {return fAlignFilterSkipExtra;}
367   Float_t GetAlignFilterMaxMatchingAngle() const {return fAlignFilterMaxMatchingAngle;}
368   Float_t GetAlignFilterMinAngleWrtModulePlanes() const {return fAlignFilterMinAngleWrtModulePlanes;}
369   Float_t GetAlignFilterMinPt() const {return fAlignFilterMinPt;}          
370   Float_t GetAlignFilterMaxPt() const {return fAlignFilterMaxPt;}          
371   Bool_t  GetAlignFilterFillQANtuples() const {return fAlignFilterFillQANtuples;}     
372
373
374
375   enum {fgkMaxClusterPerLayer=70000}; //7000*10;   // max clusters per layer
376   enum {fgkMaxClusterPerLayer5=28000};//7000*10*2/5;  // max clusters per layer
377   enum {fgkMaxClusterPerLayer10=14000};//7000*10*2/10; // max clusters per layer
378   enum {fgkMaxClusterPerLayer20=7000};//7000*10*2/20; // max clusters per layer
379
380  protected:
381   //
382   static const Int_t fgkLayersNotToSkip[AliITSgeomTGeo::kNLayers]; // array with layers not to skip
383   static const Int_t fgkLastLayerToTrackTo;  // innermost layer
384   static const Int_t fgkMaxDetectorPerLayer; // max clusters per layer
385   static const Double_t fgkriw;              // TPC inner wall radius
386   static const Double_t fgkdiw;              // TPC inner wall x/X0
387   static const Double_t fgkX0iw;             // TPC inner wall X0 
388   static const Double_t fgkrcd;              // TPC central drum radius
389   static const Double_t fgkdcd;              // TPC central drum x/X0
390   static const Double_t fgkX0cd;             // TPC central drum X0
391   static const Double_t fgkyr;               // TPC rods y (tracking c.s.)
392   static const Double_t fgkdr;               // TPC rods x/X0
393   static const Double_t fgkzm;               // TPC membrane z
394   static const Double_t fgkdm;               // TPC membrane x/X0
395   static const Double_t fgkrs;               // ITS screen radius
396   static const Double_t fgkds;               // ITS screed x/X0
397   static const Double_t fgkrInsideITSscreen; // inside ITS screen radius
398   static const Double_t fgkrInsideSPD1;      // inside SPD1 radius
399   static const Double_t fgkrPipe;            // pipe radius
400   static const Double_t fgkrInsidePipe;      // inside pipe radius
401   static const Double_t fgkrOutsidePipe;     // outside pipe radius
402   static const Double_t fgkdPipe;            // pipe x/X0
403   static const Double_t fgkrInsideShield[2]; // inside SPD (0) SDD (1) shield radius
404   static const Double_t fgkrOutsideShield[2]; // outside SPD (0) SDD (1) shield radius
405   static const Double_t fgkdshield[2];        // SPD (0) SDD (1) shield x/X0
406   static const Double_t fgkX0shield[2];       // SPD (0) SDD (1) shield X0
407   static const Double_t fgkX0Air;             // air X0
408   static const Double_t fgkX0Be;              // Berillium X0
409   static const Double_t fgkBoundaryWidth;     // to define track at detector boundary
410   static const Double_t fgkDeltaXNeighbDets;  // max difference in radius between neighbouring detectors 
411   static const Double_t fgkSPDdetzlength;     // SPD ladder length in z
412   static const Double_t fgkSPDdetxlength;     // SPD ladder length in x
413
414
415   Int_t  fTracker;  // ITS tracker to be used (see AliITSReconstructor)
416   Bool_t fITSonly;  // tracking only in ITS (no TPC)
417   Int_t  fVertexer; // ITS vertexer to be used (see AliITSReconstructor)
418   Int_t  fClusterFinder; // ITS cf to be used (see AliITSReconstructor)
419   Int_t  fPID;      // ITS PID method to be used (see AliITSReconstructor)
420
421
422   // SPD 3D Vertexer configuration
423   Float_t fVtxr3DZCutWide;    // Z extension of the wide fiducial region for vertexer 3D
424   Float_t fVtxr3DRCutWide;    // R extension of the wide fiducial region for vertexer 3D
425   Float_t fVtxr3DZCutNarrow;  // Z extension of the narrow fiducial region for vertexer 3D
426   Float_t fVtxr3DRCutNarrow;  // R extension of the narrow fiducial region for vertexer 3D
427   Float_t fVtxr3DPhiCutLoose; // loose deltaPhi cut to define tracklets in vertexer 3D
428   Float_t fVtxr3DPhiCutTight; // tight deltaPhi cut to define tracklets in vertexer 3D
429   Float_t fVtxr3DDCACut;      // cut on tracklet-to-tracklet DCA in vertexer3D
430   Int_t   fVtxr3DPileupAlgo;  // pileup algorithm (0 = VtxZ, 1 = 3D - 2 step, 2 = 3D all in once)
431
432   Int_t fLayersToSkip[AliITSgeomTGeo::kNLayers]; // array with layers to skip (MI,SA)
433
434   // spatial resolutions of the detectors
435   Double_t fSigmaY2[AliITSgeomTGeo::kNLayers]; // y
436   Double_t fSigmaZ2[AliITSgeomTGeo::kNLayers]; // z
437   //
438   Double_t fMaxSnp; // maximum of sin(phi)  (MI)
439   //
440   // search road (MI)
441   Double_t fNSigmaYLayerForRoadY; // y
442   Double_t fNSigmaRoadY;  // y
443   Double_t fNSigmaZLayerForRoadZ; // z
444   Double_t fNSigmaRoadZ; // z
445   Double_t fNSigma2RoadZC; // z
446   Double_t fNSigma2RoadYC; // y
447   Double_t fNSigma2RoadZNonC; // z
448   Double_t fNSigma2RoadYNonC; // y
449
450   Double_t fRoadMisal; // [cm] increase of road for misalignment (MI)
451   //
452   // chi2 cuts
453   Double_t fMaxChi2PerCluster[AliITSgeomTGeo::kNLayers-1]; // max chi2 for MIP (MI)
454   Double_t fMaxNormChi2NonC[AliITSgeomTGeo::kNLayers]; //max norm chi2 for non constrained tracks (MI)
455   Double_t fMaxNormChi2C[AliITSgeomTGeo::kNLayers];  //max norm chi2 for constrained tracks (MI)
456   Double_t fMaxNormChi2NonCForHypothesis; //max norm chi2 (on layers 0,1,2) for hypotheis to be kept (MI)
457   Double_t fMaxChi2; // used to initialize variables needed to find minimum chi2 (MI,V2)
458   Double_t fMaxChi2s[AliITSgeomTGeo::kNLayers];   // max predicted chi2 (cluster & track prol.) (MI)
459   //
460   Double_t fMaxRoad;   // (V2)
461   //
462   Double_t fMaxChi2In; // (NOT USED)
463   Double_t fMaxChi2sR[AliITSgeomTGeo::kNLayers];  // (NOT USED) 
464   Double_t fChi2PerCluster; // (NOT USED)
465   //
466   // default primary vertex (MI,V2)
467   Double_t fXV;  // x
468   Double_t fYV;  // y
469   Double_t fZV;  // z
470   Double_t fSigmaXV; // x
471   Double_t fSigmaYV; // y
472   Double_t fSigmaZV; // z
473   Double_t fVertexCut; // (V2)
474   Double_t fMaxDZforPrimTrk; // maximum (imp. par.)/(1+layer) to define 
475                              // a primary and apply vertex constraint (MI)
476   Double_t fMaxDZToUseConstraint; // maximum (imp. par.) for tracks to be 
477                                   // prolonged with constraint
478   // cuts to decide if trying to prolong a TPC track (MI)
479   Double_t fMaxDforV0dghtrForProlongation; // max. rphi imp. par. cut for V0 daughter
480   //
481   Double_t fMaxDForProlongation; // max. rphi imp. par. cut
482   Double_t fMaxDZForProlongation; // max. 3D imp. par. cut
483   Double_t fMinPtForProlongation; // min. pt cut
484
485   // parameters to create "virtual" clusters in SPD dead zone (MI)
486   Bool_t   fAddVirtualClustersInDeadZone; // add if kTRUE
487   Double_t fZWindowDeadZone; // window size
488   Double_t fSigmaXDeadZoneHit2; // x error virtual cls
489   Double_t fSigmaZDeadZoneHit2; // z error virtual cls
490   Double_t fXPassDeadZoneHits;  // x distance between clusters
491
492
493   Int_t fUseTGeoInTracker; // use TGeo to get material budget in tracker MI
494   Double_t fStepSizeTGeo; // step size (cm)
495                      // in AliITStrackerMI::CorrectFor*Material methods
496   Bool_t fAllowSharedClusters; // if kFALSE don't set to kITSin tracks with shared clusters (MI)
497   Int_t fClusterErrorsParam; // parametrization for cluster errors (MI), see AliITSRecoParam::GetError()
498   Float_t fClusterMisalErrorY[AliITSgeomTGeo::kNLayers]; // [cm] additional error on cluster Y pos. due to misalignment (MI,SA)
499   Float_t fClusterMisalErrorZ[AliITSgeomTGeo::kNLayers]; // [cm] additional error on cluster Z pos. due to misalignment (MI,SA)
500   Float_t fClusterMisalErrorYBOn[AliITSgeomTGeo::kNLayers]; // [cm] additional error on cluster Y pos. due to misalignment (MI,SA)
501   Float_t fClusterMisalErrorZBOn[AliITSgeomTGeo::kNLayers]; // [cm] additional error on cluster Z pos. due to misalignment (MI,SA)
502
503   Bool_t fUseAmplitudeInfo[AliITSgeomTGeo::kNLayers]; // use cluster charge in cluster-track matching (SDD,SSD) (MI)
504
505   // Plane Efficiency evaluation
506   Bool_t fComputePlaneEff;  // flag to enable computation of PlaneEfficiency
507   Bool_t fHistoPlaneEff;  // flag to enable auxiliary PlaneEff histograms (e.g. residual distributions)
508   Bool_t fUseTrackletsPlaneEff; // flag to enable estimate of SPD PlaneEfficiency using tracklets
509   Bool_t fMCTrackletsPlaneEff; // flag to enable the use of MC info for corrections (SPD PlaneEff using tracklets)
510   Bool_t fBkgTrackletsPlaneEff; // flag to evaluate background instead of normal use (SPD PlaneEff using tracklets)
511   Float_t fTrackleterPhiWindowL1; // Search window in phi for inner layer (1) (SPD PlaneEff using tracklets)
512   Float_t fTrackleterZetaWindowL1; // Search window in zeta for inner layer (1) (SPD PlaneEff using tracklets)
513   Bool_t fUpdateOncePerEventPlaneEff; // option to update chip efficiency once/event (to avoid doubles)
514   Int_t  fMinContVtxPlaneEff; // min number of contributors to ESD vtx for SPD PlaneEff using tracklets
515   Int_t  fIPlanePlaneEff; // index of the plane (in the range [-1,5]) to study the efficiency (-1 ->Tracklets)
516   Bool_t fReadPlaneEffFromOCDB; // enable initial reading of Plane Eff statistics from OCDB
517                                // The analized events would be used to increase the statistics
518   Double_t fMinPtPlaneEff;  // minimum p_t of the track to be used for Plane Efficiency evaluation
519   Int_t  fMaxMissingClustersPlaneEff;  // max n. of (other) layers without a cluster associated to the track
520   Bool_t fRequireClusterInOuterLayerPlaneEff; // if kTRUE, then only tracks with an associated cluster on the closest
521   Bool_t fRequireClusterInInnerLayerPlaneEff; // outer/inner layer are used. It has no effect for outermost/innermost layer
522   Bool_t fOnlyConstraintPlaneEff;  // if kTRUE, use only constrained tracks at primary vertex for Plane Eff.
523
524   Bool_t fExtendedEtaAcceptance;  // enable jumping from TPC to SPD at large eta (MI)
525   Bool_t fUseBadZonesFromOCDB; // enable using OCDB info on dead modules and chips (MI)
526   Bool_t fUseSingleBadChannelsFromOCDB; // enable using OCDB info on bad single SPD pixels and SDD anodes (MI)
527   Float_t fMinFractionOfBadInRoad; // to decide whether to skip the layer (MI)
528   Bool_t fAllowProlongationWithEmptyRoad; // allow to prolong even if road is empty (MI)
529   Int_t fInwardFlagSA;           // flag for inward track finding in SA
530   Int_t fOuterStartLayerSA;      // outer ITS layer to start track in SA outward
531   Int_t fInnerStartLayerSA;      // inner ITS layer to start track in SA inward
532   Int_t fMinNPointsSA;           // min. number of ITS clusters for a SA track
533   Double_t fFactorSAWindowSizes; // larger window sizes in SA
534   Int_t fNLoopsSA;               // number of loops in tracker SA
535   Double_t fMinPhiSA;               // minimum phi value for SA windows
536   Double_t fMaxPhiSA;               // maximum phi value for SA windows
537   Double_t fMinLambdaSA;            // minimum lambda value for SA windows
538   Double_t fMaxLambdaSA;            // maximum lambda value for SA windows
539   Float_t  fMinClusterChargeSA;     // minimum SDD,SSD cluster charge for SA tarcker
540   Bool_t fSAOnePointTracks; // one-cluster tracks in SA (only for cosmics!)
541   Bool_t fSAUseAllClusters; // do not skip clusters used by MI (same track twice in AliESDEvent!)
542
543   Bool_t fFindV0s;  // flag to enable V0 finder (MI)
544   Bool_t fStoreLikeSignV0s; // flag to store like-sign V0s (MI)
545
546   // cluster unfolding in ITS cluster finders
547   Bool_t fUseUnfoldingInClusterFinderSPD; // SPD
548   Bool_t fUseUnfoldingInClusterFinderSDD; // SDD
549   Bool_t fUseUnfoldingInClusterFinderSSD; // SSD
550
551   Bool_t fUseBadChannelsInClusterFinderSSD; // flag to switch on bad channels in CF SSD
552
553   Bool_t  fUseSDDCorrectionMaps; // flag for use of SDD maps in C.F.
554   Bool_t  fUseSDDClusterSizeSelection; // cut on SDD cluster size
555   Float_t fMinClusterChargeSDD; // cut on SDD cluster charge
556
557   Bool_t fUseChargeMatchingInClusterFinderSSD; // SSD
558
559   // SPD Tracklets (D. Elia)
560   Bool_t  fTrackleterOnlyOneTrackletPerC2;         // Allow only one tracklet per cluster in the outer layer
561   Float_t fTrackleterPhiWindow;                    // Search window in phi
562   Float_t fTrackleterZetaWindow;                   // Search window in eta
563   Bool_t  fTrackleterRemoveClustersFromOverlaps;   // Option to skip clusters in the overlaps
564   Float_t fTrackleterPhiOverlapCut;                // Fiducial window in phi for overlap cut
565   Float_t fTrackleterZetaOverlapCut;               // Fiducial window in eta for overlap cut
566   Bool_t fUseCosmicRunShiftsSSD; // SSD time shifts for cosmic run 2007/2008 (use for data taken up to 18 sept 2008)
567
568
569    // SPD flags to specify whether noisy and dead pixels 
570   // should be removed at the local reconstruction step (default and safe way is true for both)
571   Bool_t  fSPDRemoveNoisyFlag;  // Flag saying whether noisy pixels should be removed
572   Bool_t  fSPDRemoveDeadFlag;   // Flag saying whether dead pixels should be removed
573   
574   // VertexerFast configuration
575   Float_t fVertexerFastSmearX;  // gaussian sigma for x MC vertex smearing 
576   Float_t fVertexerFastSmearY;  // gaussian sigma for y MC vertex smearing
577   Float_t fVertexerFastSmearZ;  // gaussian sigma for z MC vertex smearing
578
579   // PWG1/AliAlignmentDataFilterITS configuration
580   Bool_t  fAlignFilterCosmics;            // flag for cosmics case
581   Bool_t  fAlignFilterCosmicMergeTracks;  // merge cosmic tracks
582   Int_t   fAlignFilterMinITSPoints;       // min points per track
583   Int_t   fAlignFilterMinITSPointsMerged; // min points for merged tracks
584   Bool_t  fAlignFilterOnlyITSSATracks;    // only ITS SA tracks
585   Bool_t  fAlignFilterOnlyITSTPCTracks;   // only ITS+TPC tracks
586   Bool_t  fAlignFilterUseLayer[AliITSgeomTGeo::kNLayers]; // layers to use 
587   Bool_t  fAlignFilterSkipExtra;          // no extra cls in array
588   Float_t fAlignFilterMaxMatchingAngle;   // matching for cosmics
589   Float_t fAlignFilterMinAngleWrtModulePlanes; // min angle track-to-sensor
590   Float_t fAlignFilterMinPt;              // min pt
591   Float_t fAlignFilterMaxPt;              // max pt
592   Bool_t  fAlignFilterFillQANtuples;      // fill QA ntuples  
593
594
595   ClassDef(AliITSRecoParam,24) // ITS reco parameters
596 };
597
598 #endif