]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSRecoParam.h
Fixes for parameters aliases
[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 //#include "AliESDV0Params.h"
19
20 class AliESDV0Params;
21
22 class AliITSRecoParam : public AliDetectorRecoParam
23 {
24  public: 
25   AliITSRecoParam();
26   virtual ~AliITSRecoParam();
27
28   static AliITSRecoParam *GetLowFluxParam();// make reco parameters for low flux env.
29   static AliITSRecoParam *GetHighFluxParam();// make reco parameters for high flux env. 
30   static AliITSRecoParam *GetCosmicTestParam();// special setting for cosmic  
31   static AliITSRecoParam *GetPlaneEffParam(Int_t i);// special setting for Plane Efficiency studies
32
33   static Int_t GetLayersNotToSkip(Int_t i) { return fgkLayersNotToSkip[i]; }
34   static Int_t GetLastLayerToTrackTo() { return fgkLastLayerToTrackTo; }
35   static Int_t GetMaxClusterPerLayer() { return kMaxClusterPerLayer; }
36   static Int_t GetMaxClusterPerLayer5() { return kMaxClusterPerLayer5; }
37   static Int_t GetMaxClusterPerLayer10() { return kMaxClusterPerLayer10; }
38   static Int_t GetMaxClusterPerLayer20() { return kMaxClusterPerLayer20; }
39   static Int_t GetMaxDetectorPerLayer() { return fgkMaxDetectorPerLayer; }
40   static Double_t Getriw() { return fgkriw; }
41   static Double_t Getdiw() { return fgkdiw; }
42   static Double_t GetX0iw() { return fgkX0iw; }
43   static Double_t Getrcd() { return fgkrcd; }
44   static Double_t Getdcd() { return fgkdcd; }
45   static Double_t GetX0cd() { return fgkX0cd; }
46   static Double_t Getyr() { return fgkyr; }
47   static Double_t Getdr() { return fgkdr; }
48   static Double_t Getzm() { return fgkzm; }
49   static Double_t Getdm() { return fgkdm; }
50   static Double_t Getrs() { return fgkrs; }
51   static Double_t Getds() { return fgkds; }
52   static Double_t GetrInsideITSscreen() { return fgkrInsideITSscreen; }
53   static Double_t GetrInsideSPD1() { return fgkrInsideSPD1; }
54   static Double_t GetrPipe() { return fgkrPipe; }
55   static Double_t GetrInsidePipe() { return fgkrInsidePipe; }
56   static Double_t GetrOutsidePipe() { return fgkrOutsidePipe; }
57   static Double_t GetdPipe() { return fgkdPipe; }
58   static Double_t GetrInsideShield(Int_t i) { return fgkrInsideShield[i]; }
59   static Double_t GetrOutsideShield(Int_t i) { return fgkrOutsideShield[i]; }
60   static Double_t Getdshield(Int_t i) { return fgkdshield[i]; }
61   static Double_t GetX0shield(Int_t i) { return fgkX0shield[i]; }
62   static Double_t GetX0Air() { return fgkX0Air; }
63   static Double_t GetX0Be() { return fgkX0Be; }
64   static Double_t GetBoundaryWidth() { return fgkBoundaryWidth; }
65   static Double_t GetDeltaXNeighbDets() { return fgkDeltaXNeighbDets; }
66   static Double_t GetSPDdetzlength() { return fgkSPDdetzlength; }
67   static Double_t GetSPDdetxlength() { return fgkSPDdetxlength; }
68
69   void PrintParameters() const; 
70
71   void     SetTracker(Int_t tracker=0) { fTracker=tracker; }
72   void     SetTrackerDefault() { SetTracker(0); } // = MI and SA
73   void     SetTrackerMI() { SetTracker(1); }
74   void     SetTrackerV2() { SetTracker(2); }
75   Int_t    GetTracker() const { return fTracker; }
76   void     SetTrackerSAOnly(Bool_t flag=kTRUE) { fITSonly=flag; }
77   Bool_t   GetTrackerSAOnly() const { return fITSonly; }
78   void     SetVertexer(Int_t vertexer=0) { fVertexer=vertexer; }
79   void     SetVertexer3D() { SetVertexer(0); }
80   void     SetVertexerZ() { SetVertexer(1); }
81   void     SetVertexerCosmics() { SetVertexer(2); }
82   void     SetVertexerIons() { SetVertexer(3); }
83   void     SetVertexerSmearMC(Float_t smearx=0.005, Float_t smeary=0.005, Float_t smearz=0.01) { 
84     fVertexerFastSmearX=smearx;  fVertexerFastSmearY=smeary; fVertexerFastSmearZ=smearz; SetVertexer(4); 
85   }
86   void     SetVertexerFixedOnTDI() {SetVertexer(5);} // for injection tests
87   void     SetVertexerFixedOnTED() {SetVertexer(6);} // for injection tests
88   Int_t    GetVertexer() const { return fVertexer; }
89   Float_t  GetVertexerFastSmearX() const {return fVertexerFastSmearX;}
90   Float_t  GetVertexerFastSmearY() const {return fVertexerFastSmearY;}
91   Float_t  GetVertexerFastSmearZ() const {return fVertexerFastSmearZ;}
92
93   void     SetClusterFinder(Int_t cf=0) { fClusterFinder=cf; }
94   void     SetClusterFinderV2() { SetClusterFinder(0); }
95   void     SetClusterFinderOrig() { SetClusterFinder(1); }
96   Int_t    GetClusterFinder() const { return fClusterFinder; }
97   void     SetPID(Int_t pid=0) {fPID=pid;}
98   void     SetDefaultPID() {SetPID(0);}
99   void     SetLandauFitPID() {SetPID(1);}
100   Int_t    GetPID() const {return fPID;}
101
102   void     SetVertexer3DFiducialRegions(Float_t dzwid=40.0, Float_t drwid=2.5, Float_t dznar=0.5, Float_t drnar=0.5){
103     SetVertexer3DWideFiducialRegion(dzwid,drwid);
104     SetVertexer3DNarrowFiducialRegion(dznar,drnar);
105   }
106   void     SetVertexer3DWideFiducialRegion(Float_t dz=40.0, Float_t dr=2.5){
107     fVtxr3DZCutWide=dz; fVtxr3DRCutWide=dr;
108   }
109   void     SetVertexer3DNarrowFiducialRegion(Float_t dz=0.5, Float_t dr=0.5){
110     fVtxr3DZCutNarrow=dz; fVtxr3DRCutNarrow=dr;
111   }
112   void     SetVertexer3DDeltaPhiCuts(Float_t dphiloose=0.5, Float_t dphitight=0.025){
113     fVtxr3DPhiCutLoose=dphiloose;
114     fVtxr3DPhiCutTight=dphitight;
115   }
116   void     SetVertexer3DDCACut(Float_t dca=0.1){
117     fVtxr3DDCACut=dca;
118   }
119   void SetVertexer3DDefaults(){
120     SetVertexer3DFiducialRegions();
121     SetVertexer3DDeltaPhiCuts();
122     SetVertexer3DDCACut();    
123   }
124   void SetSPDVertexerPileupAlgoOff(){fVtxr3DPileupAlgo=3;}
125   void SetSPDVertexerPileupAlgoZ(){fVtxr3DPileupAlgo=0;}
126   void SetSPDVertexerPileupAlgo3DTwoSteps(){fVtxr3DPileupAlgo=1;}
127   void SetSPDVertexerPileupAlgo3DOneShot(){fVtxr3DPileupAlgo=2;}
128   void SetSPDVertexerHighMultAlgoDownscale(){fVtxr3DHighMultAlgo=0;}
129   void SetSPDVertexerHighMultAlgoTraces(){fVtxr3DHighMultAlgo=1;}
130   //
131   Bool_t   GetSelectBestMIP03()                 const {return fSelectBestMIP03;}
132   Bool_t   GetFlagFakes()                       const {return fFlagFakes;}
133   Bool_t   GetUseImproveKalman()                const {return fUseImproveKalman;}
134   void     SetSelectBestMIP03(Bool_t v=kTRUE)         {fSelectBestMIP03 = v;}
135   void     SetFlagFakes(Bool_t v=kTRUE)               {fFlagFakes = v;}
136   void     SetUseImproveKalman(Bool_t v=kTRUE)        {fUseImproveKalman = v;}
137   //
138   Float_t  GetVertexer3DWideFiducialRegionZ() const {return fVtxr3DZCutWide;}
139   Float_t  GetVertexer3DWideFiducialRegionR() const {return fVtxr3DRCutWide;}
140   Float_t  GetVertexer3DNarrowFiducialRegionZ() const {return fVtxr3DZCutNarrow;}
141   Float_t  GetVertexer3DNarrowFiducialRegionR() const {return fVtxr3DRCutNarrow;}
142   Float_t  GetVertexer3DLooseDeltaPhiCut() const {return fVtxr3DPhiCutLoose;}
143   Float_t  GetVertexer3DTightDeltaPhiCut() const {return fVtxr3DPhiCutTight;}
144   Float_t  GetVertexer3DDCACut() const {return fVtxr3DDCACut;}
145   Int_t    GetSPDVertexerPileupAlgo() const {return fVtxr3DPileupAlgo;}
146   UChar_t  GetSPDVertexerHighMultAlgo() const {return fVtxr3DHighMultAlgo;}
147
148   Double_t GetSigmaY2(Int_t i) const { return fSigmaY2[i]; }
149   Double_t GetSigmaZ2(Int_t i) const { return fSigmaZ2[i]; }
150
151   Double_t GetMaxSnp() const { return fMaxSnp; }
152
153   Double_t GetNSigmaYLayerForRoadY() const { return fNSigmaYLayerForRoadY; }
154   Double_t GetNSigmaRoadY() const { return fNSigmaRoadY; }
155   Double_t GetNSigmaZLayerForRoadZ() const { return fNSigmaZLayerForRoadZ; }
156   Double_t GetNSigmaRoadZ() const { return fNSigmaRoadZ; }
157   Double_t GetNSigma2RoadYC() const { return fNSigma2RoadYC; }
158   Double_t GetNSigma2RoadZC() const { return fNSigma2RoadZC; }
159   Double_t GetNSigma2RoadYNonC() const { return fNSigma2RoadYNonC; }
160   Double_t GetNSigma2RoadZNonC() const { return fNSigma2RoadZNonC; }
161   Double_t GetRoadMisal() const { return fRoadMisal; }
162   void     SetRoadMisal(Double_t road=0) { fRoadMisal=road; }
163
164   Double_t GetChi2PerCluster() const { return fChi2PerCluster; }
165   Double_t GetMaxChi2PerCluster(Int_t i) const { return fMaxChi2PerCluster[i]; }
166   Double_t GetMaxNormChi2NonC(Int_t i) const { return fMaxNormChi2NonC[i]; }
167   Double_t GetMaxNormChi2C(Int_t i) const { return fMaxNormChi2C[i]; }
168   Double_t GetMaxNormChi2NonCForHypothesis() const { return fMaxNormChi2NonCForHypothesis; }
169   Double_t GetMaxChi2() const { return fMaxChi2; }
170   Double_t GetMaxChi2s(Int_t i) const { return fMaxChi2s[i]; }
171   Double_t GetMaxChi2sR(Int_t i) const { return fMaxChi2sR[i]; }
172   Double_t GetMaxChi2In() const { return fMaxChi2In; }
173   Double_t GetMaxRoad() const { return fMaxRoad; }
174   Double_t GetMaxNormChi2ForGolden(Int_t i) const { return 3.+0.5*i; }
175
176   void     SetSearchForExtraClusters(Bool_t opt=kTRUE){ fSearchForExtras=opt; }
177   Double_t GetSearchForExtraClusters() const { return fSearchForExtras; }
178
179   Double_t GetXVdef() const { return fXV; }
180   Double_t GetYVdef() const { return fYV; }
181   Double_t GetZVdef() const { return fZV; }
182   Double_t GetSigmaXVdef() const { return fSigmaXV; }
183   Double_t GetSigmaYVdef() const { return fSigmaYV; }
184   Double_t GetSigmaZVdef() const { return fSigmaZV; }
185
186   Double_t GetVertexCut() const { return fVertexCut; }
187   Double_t GetMaxDZforPrimTrk() const { return fMaxDZforPrimTrk; }
188   Double_t GetMaxDZToUseConstraint() const { return fMaxDZToUseConstraint; }
189   Double_t GetMaxDforV0dghtrForProlongation() const { return fMaxDforV0dghtrForProlongation; }
190   Double_t GetMaxDForProlongation() const { return fMaxDForProlongation; }
191   Double_t GetMaxDZForProlongation() const { return fMaxDZForProlongation; }
192   Double_t GetMinPtForProlongation() const { return fMinPtForProlongation; }
193
194   void   SetAddVirtualClustersInDeadZone(Bool_t add=kTRUE) { fAddVirtualClustersInDeadZone=add; return; }  
195   Bool_t GetAddVirtualClustersInDeadZone() const { return fAddVirtualClustersInDeadZone; }  
196   Double_t GetZWindowDeadZone() const { return fZWindowDeadZone; }
197   Double_t GetSigmaXDeadZoneHit2() const { return fSigmaXDeadZoneHit2; }
198   Double_t GetSigmaZDeadZoneHit2() const { return fSigmaZDeadZoneHit2; }
199   Double_t GetXPassDeadZoneHits() const { return fXPassDeadZoneHits; }
200
201   Bool_t   GetSkipSubdetsNotInTriggerCluster() const { return fSkipSubdetsNotInTriggerCluster; }
202   void     SetSkipSubdetsNotInTriggerCluster(Bool_t flag=kTRUE) { fSkipSubdetsNotInTriggerCluster=flag; }
203
204   void   SetUseTGeoInTracker(Int_t use=1) { fUseTGeoInTracker=use; return; }
205   Int_t  GetUseTGeoInTracker() const { return fUseTGeoInTracker; }
206   void   SetStepSizeTGeo(Double_t size=0.1) { fStepSizeTGeo=size; return; }
207   Double_t GetStepSizeTGeo() const { return fStepSizeTGeo; }
208   
209   void   SetAllowSharedClusters(Bool_t allow=kTRUE) { fAllowSharedClusters=allow; return; }
210   Bool_t GetAllowSharedClusters() const { return fAllowSharedClusters; }
211
212   void   SetClusterErrorsParam(Int_t param=1) { fClusterErrorsParam=param; return; }
213   Int_t  GetClusterErrorsParam() const { return fClusterErrorsParam; }
214   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; }
215   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; }
216   void   SetClusterMisalError(Float_t err=0.) { SetClusterMisalErrorY(err,err,err,err,err,err); SetClusterMisalErrorZ(err,err,err,err,err,err); }
217   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; }
218   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; }
219   void   SetClusterMisalErrorBOn(Float_t err=0.) { SetClusterMisalErrorYBOn(err,err,err,err,err,err); SetClusterMisalErrorZBOn(err,err,err,err,err,err); }
220   Float_t GetClusterMisalErrorY(Int_t i,Double_t b=0.) const { return (TMath::Abs(b)<0.0001 ? fClusterMisalErrorY[i] : fClusterMisalErrorYBOn[i]); }
221   Float_t GetClusterMisalErrorZ(Int_t i,Double_t b=0.) const { return (TMath::Abs(b)<0.0001 ? fClusterMisalErrorZ[i] : fClusterMisalErrorZBOn[i]); }
222
223   void   SetUseAmplitudeInfo(Bool_t use=kTRUE) { for(Int_t i=0;i<AliITSgeomTGeo::kNLayers;i++) fUseAmplitudeInfo[i]=use; return; }
224   void   SetUseAmplitudeInfo(Int_t ilay,Bool_t use) { fUseAmplitudeInfo[ilay]=use; return; }
225   Bool_t GetUseAmplitudeInfo(Int_t ilay) const { return fUseAmplitudeInfo[ilay]; }
226 // Option for Plane Efficiency evaluation
227   void   SetComputePlaneEff(Bool_t eff=kTRUE, Bool_t his=kTRUE)
228       { fComputePlaneEff=eff; fHistoPlaneEff=his; return; }
229   Bool_t GetComputePlaneEff() const { return fComputePlaneEff; }
230   Bool_t GetHistoPlaneEff() const { return fHistoPlaneEff; }
231   void    SetUseTrackletsPlaneEff(Bool_t use=kTRUE) {fUseTrackletsPlaneEff=use; return;}
232   Bool_t  GetUseTrackletsPlaneEff() const {return fUseTrackletsPlaneEff;}
233   void    SetOptTrackletsPlaneEff(Bool_t mc=kFALSE,Bool_t bkg=kFALSE)
234            {fMCTrackletsPlaneEff=mc;fBkgTrackletsPlaneEff=bkg; return;}
235   Bool_t  GetMCTrackletsPlaneEff() const {return fMCTrackletsPlaneEff;}
236   Bool_t  GetBkgTrackletsPlaneEff() const {return fBkgTrackletsPlaneEff;}
237   void    SetTrackleterPhiWindowL1(Float_t w=0.10) {fTrackleterPhiWindowL1=w; return;}
238   Float_t GetTrackleterPhiWindowL1() const {return fTrackleterPhiWindowL1;}
239   void    SetTrackleterPhiWindowL2(Float_t w=0.07) {fTrackleterPhiWindowL2=w; return;}
240   Float_t GetTrackleterPhiWindowL2() const {return fTrackleterPhiWindowL2;}
241   void    SetTrackleterZetaWindowL1(Float_t w=0.6) {fTrackleterZetaWindowL1=w; return;}
242   Float_t GetTrackleterZetaWindowL1() const {return fTrackleterZetaWindowL1;}
243   void    SetTrackleterZetaWindowL2(Float_t w=0.40) {fTrackleterZetaWindowL2=w; return;}
244   Float_t GetTrackleterZetaWindowL2() const {return fTrackleterZetaWindowL2;}
245   void    SetTrackleterBuildCl2TrkRefs(Bool_t v=kTRUE) {fTrackleterBuildCl2TrkRefs = v;}
246   Bool_t  GetTrackleterBuildCl2TrkRefs() const { return fTrackleterBuildCl2TrkRefs;}
247   //
248   void    SetUpdateOncePerEventPlaneEff(Bool_t use=kTRUE) {fUpdateOncePerEventPlaneEff=use; return;}
249   Bool_t  GetUpdateOncePerEventPlaneEff() const {return fUpdateOncePerEventPlaneEff;}
250   void    SetMinContVtxPlaneEff(Int_t n=3) {fMinContVtxPlaneEff=n; return;}
251   Int_t   GetMinContVtxPlaneEff() const {return fMinContVtxPlaneEff;}
252   void   SetIPlanePlaneEff(Int_t i=0) {if(i<-1 || i>=AliITSgeomTGeo::kNLayers) return; fIPlanePlaneEff=i; }
253   Int_t  GetIPlanePlaneEff() const {return fIPlanePlaneEff;}
254   void   SetReadPlaneEffFrom0CDB(Bool_t read=kTRUE) { fReadPlaneEffFromOCDB=read; }
255   Bool_t GetReadPlaneEffFromOCDB() const { return fReadPlaneEffFromOCDB; }
256   void   SetMinPtPlaneEff(Bool_t ptmin=0.) { fMinPtPlaneEff=ptmin; }
257   Double_t GetMinPtPlaneEff() const { return fMinPtPlaneEff; }
258   void   SetMaxMissingClustersPlaneEff(Int_t max=0) { fMaxMissingClustersPlaneEff=max;}
259   Int_t  GetMaxMissingClustersPlaneEff() const {return fMaxMissingClustersPlaneEff;}
260   void   SetMaxMissingClustersOutPlaneEff(Int_t max=0) { fMaxMissingClustersOutPlaneEff=max;}
261   Int_t  GetMaxMissingClustersOutPlaneEff() const {return fMaxMissingClustersOutPlaneEff;}
262   void   SetRequireClusterInOuterLayerPlaneEff(Bool_t out=kTRUE) { fRequireClusterInOuterLayerPlaneEff=out;}
263   Bool_t GetRequireClusterInOuterLayerPlaneEff() const {return fRequireClusterInOuterLayerPlaneEff;}
264   void   SetRequireClusterInInnerLayerPlaneEff(Bool_t in=kTRUE) { fRequireClusterInInnerLayerPlaneEff=in;}
265   Bool_t GetRequireClusterInInnerLayerPlaneEff() const {return fRequireClusterInInnerLayerPlaneEff;}
266   void   SetOnlyConstraintPlaneEff(Bool_t con=kFALSE) { fOnlyConstraintPlaneEff=con; }
267   Bool_t GetOnlyConstraintPlaneEff() const { return fOnlyConstraintPlaneEff; }
268   void SetNSigXFromBoundaryPlaneEff(Double_t nsigx=1.) {fNSigXFromBoundaryPlaneEff=nsigx;}
269   Double_t GetNSigXFromBoundaryPlaneEff() const {return fNSigXFromBoundaryPlaneEff;}
270   void SetNSigZFromBoundaryPlaneEff(Double_t nsigz=1.) {fNSigZFromBoundaryPlaneEff=nsigz;}
271   Double_t GetNSigZFromBoundaryPlaneEff() const {return fNSigZFromBoundaryPlaneEff;}
272   void SetDCACutPlaneEff(Double_t dcacpe=999.) {fDCACutPlaneEff=dcacpe;}
273   Double_t GetDCACutPlaneEff() const {return fDCACutPlaneEff;}
274   void SetVertexChi2CutPlaneEff(Double_t vtxchipe=999999999.) {fVertexChi2CutPlaneEff=vtxchipe;}
275   Double_t GetVertexChi2CutPlaneEff() const {return fVertexChi2CutPlaneEff;}
276
277   //
278   void   SetImproveWithVertex(Bool_t impr=kFALSE) { fImproveWithVertex=impr; return; }
279   Bool_t GetImproveWithVertex() const { return fImproveWithVertex; }
280   void   SetExtendedEtaAcceptance(Bool_t ext=kTRUE) { fExtendedEtaAcceptance=ext; return; }
281   Bool_t GetExtendedEtaAcceptance() const { return fExtendedEtaAcceptance; }
282   void   SetAllowProlongationWithEmptyRoad(Bool_t allow=kTRUE) { fAllowProlongationWithEmptyRoad=allow; return; }  
283   Bool_t GetAllowProlongationWithEmptyRoad() const { return fAllowProlongationWithEmptyRoad; }
284
285   void   SetUseBadZonesFromOCDB(Bool_t use=kTRUE) { fUseBadZonesFromOCDB=use; return; }
286   Bool_t GetUseBadZonesFromOCDB() const { return fUseBadZonesFromOCDB; }
287
288   void   SetUseSingleBadChannelsFromOCDB(Bool_t use=kTRUE) { fUseSingleBadChannelsFromOCDB=use; return; }
289   Bool_t GetUseSingleBadChannelsFromOCDB() const { return fUseSingleBadChannelsFromOCDB; }
290
291   void   SetMinFractionOfBadInRoad(Float_t frac=0) { fMinFractionOfBadInRoad=frac; return; }
292   Float_t GetMinFractionOfBadInRoad() const { return fMinFractionOfBadInRoad; }
293
294   void   SetOutwardFindingSA() {fInwardFlagSA=kFALSE;}
295   void   SetInwardFindingSA() {fInwardFlagSA=kTRUE;}
296   Bool_t GetInwardFindingSA() const {return fInwardFlagSA;}
297   void   SetOuterStartLayerSA(Int_t lay) { fOuterStartLayerSA=lay; return; }
298   Int_t  GetOuterStartLayerSA() const { return fOuterStartLayerSA; }
299   void   SetInnerStartLayerSA(Int_t lay) { fInnerStartLayerSA=lay; return; }
300   Int_t  GetInnerStartLayerSA() const { return fInnerStartLayerSA; }
301   void   SetMinNPointsSA(Int_t np) { fMinNPointsSA=np; return; }
302   Int_t  GetMinNPointsSA() const { return fMinNPointsSA;}
303   void   SetFactorSAWindowSizes(Double_t fact=1.) { fFactorSAWindowSizes=fact; return; }
304   Double_t GetFactorSAWindowSizes() const { return fFactorSAWindowSizes; }
305
306   void SetNLoopsSA(Int_t nl=10) {fNLoopsSA=nl;}
307   Int_t GetNLoopsSA() const { return fNLoopsSA;}
308   void SetPhiLimitsSA(Double_t phimin,Double_t phimax){
309     fMinPhiSA=phimin; fMaxPhiSA=phimax;
310   }
311   Double_t GetMinPhiSA() const {return fMinPhiSA;}
312   Double_t GetMaxPhiSA() const {return fMaxPhiSA;}
313   void SetLambdaLimitsSA(Double_t lambmin,Double_t lambmax){
314     fMinLambdaSA=lambmin; fMaxLambdaSA=lambmax;
315   }
316   Double_t GetMinLambdaSA() const {return fMinLambdaSA;}
317   Double_t GetMaxLambdaSA() const {return fMaxLambdaSA;}
318   
319   void   SetSAMinClusterCharge(Float_t minq=0.) {fMinClusterChargeSA=minq;}
320   Float_t GetSAMinClusterCharge() const {return fMinClusterChargeSA;}
321
322   void   SetSAOnePointTracks() { fSAOnePointTracks=kTRUE; return; }
323   Bool_t GetSAOnePointTracks() const { return fSAOnePointTracks; }
324
325   void   SetSAUseAllClusters(Bool_t opt=kTRUE) { fSAUseAllClusters=opt; return; }
326   Bool_t GetSAUseAllClusters() const { return fSAUseAllClusters; }
327
328   void SetMaxSPDcontrForSAToUseAllClusters(Int_t contr=50) { fMaxSPDcontrForSAToUseAllClusters=contr; return; }
329   Int_t GetMaxSPDcontrForSAToUseAllClusters() const { return fMaxSPDcontrForSAToUseAllClusters; }
330
331   void   SetSAUsedEdxInfo(Bool_t opt=kTRUE) { fSAUsedEdxInfo=opt; return; }
332   Bool_t GetSAUsedEdxInfo() const { return fSAUsedEdxInfo; }
333
334   void   SetFindV0s(Bool_t find=kTRUE) { fFindV0s=find; return; }
335   Bool_t GetFindV0s() const { return fFindV0s; }
336
337   void SetStoreLikeSignV0s(Bool_t like=kFALSE) { fStoreLikeSignV0s=like; return; } 
338   Bool_t GetStoreLikeSignV0s() const { return fStoreLikeSignV0s; } 
339
340   void   SetLayersParameters();
341
342   void   SetLayerToSkip(Int_t i) { fLayersToSkip[i]=1; return; }
343   Int_t  GetLayersToSkip(Int_t i) const { return fLayersToSkip[i]; }
344
345   void   SetUseUnfoldingInClusterFinderSPD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSPD=use; return; }
346   Bool_t GetUseUnfoldingInClusterFinderSPD() const { return fUseUnfoldingInClusterFinderSPD; }
347   void   SetUseUnfoldingInClusterFinderSDD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSDD=use; return; }
348   Bool_t GetUseUnfoldingInClusterFinderSDD() const { return fUseUnfoldingInClusterFinderSDD; }
349   void   SetUseUnfoldingInClusterFinderSSD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSSD=use; return; }
350   Bool_t GetUseUnfoldingInClusterFinderSSD() const { return fUseUnfoldingInClusterFinderSSD; }
351
352   void   SetUseBadChannelsInClusterFinderSSD(Bool_t use=kFALSE) { fUseBadChannelsInClusterFinderSSD=use; return; }
353   Bool_t GetUseBadChannelsInClusterFinderSSD() const  { return fUseBadChannelsInClusterFinderSSD;  }   
354
355   void   SetUseSDDCorrectionMaps(Bool_t use=kTRUE) {fUseSDDCorrectionMaps=use;}
356   Bool_t GetUseSDDCorrectionMaps() const {return fUseSDDCorrectionMaps;}
357   void   SetUseSDDClusterSizeSelection(Bool_t use=kTRUE) {fUseSDDClusterSizeSelection=use;}
358   Bool_t GetUseSDDClusterSizeSelection() const {return fUseSDDClusterSizeSelection;}
359   void   SetMinClusterChargeSDD(Float_t qcut=0.){fMinClusterChargeSDD=qcut;}
360   Float_t GetMinClusterChargeSDD() const {return fMinClusterChargeSDD;}
361
362   void   SetUseChargeMatchingInClusterFinderSSD(Bool_t use=kTRUE) { fUseChargeMatchingInClusterFinderSSD=use; return; }
363   Bool_t GetUseChargeMatchingInClusterFinderSSD() const { return fUseChargeMatchingInClusterFinderSSD; }
364
365   void   SetUseCosmicRunShiftsSSD(Bool_t use=kFALSE) { fUseCosmicRunShiftsSSD=use; return; }
366   Bool_t GetUseCosmicRunShiftsSSD() const { return fUseCosmicRunShiftsSSD; }
367
368   // SPD Tracklets (D. Elia)
369   void    SetTrackleterPhiWindow(Float_t w=0.08) {fTrackleterPhiWindow=w;}
370   void    SetTrackleterThetaWindow(Float_t w=0.025) {fTrackleterThetaWindow=w;}
371   void    SetTrackleterPhiShift(Float_t w=0.0045) {fTrackleterPhiShift=w;}
372   Float_t GetTrackleterPhiWindow() const {return fTrackleterPhiWindow;}
373   Float_t GetTrackleterThetaWindow() const {return fTrackleterThetaWindow;}
374   Float_t GetTrackleterPhiShift() const {return fTrackleterPhiShift;}
375   void    SetTrackleterRemoveClustersFromOverlaps(Bool_t use=kTRUE) { fTrackleterRemoveClustersFromOverlaps=use; return; }
376   Bool_t  GetTrackleterRemoveClustersFromOverlaps() const { return fTrackleterRemoveClustersFromOverlaps; }
377   void    SetTrackleterPhiOverlapCut(Float_t w=0.005) {fTrackleterPhiOverlapCut=w;}
378   void    SetTrackleterZetaOverlapCut(Float_t w=0.05) {fTrackleterZetaOverlapCut=w;}
379   Float_t GetTrackleterPhiOverlapCut() const {return fTrackleterPhiOverlapCut;}
380   Float_t GetTrackleterZetaOverlapCut() const {return fTrackleterZetaOverlapCut;}
381   void    SetTrackleterPhiRotationAngle(Float_t w=0.0) {fTrackleterPhiRotationAngle=w;}
382   Float_t GetTrackleterPhiRotationAngle() const {return fTrackleterPhiRotationAngle;}
383   Bool_t  GetTrackleterStoreSPD2SingleCl()      const {return fTrackleterStoreSPD2SingleCl;}
384   void    SetTrackleterStoreSPD2SingleCl(Bool_t v=kTRUE) {fTrackleterStoreSPD2SingleCl = v;}
385   //
386   void    SetTrackleterNStdDevCut(Float_t f=1.)          {fTrackleterNStdDev = f<0.01 ? 0.01 : f;}
387   Float_t GetTrackleterNStdDevCut()               const  {return fTrackleterNStdDev;}
388   void    SetTrackleterScaleDThetaBySin2T(Bool_t v=kFALSE)  {fScaleDTBySin2T = v;}
389   Bool_t  GetTrackleterScaleDThetaBySin2T()       const  {return fScaleDTBySin2T;}
390   //
391   void   SetSPDRemoveNoisyFlag(Bool_t value) {fSPDRemoveNoisyFlag = value;}
392   Bool_t GetSPDRemoveNoisyFlag() const {return fSPDRemoveNoisyFlag;}
393   void   SetSPDRemoveDeadFlag(Bool_t value) {fSPDRemoveDeadFlag = value;}
394   Bool_t GetSPDRemoveDeadFlag() const {return fSPDRemoveDeadFlag;}
395   
396   //
397   void    SetAlignFilterCosmics(Bool_t b=kTRUE) {fAlignFilterCosmics=b;}
398   void    SetAlignFilterCosmicMergeTracks(Bool_t b=kTRUE) {fAlignFilterCosmicMergeTracks=b;} 
399   void    SetAlignFilterMinITSPoints(Int_t n=4) {fAlignFilterMinITSPoints=n;}
400   void    SetAlignFilterMinITSPointsMerged(Int_t n=4) {fAlignFilterMinITSPointsMerged=n;}
401   void    SetAlignFilterOnlyITSSATracks(Bool_t b=kTRUE) {fAlignFilterOnlyITSSATracks=b;}
402   void    SetAlignFilterOnlyITSTPCTracks(Bool_t b=kFALSE) {fAlignFilterOnlyITSTPCTracks=b;}
403   void    SetAlignFilterUseLayer(Int_t ilay,Bool_t use) {fAlignFilterUseLayer[ilay]=use;}
404   void    SetAlignFilterSkipExtra(Bool_t b=kFALSE) {fAlignFilterSkipExtra=b;}
405   void    SetAlignFilterMaxMatchingAngle(Float_t max=0.085/*5deg*/) {fAlignFilterMaxMatchingAngle=max;}
406   void    SetAlignFilterMinAngleWrtModulePlanes(Float_t min=0.52/*30deg*/) {fAlignFilterMinAngleWrtModulePlanes=min;}
407   void    SetAlignFilterMinPt(Float_t min=0.) {fAlignFilterMinPt=min;}          
408   void    SetAlignFilterMaxPt(Float_t max=1.e10) {fAlignFilterMaxPt=max;}          
409   void    SetAlignFilterFillQANtuples(Bool_t b=kTRUE) {fAlignFilterFillQANtuples=b;}     
410   Bool_t  GetAlignFilterCosmics() const {return fAlignFilterCosmics;}
411   Bool_t  GetAlignFilterCosmicMergeTracks() const {return fAlignFilterCosmicMergeTracks;} 
412   Int_t   GetAlignFilterMinITSPoints() const {return fAlignFilterMinITSPoints;}
413   Int_t   GetAlignFilterMinITSPointsMerged() const {return fAlignFilterMinITSPointsMerged;}
414   Bool_t  GetAlignFilterOnlyITSSATracks() const {return fAlignFilterOnlyITSSATracks;}
415   Bool_t  GetAlignFilterOnlyITSTPCTracks() const {return fAlignFilterOnlyITSTPCTracks;}
416   Bool_t  GetAlignFilterUseLayer(Int_t i) const {return fAlignFilterUseLayer[i];}
417   Bool_t  GetAlignFilterSkipExtra() const {return fAlignFilterSkipExtra;}
418   Float_t GetAlignFilterMaxMatchingAngle() const {return fAlignFilterMaxMatchingAngle;}
419   Float_t GetAlignFilterMinAngleWrtModulePlanes() const {return fAlignFilterMinAngleWrtModulePlanes;}
420   Float_t GetAlignFilterMinPt() const {return fAlignFilterMinPt;}          
421   Float_t GetAlignFilterMaxPt() const {return fAlignFilterMaxPt;}          
422   Bool_t  GetAlignFilterFillQANtuples() const {return fAlignFilterFillQANtuples;}     
423
424   // Multiplicity Reconstructor
425   Float_t GetMultCutPxDrSPDin()                 const {return fMultCutPxDrSPDin;}
426   Float_t GetMultCutPxDrSPDout()                const {return fMultCutPxDrSPDout;}
427   Float_t GetMultCutPxDz()                      const {return fMultCutPxDz;}
428   Float_t GetMultCutDCArz()                     const {return fMultCutDCArz;}
429   Float_t GetMultCutMinElectronProbTPC()        const {return fMultCutMinElectronProbTPC;}
430   Float_t GetMultCutMinElectronProbESD()        const {return fMultCutMinElectronProbESD;}
431   Float_t GetMultCutMinP()                      const {return fMultCutMinP;}
432   Float_t GetMultCutMinRGamma()                 const {return fMultCutMinRGamma;}
433   Float_t GetMultCutMinRK0()                    const {return fMultCutMinRK0;}
434   Float_t GetMultCutMinPointAngle()             const {return fMultCutMinPointAngle;}
435   Float_t GetMultCutMaxDCADauther()             const {return fMultCutMaxDCADauther;}
436   Float_t GetMultCutMassGamma()                 const {return fMultCutMassGamma;}
437   Float_t GetMultCutMassGammaNSigma()           const {return fMultCutMassGammaNSigma;}
438   Float_t GetMultCutMassK0()                    const {return fMultCutMassK0;}
439   Float_t GetMultCutMassK0NSigma()              const {return fMultCutMassK0NSigma;}
440   Float_t GetMultCutChi2cGamma()                const {return fMultCutChi2cGamma;}
441   Float_t GetMultCutChi2cK0()                   const {return fMultCutChi2cK0;}
442   Float_t GetMultCutGammaSFromDecay()           const {return fMultCutGammaSFromDecay;}
443   Float_t GetMultCutK0SFromDecay()              const {return fMultCutK0SFromDecay;}
444   Float_t GetMultCutMaxDCA()                    const {return fMultCutMaxDCA;}
445   //
446   void    SetMultCutPxDrSPDin(Float_t v=0.1)             { fMultCutPxDrSPDin = v;}
447   void    SetMultCutPxDrSPDout(Float_t v=0.15)           { fMultCutPxDrSPDout = v;}
448   void    SetMultCutPxDz(Float_t v=0.2)                  { fMultCutPxDz = v;}
449   void    SetMultCutDCArz(Float_t v=0.5)                 { fMultCutDCArz = v;}
450   void    SetMultCutMinElectronProbTPC(Float_t v=0.5)    { fMultCutMinElectronProbTPC = v;}
451   void    SetMultCutMinElectronProbESD(Float_t v=0.1)    { fMultCutMinElectronProbESD = v;}
452   void    SetMultCutMinP(Float_t v=0.05)                 { fMultCutMinP = v;}
453   void    SetMultCutMinRGamma(Float_t v=2.)              { fMultCutMinRGamma = v;}
454   void    SetMultCutMinRK0(Float_t v=1.)                 { fMultCutMinRK0 = v;}
455   void    SetMultCutMinPointAngle(Float_t v=0.98)        { fMultCutMinPointAngle = v;}
456   void    SetMultCutMaxDCADauther(Float_t v=0.5)         { fMultCutMaxDCADauther = v;}
457   void    SetMultCutMassGamma(Float_t v=0.03)            { fMultCutMassGamma = v;}
458   void    SetMultCutMassGammaNSigma(Float_t v=5.)        { fMultCutMassGammaNSigma = v;}
459   void    SetMultCutMassK0(Float_t v=0.03)               { fMultCutMassK0 = v;}
460   void    SetMultCutMassK0NSigma(Float_t v=5.)           { fMultCutMassK0NSigma = v;}
461   void    SetMultCutChi2cGamma(Float_t v=2.)             { fMultCutChi2cGamma = v;}
462   void    SetMultCutChi2cK0(Float_t v=2.)                { fMultCutChi2cK0 = v;}
463   void    SetMultCutGammaSFromDecay(Float_t v=-10.)      { fMultCutGammaSFromDecay = v;}
464   void    SetMultCutK0SFromDecay(Float_t v=-10.)         { fMultCutK0SFromDecay = v;}
465   void    SetMultCutMaxDCA(Float_t v=1.)                 { fMultCutMaxDCA = v;}
466   //
467   AliESDV0Params *GetESDV0Params() const {return fESDV0Params;}
468   //
469   // Lorentz angle
470   Bool_t  GetCorrectLorentzAngleSPD() const {return fCorrectLorentzAngleSPD;}
471   Float_t GetTanLorentzAngleHolesSPD() const {return fTanLorentzAngleHolesSPD;}
472   Bool_t  GetCorrectLorentzAngleSSD() const {return fCorrectLorentzAngleSSD;}
473   Float_t GetTanLorentzAngleHolesSSD() const {return fTanLorentzAngleHolesSSD;}
474   Float_t GetTanLorentzAngleElectronsSSD() const {return fTanLorentzAngleElectronsSSD;}
475
476   void SetCorrectLorentzAngleSPD(Bool_t flag) {fCorrectLorentzAngleSPD=flag;}
477   void SetTanLorentzAngleHolesSPD(Float_t la) {fTanLorentzAngleHolesSPD=la;}
478   void SetCorrectLorentzAngleSSD(Bool_t flag) {fCorrectLorentzAngleSSD=flag;}
479   void SetTanLorentzAngleHolesSSD(Float_t la) {fTanLorentzAngleHolesSSD=la;}
480   void SetTanLorentzAngleElectronsSSD(Float_t la) {fTanLorentzAngleElectronsSSD=la;}
481
482   // Option for local reconstruction
483   Bool_t SetOptReco(TString r);
484   void ReconstructOnlySPD(){fOptReco="SPD";}
485   TString GetOptReco() const {return fOptReco;}
486
487   //
488   enum {kMaxClusterPerLayer=70000}; //7000*10;   // max clusters per layer
489   enum {kMaxClusterPerLayer5=28000};//7000*10*2/5;  // max clusters per layer
490   enum {kMaxClusterPerLayer10=14000};//7000*10*2/10; // max clusters per layer
491   enum {kMaxClusterPerLayer20=7000};//7000*10*2/20; // max clusters per layer
492
493  protected:
494   //
495   static const Int_t fgkLayersNotToSkip[AliITSgeomTGeo::kNLayers]; // array with layers not to skip
496   static const Int_t fgkLastLayerToTrackTo=0;     // innermost layer
497   static const Int_t fgkMaxDetectorPerLayer=1000; // max clusters per layer
498   static const Double_t fgkriw;                   // TPC inner wall radius
499   static const Double_t fgkdiw;                   // TPC inner wall x/X0
500   static const Double_t fgkX0iw;                  // TPC inner wall X0 
501   static const Double_t fgkrcd;                   // TPC central drum radius
502   static const Double_t fgkdcd;                   // TPC central drum x/X0
503   static const Double_t fgkX0cd;                  // TPC central drum X0
504   static const Double_t fgkyr;                    // TPC rods y (tracking c.s.)
505   static const Double_t fgkdr;                    // TPC rods x/X0
506   static const Double_t fgkzm;                    // TPC membrane z
507   static const Double_t fgkdm;                    // TPC membrane x/X0
508   static const Double_t fgkrs;                    // ITS screen radius
509   static const Double_t fgkds;                    // ITS screed x/X0
510   static const Double_t fgkrInsideITSscreen;      // inside ITS screen radius
511   static const Double_t fgkrInsideSPD1;           // inside SPD1 radius
512   static const Double_t fgkrPipe;                 // pipe radius
513   static const Double_t fgkrInsidePipe;           // inside pipe radius
514   static const Double_t fgkrOutsidePipe;          // outside pipe radius
515   static const Double_t fgkdPipe;                 // pipe x/X0
516   static const Double_t fgkrInsideShield[2];      // inside SPD (0) SDD (1) shield radius
517   static const Double_t fgkrOutsideShield[2];     // outside SPD (0) SDD (1) shield radius
518   static const Double_t fgkdshield[2];            // SPD (0) SDD (1) shield x/X0
519   static const Double_t fgkX0shield[2];           // SPD (0) SDD (1) shield X0
520   static const Double_t fgkX0Air;                 // air X0
521   static const Double_t fgkX0Be;                  // Berillium X0
522   static const Double_t fgkBoundaryWidth;         // to define track at detector boundary
523   static const Double_t fgkDeltaXNeighbDets;      // max difference in radius between neighbouring detectors 
524   static const Double_t fgkSPDdetzlength;         // SPD ladder length in z (=7.072-2*0.056)
525   static const Double_t fgkSPDdetxlength;         // SPD ladder length in x (=1.410-2*0.056)
526
527
528   Int_t  fTracker;  // ITS tracker to be used (see AliITSReconstructor)
529   Bool_t fITSonly;  // tracking only in ITS (no TPC)
530   Int_t  fVertexer; // ITS vertexer to be used (see AliITSReconstructor)
531   Int_t  fClusterFinder; // ITS cf to be used (see AliITSReconstructor)
532   Int_t  fPID;      // ITS PID method to be used (see AliITSReconstructor)
533
534
535   // SPD 3D Vertexer configuration
536   Float_t fVtxr3DZCutWide;    // Z extension of the wide fiducial region for vertexer 3D
537   Float_t fVtxr3DRCutWide;    // R extension of the wide fiducial region for vertexer 3D
538   Float_t fVtxr3DZCutNarrow;  // Z extension of the narrow fiducial region for vertexer 3D
539   Float_t fVtxr3DRCutNarrow;  // R extension of the narrow fiducial region for vertexer 3D
540   Float_t fVtxr3DPhiCutLoose; // loose deltaPhi cut to define tracklets in vertexer 3D
541   Float_t fVtxr3DPhiCutTight; // tight deltaPhi cut to define tracklets in vertexer 3D
542   Float_t fVtxr3DDCACut;      // cut on tracklet-to-tracklet DCA in vertexer3D
543   Int_t   fVtxr3DPileupAlgo;  // pileup algorithm (0 = VtxZ, 1 = 3D - 2 step, 2 = 3D all in once)
544   UChar_t fVtxr3DHighMultAlgo; // downscaling if 0 - traces if 1
545
546   Int_t fLayersToSkip[AliITSgeomTGeo::kNLayers]; // array with layers to skip (MI,SA)
547
548   // spatial resolutions of the detectors
549   Double_t fSigmaY2[AliITSgeomTGeo::kNLayers]; // y
550   Double_t fSigmaZ2[AliITSgeomTGeo::kNLayers]; // z
551   //
552   Double_t fMaxSnp; // maximum of sin(phi)  (MI)
553   //
554   // search road (MI)
555   Double_t fNSigmaYLayerForRoadY; // y
556   Double_t fNSigmaRoadY;  // y
557   Double_t fNSigmaZLayerForRoadZ; // z
558   Double_t fNSigmaRoadZ; // z
559   Double_t fNSigma2RoadZC; // z
560   Double_t fNSigma2RoadYC; // y
561   Double_t fNSigma2RoadZNonC; // z
562   Double_t fNSigma2RoadYNonC; // y
563
564   Double_t fRoadMisal; // [cm] increase of road for misalignment (MI)
565   //
566   // chi2 cuts
567   Double_t fMaxChi2PerCluster[AliITSgeomTGeo::kNLayers-1]; // max chi2 for MIP (MI)
568   Double_t fMaxNormChi2NonC[AliITSgeomTGeo::kNLayers]; //max norm chi2 for non constrained tracks (MI)
569   Double_t fMaxNormChi2C[AliITSgeomTGeo::kNLayers];  //max norm chi2 for constrained tracks (MI)
570   Double_t fMaxNormChi2NonCForHypothesis; //max norm chi2 (on layers 0,1,2) for hypotheis to be kept (MI)
571   Double_t fMaxChi2; // used to initialize variables needed to find minimum chi2 (MI,V2)
572   Double_t fMaxChi2s[AliITSgeomTGeo::kNLayers];   // max predicted chi2 (cluster & track prol.) (MI)
573   //
574   Double_t fMaxRoad;   // (V2)
575   //
576   Double_t fMaxChi2In; // (NOT USED)
577   Double_t fMaxChi2sR[AliITSgeomTGeo::kNLayers];  // (NOT USED) 
578   Double_t fChi2PerCluster; // (NOT USED)
579   // search for extra clusters
580   Bool_t   fSearchForExtras; // swicth yes/no for the search of extra-clusters in RefitInward step
581   //
582   // default primary vertex (MI,V2)
583   Double_t fXV;  // x
584   Double_t fYV;  // y
585   Double_t fZV;  // z
586   Double_t fSigmaXV; // x
587   Double_t fSigmaYV; // y
588   Double_t fSigmaZV; // z
589   Double_t fVertexCut; // (V2)
590   Double_t fMaxDZforPrimTrk; // maximum (imp. par.)/(1+layer) to define 
591                              // a primary and apply vertex constraint (MI)
592   Double_t fMaxDZToUseConstraint; // maximum (imp. par.) for tracks to be 
593                                   // prolonged with constraint
594   // cuts to decide if trying to prolong a TPC track (MI)
595   Double_t fMaxDforV0dghtrForProlongation; // max. rphi imp. par. cut for V0 daughter
596   //
597   Double_t fMaxDForProlongation; // max. rphi imp. par. cut
598   Double_t fMaxDZForProlongation; // max. 3D imp. par. cut
599   Double_t fMinPtForProlongation; // min. pt cut
600
601   // parameters to create "virtual" clusters in SPD dead zone (MI)
602   Bool_t   fAddVirtualClustersInDeadZone; // add if kTRUE
603   Double_t fZWindowDeadZone; // window size
604   Double_t fSigmaXDeadZoneHit2; // x error virtual cls
605   Double_t fSigmaZDeadZoneHit2; // z error virtual cls
606   Double_t fXPassDeadZoneHits;  // x distance between clusters
607
608   Bool_t fSkipSubdetsNotInTriggerCluster; // skip the subdetectors that are not in the trigger cluster
609
610   Int_t fUseTGeoInTracker; // use TGeo to get material budget in tracker MI
611   Double_t fStepSizeTGeo; // step size (cm)
612                      // in AliITStrackerMI::CorrectFor*Material methods
613   Bool_t fAllowSharedClusters; // if kFALSE don't set to kITSin tracks with shared clusters (MI)
614   Int_t fClusterErrorsParam; // parametrization for cluster errors (MI), see AliITSRecoParam::GetError()
615   Float_t fClusterMisalErrorY[AliITSgeomTGeo::kNLayers]; // [cm] additional error on cluster Y pos. due to misalignment (MI,SA)
616   Float_t fClusterMisalErrorZ[AliITSgeomTGeo::kNLayers]; // [cm] additional error on cluster Z pos. due to misalignment (MI,SA)
617   Float_t fClusterMisalErrorYBOn[AliITSgeomTGeo::kNLayers]; // [cm] additional error on cluster Y pos. due to misalignment (MI,SA)
618   Float_t fClusterMisalErrorZBOn[AliITSgeomTGeo::kNLayers]; // [cm] additional error on cluster Z pos. due to misalignment (MI,SA)
619
620   Bool_t fUseAmplitudeInfo[AliITSgeomTGeo::kNLayers]; // use cluster charge in cluster-track matching (SDD,SSD) (MI)
621
622   // Plane Efficiency evaluation
623   Bool_t fComputePlaneEff;  // flag to enable computation of PlaneEfficiency
624   Bool_t fHistoPlaneEff;  // flag to enable auxiliary PlaneEff histograms (e.g. residual distributions)
625   Bool_t fUseTrackletsPlaneEff; // flag to enable estimate of SPD PlaneEfficiency using tracklets
626   Bool_t fMCTrackletsPlaneEff; // flag to enable the use of MC info for corrections (SPD PlaneEff using tracklets)
627   Bool_t fBkgTrackletsPlaneEff; // flag to evaluate background instead of normal use (SPD PlaneEff using tracklets)
628   Float_t fTrackleterPhiWindowL1; // Search window in phi for inner layer (1) (SPD PlaneEff using tracklets)
629   Float_t fTrackleterPhiWindowL2; // Search window in phi for outer layer (2) (SPD PlaneEff using tracklets)
630   Float_t fTrackleterZetaWindowL1; // Search window in zeta for inner layer (1) (SPD PlaneEff using tracklets)
631   Float_t fTrackleterZetaWindowL2; // Search window in zeta for outer layer (2) (SPD PlaneEff using tracklets)
632   Bool_t fUpdateOncePerEventPlaneEff; // option to update chip efficiency once/event (to avoid doubles)
633   Int_t  fMinContVtxPlaneEff; // min number of contributors to ESD vtx for SPD PlaneEff using tracklets
634   Int_t  fIPlanePlaneEff; // index of the plane (in the range [-1,5]) to study the efficiency (-1 ->Tracklets)
635   Bool_t fReadPlaneEffFromOCDB; // enable initial reading of Plane Eff statistics from OCDB
636                                // The analized events would be used to increase the statistics
637   Double_t fMinPtPlaneEff;  // minimum p_t of the track to be used for Plane Efficiency evaluation
638   Int_t  fMaxMissingClustersPlaneEff;  // max n. of (other) layers without a cluster associated to the track
639   Int_t  fMaxMissingClustersOutPlaneEff;  // max n. of outermost layers without a cluster associated to the track
640   Bool_t fRequireClusterInOuterLayerPlaneEff; // if kTRUE, then only tracks with an associated cluster on the closest
641   Bool_t fRequireClusterInInnerLayerPlaneEff; // outer/inner layer are used. It has no effect for outermost/innermost layer
642   Bool_t fOnlyConstraintPlaneEff;  // if kTRUE, use only constrained tracks at primary vertex for Plane Eff.
643   Double_t fNSigXFromBoundaryPlaneEff;  // accept one track for PlaneEff if distance from border (in loc x or z)
644   Double_t fNSigZFromBoundaryPlaneEff;  // is greater than fNSigXFromBoundaryPlaneEff * Track_precision
645   Double_t fDCACutPlaneEff;  // this set the cut on DCA in rphi plane when evaluating PlaneEff(SPD0)
646   Double_t fVertexChi2CutPlaneEff; // and also with a cut on the chi2
647
648   Bool_t fImproveWithVertex;    // use the method AliITStrackV2::Improve() to point to the vertex during prolongation
649   Bool_t fExtendedEtaAcceptance;  // enable jumping from TPC to SPD at large eta (MI)
650   Bool_t fUseBadZonesFromOCDB; // enable using OCDB info on dead modules and chips (MI)
651   Bool_t fUseSingleBadChannelsFromOCDB; // enable using OCDB info on bad single SPD pixels and SDD anodes (MI)
652   Float_t fMinFractionOfBadInRoad; // to decide whether to skip the layer (MI)
653   Bool_t fAllowProlongationWithEmptyRoad; // allow to prolong even if road is empty (MI)
654   Int_t fInwardFlagSA;           // flag for inward track finding in SA
655   Int_t fOuterStartLayerSA;      // outer ITS layer to start track in SA outward
656   Int_t fInnerStartLayerSA;      // inner ITS layer to start track in SA inward
657   Int_t fMinNPointsSA;           // min. number of ITS clusters for a SA track
658   Double_t fFactorSAWindowSizes; // larger window sizes in SA
659   Int_t fNLoopsSA;               // number of loops in tracker SA
660   Double_t fMinPhiSA;               // minimum phi value for SA windows
661   Double_t fMaxPhiSA;               // maximum phi value for SA windows
662   Double_t fMinLambdaSA;            // minimum lambda value for SA windows
663   Double_t fMaxLambdaSA;            // maximum lambda value for SA windows
664   Float_t  fMinClusterChargeSA;     // minimum SDD,SSD cluster charge for SA tarcker
665   Bool_t fSAOnePointTracks; // one-cluster tracks in SA (only for cosmics!)
666   Bool_t fSAUseAllClusters; // do not skip clusters used by MI (same track twice in AliESDEvent!)
667   Int_t fMaxSPDcontrForSAToUseAllClusters; // maximum nContr of SPD vertex for which trackerSA will reuse all ITS clusters
668   Bool_t fSAUsedEdxInfo;   // use/not use dE/dx in ITS for assign mass hypothesis
669
670   Bool_t fSelectBestMIP03;          // (MI) Multiply norm chi2 by interpolated one in hypthesis analysis
671   Bool_t fFlagFakes;                // (MI) preform shared cluster analysis and flag candidates for fakes
672   Bool_t fUseImproveKalman;         // (MI) Use ImproveKalman version of AliITSTrackV2 instead of Improve
673
674   Bool_t fFindV0s;  // flag to enable V0 finder (MI)
675   Bool_t fStoreLikeSignV0s; // flag to store like-sign V0s (MI)
676
677   // cluster unfolding in ITS cluster finders
678   Bool_t fUseUnfoldingInClusterFinderSPD; // SPD
679   Bool_t fUseUnfoldingInClusterFinderSDD; // SDD
680   Bool_t fUseUnfoldingInClusterFinderSSD; // SSD
681
682   Bool_t fUseBadChannelsInClusterFinderSSD; // flag to switch on bad channels in CF SSD
683
684   Bool_t  fUseSDDCorrectionMaps; // flag for use of SDD maps in C.F.
685   Bool_t  fUseSDDClusterSizeSelection; // cut on SDD cluster size
686   Float_t fMinClusterChargeSDD; // cut on SDD cluster charge
687
688   Bool_t fUseChargeMatchingInClusterFinderSSD; // SSD
689
690   // SPD Tracklets (D. Elia)
691   Float_t fTrackleterPhiWindow;                    // Search window in phi
692   Float_t fTrackleterThetaWindow;                   // Search window in theta
693   Float_t fTrackleterPhiShift;                     // Phi shift reference value (at 0.5 T) 
694   Bool_t  fTrackleterRemoveClustersFromOverlaps;   // Option to skip clusters in the overlaps
695   Float_t fTrackleterPhiOverlapCut;                // Fiducial window in phi for overlap cut
696   Float_t fTrackleterZetaOverlapCut;               // Fiducial window in eta for overlap cut
697   Float_t fTrackleterPhiRotationAngle;             // Angle to rotate cluster in the SPD inner layer for combinatorial reco only
698   Float_t fTrackleterNStdDev;      // cut on the number of standard deviations
699   Bool_t  fScaleDTBySin2T;         // scale Dtheta by 1/sin^2(theta)
700   Bool_t  fTrackleterStoreSPD2SingleCl;            // request storing of L2 singles
701   //
702   Bool_t  fTrackleterBuildCl2TrkRefs;           // build cluster to track references in AliMultiplicity
703   //
704   Bool_t fUseCosmicRunShiftsSSD; // SSD time shifts for cosmic run 2007/2008 (use for data taken up to 18 sept 2008)
705
706
707    // SPD flags to specify whether noisy and dead pixels 
708   // should be removed at the local reconstruction step (default and safe way is true for both)
709   Bool_t  fSPDRemoveNoisyFlag;  // Flag saying whether noisy pixels should be removed
710   Bool_t  fSPDRemoveDeadFlag;   // Flag saying whether dead pixels should be removed
711   
712   // VertexerFast configuration
713   Float_t fVertexerFastSmearX;  // gaussian sigma for x MC vertex smearing 
714   Float_t fVertexerFastSmearY;  // gaussian sigma for y MC vertex smearing
715   Float_t fVertexerFastSmearZ;  // gaussian sigma for z MC vertex smearing
716
717   // PWGPP/AliAlignmentDataFilterITS configuration
718   Bool_t  fAlignFilterCosmics;            // flag for cosmics case
719   Bool_t  fAlignFilterCosmicMergeTracks;  // merge cosmic tracks
720   Int_t   fAlignFilterMinITSPoints;       // min points per track
721   Int_t   fAlignFilterMinITSPointsMerged; // min points for merged tracks
722   Bool_t  fAlignFilterOnlyITSSATracks;    // only ITS SA tracks
723   Bool_t  fAlignFilterOnlyITSTPCTracks;   // only ITS+TPC tracks
724   Bool_t  fAlignFilterUseLayer[AliITSgeomTGeo::kNLayers]; // layers to use 
725   Bool_t  fAlignFilterSkipExtra;          // no extra cls in array
726   Float_t fAlignFilterMaxMatchingAngle;   // matching for cosmics
727   Float_t fAlignFilterMinAngleWrtModulePlanes; // min angle track-to-sensor
728   Float_t fAlignFilterMinPt;              // min pt
729   Float_t fAlignFilterMaxPt;              // max pt
730   Bool_t  fAlignFilterFillQANtuples;      // fill QA ntuples  
731
732   // Multiplicity reconstructor settings
733   // cuts for flagging secondaries
734   Float_t fMultCutPxDrSPDin;              // max P*DR for primaries involving at least 1 SPD
735   Float_t fMultCutPxDrSPDout;             // max P*DR for primaries not involving any SPD
736   Float_t fMultCutPxDz;                   // max P*DZ for primaries
737   Float_t fMultCutDCArz;                  // max DR or DZ for primares
738   //
739   // cuts for flagging tracks in V0s
740   Float_t fMultCutMinElectronProbTPC;     // min probability for e+/e- PID involving TPC
741   Float_t fMultCutMinElectronProbESD;     // min probability for e+/e- PID not involving TPC
742   //
743   Float_t fMultCutMinP;                   // min P of V0
744   Float_t fMultCutMinRGamma;              // min transv. distance from ESDVertex to V0 for gammas
745   Float_t fMultCutMinRK0;                 // min transv. distance from ESDVertex to V0 for K0s
746   Float_t fMultCutMinPointAngle;          // min pointing angle cosine
747   Float_t fMultCutMaxDCADauther;          // max DCA of daughters at V0
748   Float_t fMultCutMassGamma;              // max gamma mass
749   Float_t fMultCutMassGammaNSigma;        // max standard deviations from 0 for gamma
750   Float_t fMultCutMassK0;                 // max K0 mass difference from PGD value
751   Float_t fMultCutMassK0NSigma;           // max standard deviations for K0 mass from PDG value
752   Float_t fMultCutChi2cGamma;             // max constrained chi2 cut for gammas
753   Float_t fMultCutChi2cK0;                // max constrained chi2 cut for K0s
754   Float_t fMultCutGammaSFromDecay;        // min path*P for gammas
755   Float_t fMultCutK0SFromDecay;           // min path*P for K0s
756   Float_t fMultCutMaxDCA;                 // max DCA for V0 at ESD vertex
757   // Lorentz angle
758   Bool_t fCorrectLorentzAngleSPD;         // flag to enable correction
759   Float_t fTanLorentzAngleHolesSPD;       // angle for holes in SPD
760   Bool_t fCorrectLorentzAngleSSD;         // flag to enable correction
761   Float_t fTanLorentzAngleHolesSSD;       // tan(angle) for holes in SSD @ B = 0.5 T
762   Float_t fTanLorentzAngleElectronsSSD;   // tan(angle) for electrons in SSD @ B = 0.5 T
763   //
764   // Possibility of reconstructing only part of the ITS
765   TString fOptReco;                      // "All" by default. It can be any 
766                                          // combination of "SPD" "SDD" and "SSD"
767
768  private:
769   AliESDV0Params * fESDV0Params;  // declare the AliESDV0Params to be able to used in AliITSV0Finder
770
771   AliITSRecoParam(const AliITSRecoParam & param);
772   AliITSRecoParam & operator=(const AliITSRecoParam &param);
773
774   ClassDef(AliITSRecoParam,52) // ITS reco parameters
775 };
776
777 #endif