From 5b4dedce08d6d9ca7e59b8d5ab5a26ed395a0f96 Mon Sep 17 00:00:00 2001 From: masera Date: Wed, 16 Apr 2008 13:57:43 +0000 Subject: [PATCH] Parameters for track finding in AliITStrackerSA added to AliITSRecoParam (F. Prino) --- ITS/AliITStrackerSA.cxx | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/ITS/AliITStrackerSA.cxx b/ITS/AliITStrackerSA.cxx index 5c2270b6896..26a923a9877 100644 --- a/ITS/AliITStrackerSA.cxx +++ b/ITS/AliITStrackerSA.cxx @@ -272,7 +272,16 @@ void AliITStrackerSA::Init(){ fPointc[1]=0; fVert = 0; fVertexer = 0; - SetWindowSizes(); + Int_t nLoops=AliITSReconstructor::GetRecoParam()->GetNLoopsSA(); + if(nLoops==33){ + SetFixedWindowSizes(); + }else{ + Double_t phimin=AliITSReconstructor::GetRecoParam()->GetMinPhiSA(); + Double_t phimax=AliITSReconstructor::GetRecoParam()->GetMaxPhiSA(); + Double_t lambmin=AliITSReconstructor::GetRecoParam()->GetMinLambdaSA(); + Double_t lambmax=AliITSReconstructor::GetRecoParam()->GetMaxLambdaSA(); + SetCalculatedWindowSizes(nLoops,phimin,phimax,lambmin,lambmax); + } fITSclusters = 0; SetSixPoints(); SetOuterStartLayer(0); @@ -1289,9 +1298,25 @@ Int_t gl12, Int_t gl13, Int_t gl14,Int_t gl15, Int_t gl16, Int_t gl17, Int_t gl1 } - //_____________________________________________________________________________ -void AliITStrackerSA::SetWindowSizes(Int_t n, Double_t *phi, Double_t *lam){ +void AliITStrackerSA::SetCalculatedWindowSizes(Int_t n, Float_t phimin, Float_t phimax, Float_t lambdamin, Float_t lambdamax){ + // Set sizes of the phi and lambda windows used for track finding + fNloop = n; + if(fPhiWin) delete [] fPhiWin; + if(fLambdaWin) delete [] fLambdaWin; + fPhiWin = new Double_t[fNloop]; + fLambdaWin = new Double_t[fNloop]; + Float_t stepPhi=(phimax-phimin)/(Float_t)(fNloop-1); + Float_t stepLambda=(lambdamax-lambdamin)/(Float_t)(fNloop-1); + for(Int_t k=0;k