Skip to content
Snippets Groups Projects
Commit d5412239 authored by Sergey Gorbunov's avatar Sergey Gorbunov
Browse files

L1 fit: bugfix for IgnoreHitSearchAreas mode

parent 7230f2d3
No related branches found
No related tags found
1 merge request!1059L1: fix a problem with the peak at 0 in the azimutal angle distribution
......@@ -253,9 +253,10 @@ void L1Algo::FindMoreHits(L1Branch& t, L1TrackPar& T, const bool dir,
if (!area.GetNext(ih)) { break; }
}
ih += HitsUnusedStartIndex[ista];
const L1Hit& hit = (*vHitsUnused)[ih];
//TODO: bug, it should be hit.dt*hit.dt
L1HitIndex_t globalInd = HitsUnusedStartIndex[ista] + ih;
const L1Hit& hit = (*vHitsUnused)[globalInd];
if (fabs(hit.t - T.t[0]) > sqrt(T.C55[0] + hit.dt2) * 5) continue;
//if (GetFUsed((*fStripFlag)[hit.f] | (*fStripFlag)[hit.b])) continue; // if used
......@@ -286,7 +287,7 @@ void L1Algo::FindMoreHits(L1Branch& t, L1TrackPar& T, const bool dir,
if (d_x * d_x > dxm_est2) continue;
r2_best = d2;
iHit_best = ih;
iHit_best = globalInd;
}
if (iHit_best < 0) break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment