Skip to content

Commit b0e7eb4

Browse files
prchakraalibuild
andauthored
[PWGCF] FemtoUniverse: Fix the weight factor in femto region for MC Truth (#14583)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 8a658ab commit b0e7eb4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ class FemtoUniverseMath
225225
const double fDKOutLCMS = px1LCMS - px2LCMS;
226226
const double fDKSideLCMS = py1LCMS - py2LCMS;
227227
const double fDKLongLCMS = pz1LCMS - pz2LCMS;
228-
const double mDE = pE1LCMS - pE2LCMS;
229228

230229
// Boost to PRF
231230

@@ -269,8 +268,11 @@ class FemtoUniverseMath
269268
const double mRS = (y1_lcms - y2_lcms) / 0.197327;
270269
const double mRL = (z1_lcms - z2_lcms) / 0.197327;
271270
const double mDT = (t1_lcms - t2_lcms) / 0.197327;
271+
const double rOutPRF = gammaOut * (mRO - betaOut * mDT);
272+
273+
const double phase_inv = fDKOutPRF * rOutPRF + fDKSidePRF * mRS + fDKLongPRF * mRL;
274+
double quantumweight = 1.0 + TMath::Cos(2.0 * phase_inv);
272275

273-
const double quantumweight = 1.0 + std::cos(-fDKOutLCMS * mRO - fDKSideLCMS * mRS - fDKLongLCMS * mRL + mDE * mDT);
274276
vect.push_back(quantumweight);
275277
} else {
276278
vect.push_back(1.0);

0 commit comments

Comments
 (0)