Skip to content

Commit a494cc4

Browse files
authored
[PWGCF] FemtoUniverse: Remove error and potential bug (AliceO2Group#14360)
1 parent fa56742 commit a494cc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ class FemtoUniverseMath
255255
}
256256

257257
if (isiden && isWeight) {
258-
259258
const double x1_lcms = (vecspace_part1.x() * tPx + vecspace_part1.y() * tPy) / tPt;
260259
const double y1_lcms = (-vecspace_part1.x() * tPy + vecspace_part1.y() * tPx) / tPt;
261260
const double x2_lcms = (vecspace_part2.x() * tPx + vecspace_part2.y() * tPy) / tPt;
@@ -271,8 +270,10 @@ class FemtoUniverseMath
271270
const double mRL = (z1_lcms - z2_lcms) / 0.197327;
272271
const double mDT = (t1_lcms - t2_lcms) / 0.197327;
273272

274-
const double quantumweight = 1.0 + TMath::Cos(-fDKOutLCMS * mRO - fDKSideLCMS * mRS - fDKLongLCMS * mRL + mDE * mDT);
273+
const double quantumweight = 1.0 + std::cos(-fDKOutLCMS * mRO - fDKSideLCMS * mRS - fDKLongLCMS * mRL + mDE * mDT);
275274
vect.push_back(quantumweight);
275+
} else {
276+
vect.push_back(1.0);
276277
}
277278
return vect;
278279
}

0 commit comments

Comments
 (0)