Skip to content

Commit 1a486e9

Browse files
f3schshahor02
authored andcommitted
Common: DCAFitter fix collinear not touching calc
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 75153a0 commit 1a486e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/DCAFitter/include/DCAFitter/HelixHelper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ struct CrossInfo {
131131
if (isCollinear) {
132132
/// for collinear tracks it is better to take
133133
/// a weighted average of the crossing points as a radius
134-
float r2r = trcA.rC + o2::gpu::GPUCommonMath::Sqrt(rBSign);
134+
float r2r = trcA.rC + rBSign;
135135
float r1_r = trcA.rC / r2r;
136-
float r2_r = o2::gpu::GPUCommonMath::Sqrt(rBSign) / r2r;
136+
float r2_r = rBSign / r2r;
137137
xDCA[0] = r2_r * trcA.xC + r1_r * (xDist + trcA.xC);
138138
yDCA[0] = r2_r * trcA.yC + r1_r * (yDist + trcA.yC);
139139
} else {

0 commit comments

Comments
 (0)