Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "Math/Boost.h"
#include "Math/Vector4D.h"
#include "TLorentzVector.h"

Check failure on line 24 in PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
#include "TMath.h"

#include <algorithm>
Expand Down Expand Up @@ -225,7 +225,6 @@
const double fDKOutLCMS = px1LCMS - px2LCMS;
const double fDKSideLCMS = py1LCMS - py2LCMS;
const double fDKLongLCMS = pz1LCMS - pz2LCMS;
const double mDE = pE1LCMS - pE2LCMS;

// Boost to PRF

Expand Down Expand Up @@ -269,8 +268,11 @@
const double mRS = (y1_lcms - y2_lcms) / 0.197327;
const double mRL = (z1_lcms - z2_lcms) / 0.197327;
const double mDT = (t1_lcms - t2_lcms) / 0.197327;
const double rOutPRF = gammaOut * (mRO - betaOut * mDT);

const double phase_inv = fDKOutPRF * rOutPRF + fDKSidePRF * mRS + fDKLongPRF * mRL;
double quantumweight = 1.0 + TMath::Cos(2.0 * phase_inv);

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);
Expand Down
Loading