From 774e0a811a58349b94cb155721d88e6a5895f138 Mon Sep 17 00:00:00 2001 From: Pritam Chakraborty <47203359+prchakra@users.noreply.github.com> Date: Mon, 29 Dec 2025 23:05:02 +0100 Subject: [PATCH] FemtoUniverse: Remove error and potential bug --- PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h b/PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h index 31a71fe841f..64d0f2153d3 100644 --- a/PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h +++ b/PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h @@ -255,7 +255,6 @@ class FemtoUniverseMath } if (isiden && isWeight) { - const double x1_lcms = (vecspace_part1.x() * tPx + vecspace_part1.y() * tPy) / tPt; const double y1_lcms = (-vecspace_part1.x() * tPy + vecspace_part1.y() * tPx) / tPt; const double x2_lcms = (vecspace_part2.x() * tPx + vecspace_part2.y() * tPy) / tPt; @@ -271,8 +270,10 @@ class FemtoUniverseMath const double mRL = (z1_lcms - z2_lcms) / 0.197327; const double mDT = (t1_lcms - t2_lcms) / 0.197327; - const double quantumweight = 1.0 + TMath::Cos(-fDKOutLCMS * mRO - fDKSideLCMS * mRS - fDKLongLCMS * mRL + mDE * mDT); + const double quantumweight = 1.0 + std::cos(-fDKOutLCMS * mRO - fDKSideLCMS * mRS - fDKLongLCMS * mRL + mDE * mDT); vect.push_back(quantumweight); + } else { + vect.push_back(1.0); } return vect; }