Skip to content

Commit 8efbafb

Browse files
authored
refactor: Use already retrieved variables (acts-project#1978)
1 parent 73b40f3 commit 8efbafb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Core/include/Acts/Seeding/SeedFinderUtils.ipp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ inline void transformCoordinates(Acts::SpacePointData& spacePointData,
132132
l.U = x * iDeltaR2;
133133
l.V = y * iDeltaR2;
134134
// error term for sp-pair without correlation of middle space point
135-
l.Er = ((varianceZM + sp->varianceZ()) +
136-
(cot_theta * cot_theta) * (varianceRM + sp->varianceR())) *
135+
l.Er = ((varianceZM + varianceZSP) +
136+
(cot_theta * cot_theta) * (varianceRM + varianceRSP)) *
137137
iDeltaR2;
138138

139139
l.x = x;
140140
l.y = y;
141-
l.z = sp->z();
142-
l.r = sp->radius();
141+
l.z = zSP;
142+
l.r = rSP;
143143

144144
linCircleVec[idx] = l;
145145
spacePointData.setDeltaR(sp->index(),

0 commit comments

Comments
 (0)