Skip to content

Commit

Permalink
Optimizing the seeding combinatorics
Browse files Browse the repository at this point in the history
  • Loading branch information
iouribelikov committed May 5, 2014
1 parent 7a6a2e7 commit 61f14e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ITS/UPGRADE/AliITSUTrackerCooked.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ Int_t AliITSUTrackerCooked::MakeSeeds(Int_t l1, Int_t l2) {
if (TMath::Abs(phi2-phi1) > kpWin) continue; //check in Phi

Double_t zr3=z1 + (r3-r1)/(r2-r1)*(z2-z1);
Double_t d13=r1-r3, d32=r3-r2, d=r1-r2;
Double_t phir3=d32/d*phi1 + d13/d*phi2; // FIXME
Int_t start3=layer3.FindClusterIndex(zr3-kzWin/2);
for (Int_t n3=start3; n3<nClusters3; n3++) {
AliCluster *c3=layer3.GetCluster(n3);
Expand All @@ -304,7 +306,7 @@ Int_t AliITSUTrackerCooked::MakeSeeds(Int_t l1, Int_t l2) {
if (z3 > (zr3+kzWin/2)) break; //check in Z
Float_t xyz3[3]; c3->GetGlobalXYZ(xyz3);
Double_t phi3=TMath::ATan2(xyz3[1],xyz3[0]);
if (TMath::Abs(phi2-phi3) > kpWin/2) continue; //check in Phi
if (TMath::Abs(phir3-phi3) > kpWin/100) continue; //check in Phi

AliITSUClusterPix cc(*((AliITSUClusterPix*)c2));
cc.GoToFrameTrk();
Expand Down

0 comments on commit 61f14e4

Please sign in to comment.