]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSRecoParam.h
Create the rec-point branch even in the case of no digits. Please review and fix...
[u/mrichter/AliRoot.git] / ITS / AliITSRecoParam.h
CommitLineData
44347160 1#ifndef ALIITSRECOPARAM_H
2#define ALIITSRECOPARAM_H
572f41f9 3/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
44347160 4 * See cxx source for full Copyright notice */
5
572f41f9 6/* $Id$ */
7
44347160 8///////////////////////////////////////////////////////////////////////////////
9// //
10// Class with ITS reconstruction parameters //
11// Origin: andrea.dainese@lnl.infn.it //
12// //
13///////////////////////////////////////////////////////////////////////////////
14
15
6518a6c5 16#include "AliDetectorRecoParam.h"
e50912db 17#include "AliITSgeomTGeo.h"
44347160 18
6518a6c5 19class AliITSRecoParam : public AliDetectorRecoParam
44347160 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
4a66240a 28 static AliITSRecoParam *GetPlaneEffParam(Int_t i);// special setting for Plane Efficiency studies
44347160 29
e50912db 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
ed446fa3 66 void PrintParameters() const;
67
44347160 68 Double_t GetSigmaY2(Int_t i) const { return fSigmaY2[i]; }
69 Double_t GetSigmaZ2(Int_t i) const { return fSigmaZ2[i]; }
70
71 Double_t GetMaxSnp() const { return fMaxSnp; }
72
73 Double_t GetNSigmaYLayerForRoadY() const { return fNSigmaYLayerForRoadY; }
74 Double_t GetNSigmaRoadY() const { return fNSigmaRoadY; }
75 Double_t GetNSigmaZLayerForRoadZ() const { return fNSigmaZLayerForRoadZ; }
76 Double_t GetNSigmaRoadZ() const { return fNSigmaRoadZ; }
77 Double_t GetNSigma2RoadYC() const { return fNSigma2RoadYC; }
78 Double_t GetNSigma2RoadZC() const { return fNSigma2RoadZC; }
79 Double_t GetNSigma2RoadYNonC() const { return fNSigma2RoadYNonC; }
80 Double_t GetNSigma2RoadZNonC() const { return fNSigma2RoadZNonC; }
81
82 Double_t GetChi2PerCluster() const { return fChi2PerCluster; }
83 Double_t GetMaxChi2PerCluster(Int_t i) const { return fMaxChi2PerCluster[i]; }
84 Double_t GetMaxNormChi2NonC(Int_t i) const { return fMaxNormChi2NonC[i]; }
85 Double_t GetMaxNormChi2C(Int_t i) const { return fMaxNormChi2C[i]; }
afd25725 86 Double_t GetMaxNormChi2NonCForHypothesis() const { return fMaxNormChi2NonCForHypothesis; }
44347160 87 Double_t GetMaxChi2() const { return fMaxChi2; }
88 Double_t GetMaxChi2s(Int_t i) const { return fMaxChi2s[i]; }
89 Double_t GetMaxChi2sR(Int_t i) const { return fMaxChi2sR[i]; }
90 Double_t GetMaxChi2In() const { return fMaxChi2In; }
44347160 91 Double_t GetMaxRoad() const { return fMaxRoad; }
afd25725 92 Double_t GetMaxNormChi2ForGolden(Int_t i) const { return 3.+0.5*i; }
44347160 93
94 Double_t GetXVdef() const { return fXV; }
95 Double_t GetYVdef() const { return fYV; }
96 Double_t GetZVdef() const { return fZV; }
97 Double_t GetSigmaXVdef() const { return fSigmaXV; }
98 Double_t GetSigmaYVdef() const { return fSigmaYV; }
99 Double_t GetSigmaZVdef() const { return fSigmaZV; }
afd25725 100
101 Double_t GetVertexCut() const { return fVertexCut; }
102 Double_t GetMaxDZforPrimTrk() const { return fMaxDZforPrimTrk; }
103 Double_t GetMaxDZToUseConstraint() const { return fMaxDZToUseConstraint; }
104 Double_t GetMaxDforV0dghtrForProlongation() const { return fMaxDforV0dghtrForProlongation; }
105 Double_t GetMaxDForProlongation() const { return fMaxDForProlongation; }
106 Double_t GetMaxDZForProlongation() const { return fMaxDZForProlongation; }
107 Double_t GetMinPtForProlongation() const { return fMinPtForProlongation; }
108
109 void SetAddVirtualClustersInDeadZone(Bool_t add=kTRUE) { fAddVirtualClustersInDeadZone=add; return; }
110 Bool_t GetAddVirtualClustersInDeadZone() const { return fAddVirtualClustersInDeadZone; }
111 Double_t GetZWindowDeadZone() const { return fZWindowDeadZone; }
112 Double_t GetSigmaXDeadZoneHit2() const { return fSigmaXDeadZoneHit2; }
113 Double_t GetSigmaZDeadZoneHit2() const { return fSigmaZDeadZoneHit2; }
114 Double_t GetXPassDeadZoneHits() const { return fXPassDeadZoneHits; }
115
116
117
e50912db 118 void SetUseTGeoInTracker(Int_t use=1) { fUseTGeoInTracker=use; return; }
119 Int_t GetUseTGeoInTracker() const { return fUseTGeoInTracker; }
44347160 120
afd25725 121 void SetAllowSharedClusters(Bool_t allow=kTRUE) { fAllowSharedClusters=allow; return; }
122 Bool_t GetAllowSharedClusters() const { return fAllowSharedClusters; }
123
e50912db 124 void SetClusterErrorsParam(Int_t param=1) { fClusterErrorsParam=param; return; }
125 Int_t GetClusterErrorsParam() const { return fClusterErrorsParam; }
126 void SetUseAmplitudeInfo(Bool_t use=kTRUE) { for(Int_t i=0;i<AliITSgeomTGeo::kNLayers;i++) fUseAmplitudeInfo[i]=use; return; }
572f41f9 127 void SetUseAmplitudeInfo(Int_t ilay,Bool_t use) { fUseAmplitudeInfo[ilay]=use; return; }
128 Bool_t GetUseAmplitudeInfo(Int_t ilay) const { return fUseAmplitudeInfo[ilay]; }
ae00569a 129 //
5fbd4fd6 130 void SetComputePlaneEff(Bool_t eff=kTRUE, Bool_t his=kTRUE)
131 { fComputePlaneEff=eff; fHistoPlaneEff=his; return; }
4a66240a 132 Bool_t GetComputePlaneEff() const { return fComputePlaneEff; }
5fbd4fd6 133 Bool_t GetHistoPlaneEff() const { return fHistoPlaneEff; }
275a301c 134 void SetReadPlaneEffFrom0CDB(Bool_t read=kTRUE) { fReadPlaneEffFromOCDB=read; }
135 Bool_t GetReadPlaneEffFromOCDB() const { return fReadPlaneEffFromOCDB; }
ae00569a 136 //
2755f080 137 void SetExtendedEtaAcceptance(Bool_t ext=kTRUE) { fExtendedEtaAcceptance=ext; return; }
138 Bool_t GetExtendedEtaAcceptance() const { return fExtendedEtaAcceptance; }
ae00569a 139 void SetAllowProlongationWithEmptyRoad(Bool_t allow=kTRUE) { fAllowProlongationWithEmptyRoad=allow; return; }
140 Bool_t GetAllowProlongationWithEmptyRoad() const { return fAllowProlongationWithEmptyRoad; }
141
6518a6c5 142 void SetUseDeadZonesFromOCDB(Bool_t use=kTRUE) { fUseDeadZonesFromOCDB=use; return; }
143 Bool_t GetUseDeadZonesFromOCDB() const { return fUseDeadZonesFromOCDB; }
572f41f9 144
2755f080 145 void SetFactorSAWindowSizes(Double_t fact=1.) { fFactorSAWindowSizes=fact; return; }
146 Double_t GetFactorSAWindowSizes() const { return fFactorSAWindowSizes; }
572f41f9 147
c7d6d7b7 148 void SetNLoopsSA(Int_t nl=10) {fNLoopsSA=nl;}
149 Int_t GetNLoopsSA() const { return fNLoopsSA;}
150 void SetPhiLimitsSA(Double_t phimin,Double_t phimax){
151 fMinPhiSA=phimin; fMaxPhiSA=phimax;
152 }
153 Double_t GetMinPhiSA() const {return fMinPhiSA;}
154 Double_t GetMaxPhiSA() const {return fMaxPhiSA;}
155 void SetLambdaLimitsSA(Double_t lambmin,Double_t lambmax){
156 fMinLambdaSA=lambmin; fMaxLambdaSA=lambmax;
157 }
158 Double_t GetMinLambdaSA() const {return fMinLambdaSA;}
159 Double_t GetMaxLambdaSA() const {return fMaxLambdaSA;}
160
161
5a03f353 162 void SetSAOnePointTracks() { fSAOnePointTracks=kTRUE; return; }
163 Bool_t GetSAOnePointTracks() const { return fSAOnePointTracks; }
164
165 void SetSAUseAllClusters() { fSAUseAllClusters=kTRUE; return; }
166 Bool_t GetSAUseAllClusters() const { return fSAUseAllClusters; }
167
afd25725 168 void SetFindV0s(Bool_t find=kTRUE) { fFindV0s=find; return; }
169 Bool_t GetFindV0s() const { return fFindV0s; }
170
2755f080 171 void SetLayersParameters();
172
173 void SetLayerToSkip(Int_t i) { fLayersToSkip[i]=1; return; }
174 Int_t GetLayersToSkip(Int_t i) const { return fLayersToSkip[i]; }
e340bb86 175
6518a6c5 176 void SetUseUnfoldingInClusterFinderSPD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSPD=use; return; }
177 Bool_t GetUseUnfoldingInClusterFinderSPD() const { return fUseUnfoldingInClusterFinderSPD; }
178 void SetUseUnfoldingInClusterFinderSDD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSDD=use; return; }
179 Bool_t GetUseUnfoldingInClusterFinderSDD() const { return fUseUnfoldingInClusterFinderSDD; }
180 void SetUseUnfoldingInClusterFinderSSD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSSD=use; return; }
181 Bool_t GetUseUnfoldingInClusterFinderSSD() const { return fUseUnfoldingInClusterFinderSSD; }
182
a86176e3 183 void SetUseChargeMatchingInClusterFinderSSD(Bool_t use=kTRUE) { fUseChargeMatchingInClusterFinderSSD=use; return; }
184 Bool_t GetUseChargeMatchingInClusterFinderSSD() const { return fUseChargeMatchingInClusterFinderSSD; }
185
44347160 186 //
e50912db 187
188 enum {fgkMaxClusterPerLayer=70000}; //7000*10; // max clusters per layer
189 enum {fgkMaxClusterPerLayer5=28000};//7000*10*2/5; // max clusters per layer
190 enum {fgkMaxClusterPerLayer10=14000};//7000*10*2/10; // max clusters per layer
191 enum {fgkMaxClusterPerLayer20=7000};//7000*10*2/20; // max clusters per layer
192
44347160 193 protected:
194 //
e50912db 195 static const Int_t fgkLayersNotToSkip[AliITSgeomTGeo::kNLayers]; // array with layers not to skip
196 static const Int_t fgkLastLayerToTrackTo; // innermost layer
197 static const Int_t fgkMaxDetectorPerLayer; // max clusters per layer
198 static const Double_t fgkriw; // TPC inner wall radius
199 static const Double_t fgkdiw; // TPC inner wall x/X0
200 static const Double_t fgkX0iw; // TPC inner wall X0
201 static const Double_t fgkrcd; // TPC central drum radius
202 static const Double_t fgkdcd; // TPC central drum x/X0
203 static const Double_t fgkX0cd; // TPC central drum X0
204 static const Double_t fgkyr; // TPC rods y (tracking c.s.)
205 static const Double_t fgkdr; // TPC rods x/X0
206 static const Double_t fgkzm; // TPC membrane z
207 static const Double_t fgkdm; // TPC membrane x/X0
208 static const Double_t fgkrs; // ITS screen radius
209 static const Double_t fgkds; // ITS screed x/X0
210 static const Double_t fgkrInsideITSscreen; // inside ITS screen radius
211 static const Double_t fgkrInsideSPD1; // inside SPD1 radius
212 static const Double_t fgkrPipe; // pipe radius
213 static const Double_t fgkrInsidePipe; // inside pipe radius
214 static const Double_t fgkrOutsidePipe; // outside pipe radius
215 static const Double_t fgkdPipe; // pipe x/X0
216 static const Double_t fgkrInsideShield[2]; // inside SPD (0) SDD (1) shield radius
217 static const Double_t fgkrOutsideShield[2]; // outside SPD (0) SDD (1) shield radius
218 static const Double_t fgkdshield[2]; // SPD (0) SDD (1) shield x/X0
219 static const Double_t fgkX0shield[2]; // SPD (0) SDD (1) shield X0
220 static const Double_t fgkX0Air; // air X0
221 static const Double_t fgkX0Be; // Berillium X0
222 static const Double_t fgkBoundaryWidth; // to define track at detector boundary
223 static const Double_t fgkDeltaXNeighbDets; // max difference in radius between neighbouring detectors
224 static const Double_t fgkSPDdetzlength; // SPD ladder length in z
225 static const Double_t fgkSPDdetxlength; // SPD ladder length in x
226
2755f080 227 Int_t fLayersToSkip[AliITSgeomTGeo::kNLayers]; // array with layers to skip (MI,SA)
228
44347160 229 // spatial resolutions of the detectors
e50912db 230 Double_t fSigmaY2[AliITSgeomTGeo::kNLayers]; // y
231 Double_t fSigmaZ2[AliITSgeomTGeo::kNLayers]; // z
44347160 232 //
233 Double_t fMaxSnp; // maximum of sin(phi) (MI)
234 //
235 // search road (MI)
36e140f1 236 Double_t fNSigmaYLayerForRoadY; // y
237 Double_t fNSigmaRoadY; // y
238 Double_t fNSigmaZLayerForRoadZ; // z
239 Double_t fNSigmaRoadZ; // z
240 Double_t fNSigma2RoadZC; // z
241 Double_t fNSigma2RoadYC; // y
242 Double_t fNSigma2RoadZNonC; // z
243 Double_t fNSigma2RoadYNonC; // y
44347160 244 //
245 // chi2 cuts
e50912db 246 Double_t fMaxChi2PerCluster[AliITSgeomTGeo::kNLayers-1]; // max chi2 for MIP (MI)
247 Double_t fMaxNormChi2NonC[AliITSgeomTGeo::kNLayers]; //max norm chi2 for non constrained tracks (MI)
248 Double_t fMaxNormChi2C[AliITSgeomTGeo::kNLayers]; //max norm chi2 for constrained tracks (MI)
afd25725 249 Double_t fMaxNormChi2NonCForHypothesis; //max norm chi2 (on layers 0,1,2) for hypotheis to be kept (MI)
44347160 250 Double_t fMaxChi2; // used to initialize variables needed to find minimum chi2 (MI,V2)
e50912db 251 Double_t fMaxChi2s[AliITSgeomTGeo::kNLayers]; // max predicted chi2 (cluster & track prol.) (MI)
44347160 252 //
253 Double_t fMaxRoad; // (V2)
254 //
255 Double_t fMaxChi2In; // (NOT USED)
e50912db 256 Double_t fMaxChi2sR[AliITSgeomTGeo::kNLayers]; // (NOT USED)
44347160 257 Double_t fChi2PerCluster; // (NOT USED)
258 //
259 // default primary vertex (MI,V2)
36e140f1 260 Double_t fXV; // x
261 Double_t fYV; // y
262 Double_t fZV; // z
263 Double_t fSigmaXV; // x
264 Double_t fSigmaYV; // y
265 Double_t fSigmaZV; // z
44347160 266 Double_t fVertexCut; // (V2)
afd25725 267 Double_t fMaxDZforPrimTrk; // maximum (imp. par.)/(1+layer) to define
268 // a primary and apply vertex constraint (MI)
269 Double_t fMaxDZToUseConstraint; // maximum (imp. par.) for tracks to be
270 // prolonged with constraint
271 // cuts to decide if trying to prolong a TPC track (MI)
272 Double_t fMaxDforV0dghtrForProlongation; // max. rphi imp. par. cut for V0 daughter
44347160 273 //
afd25725 274 Double_t fMaxDForProlongation; // max. rphi imp. par. cut
275 Double_t fMaxDZForProlongation; // max. 3D imp. par. cut
276 Double_t fMinPtForProlongation; // min. pt cut
277
278 // parameters to create "virtual" clusters in SPD dead zone (MI)
36e140f1 279 Bool_t fAddVirtualClustersInDeadZone; // add if kTRUE
280 Double_t fZWindowDeadZone; // window size
281 Double_t fSigmaXDeadZoneHit2; // x error virtual cls
282 Double_t fSigmaZDeadZoneHit2; // z error virtual cls
283 Double_t fXPassDeadZoneHits; // x distance between clusters
afd25725 284
285
e50912db 286 Int_t fUseTGeoInTracker; // use TGeo to get material budget in tracker MI
afd25725 287 Bool_t fAllowSharedClusters; // if kFALSE don't set to kITSin tracks with shared clusters (MI)
e50912db 288 Int_t fClusterErrorsParam; // parametrization for cluster errors (MI), see AliITSRecoParam::GetError()
289 Bool_t fUseAmplitudeInfo[AliITSgeomTGeo::kNLayers]; // use cluster charge in cluster-track matching (SDD,SSD) (MI)
ae00569a 290 Bool_t fComputePlaneEff; // flag to enable computation of PlaneEfficiency
5fbd4fd6 291 Bool_t fHistoPlaneEff; // flag to enable auxiliary PlaneEff histograms (e.g. residual distributions)
275a301c 292 Bool_t fReadPlaneEffFromOCDB; // enable initial reading of Plane Eff statistics from OCDB
293 // The analized events would be used to increase the statistics
2755f080 294 Bool_t fExtendedEtaAcceptance; // enable jumping from TPC to SPD at large eta (MI)
6518a6c5 295 Bool_t fUseDeadZonesFromOCDB; // enable using OCDB info on dead modules.. (MI)
ae00569a 296 Bool_t fAllowProlongationWithEmptyRoad; // allow to prolong even if road is empty (MI)
2755f080 297 Double_t fFactorSAWindowSizes; // larger window sizes in SA
c7d6d7b7 298 Int_t fNLoopsSA; // number of loops in tracker SA
299 Double_t fMinPhiSA; // minimum phi value for SA windows
300 Double_t fMaxPhiSA; // maximum phi value for SA windows
301 Double_t fMinLambdaSA; // minimum lambda value for SA windows
302 Double_t fMaxLambdaSA; // maximum lambda value for SA windows
303
5a03f353 304 Bool_t fSAOnePointTracks; // one-cluster tracks in SA (only for cosmics!)
305 Bool_t fSAUseAllClusters; // do not skip clusters used by MI (same track twice in AliESDEvent!)
afd25725 306
307 Bool_t fFindV0s; // flag to enable V0 finder (MI)
308
6518a6c5 309 // cluster unfolding in ITS cluster finders
310 Bool_t fUseUnfoldingInClusterFinderSPD; // SPD
311 Bool_t fUseUnfoldingInClusterFinderSDD; // SDD
312 Bool_t fUseUnfoldingInClusterFinderSSD; // SSD
313
a86176e3 314 Bool_t fUseChargeMatchingInClusterFinderSSD; // SSD
315
c7d6d7b7 316 ClassDef(AliITSRecoParam,2) // ITS reco parameters
44347160 317};
318
319#endif